| Constructor and Description |
|---|
FieldTypeParser(FieldType<?> fieldType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static FieldTypeParser<?> |
getFieldTypeParser(String typeName)
Create an instance based on type name.
|
T |
parse(ParseSession session,
ParseContext ctx,
boolean complete)
Parse text from the given parse context.
|
public FieldTypeParser(FieldType<?> fieldType)
fieldType - type to parsepublic T parse(ParseSession session, ParseContext ctx, boolean complete)
ParserGenerally speaking, this method may assume that any whitespace allowed before the item being parsed has already been skipped over (that's a matter for the containing parser).
public static FieldTypeParser<?> getFieldTypeParser(String typeName)
typeName is deferred until parse time when the database is available.typeName - the name of a FieldTypeCopyright © 2017. All rights reserved.