public class AstTypeParser extends Object
Constructor and Description |
---|
AstTypeParser(NamespaceModel namespace)
Creates a new parser.
|
AstTypeParser(NamespaceModel namespace,
Collection<String> freeTypes)
Creates a new parser with a collection of free type names that can be
used in the expression.
|
Modifier and Type | Method and Description |
---|---|
AstType |
parseType(String string)
Parses a type from a string.
|
List<AstType> |
parseTypeList(String string)
Parses a type list from a string.
|
public AstTypeParser(NamespaceModel namespace)
namespace
- public AstTypeParser(NamespaceModel namespace, Collection<String> freeTypes)
namespace
- freeTypes
- public AstType parseType(String string) throws ValidationException
string
- ValidationException
- if the string
is not a valid typeNullPointerException
- if the string
is nullpublic List<AstType> parseTypeList(String string) throws ValidationException
string
- ValidationException
- if the string
is not a valid list of typesCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.