public class AstTypeParser
extends java.lang.Object
Constructor and Description |
---|
AstTypeParser(NamespaceModel namespace)
Creates a new parser.
|
AstTypeParser(NamespaceModel namespace,
java.util.Collection<java.lang.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(java.lang.String string)
Parses a type from a string.
|
java.util.List<AstType> |
parseTypeList(java.lang.String string)
Parses a type list from a string.
|
public AstTypeParser(NamespaceModel namespace)
namespace
- public AstTypeParser(NamespaceModel namespace, java.util.Collection<java.lang.String> freeTypes)
namespace
- freeTypes
- public AstType parseType(java.lang.String string) throws ValidationException
string
- ValidationException
- if the string
is not a valid typejava.lang.NullPointerException
- if the string
is nullpublic java.util.List<AstType> parseTypeList(java.lang.String string) throws ValidationException
string
- ValidationException
- if the string
is not a valid list of typesCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.