public final class Datatype
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Datatype |
NOOP
Datatype instance that doesn't do any conversion.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
displayName()
Gets the display name of this datatype.
|
CDExpression |
generate(NGCCGrammar grammar,
CDVariable $text)
Generates the expression that parses the specified string
into a target language value type.
|
CDType |
getType()
Returns the type to which the return value from the generate
method evaluates to.
|
public static final Datatype NOOP
public CDExpression generate(NGCCGrammar grammar, CDVariable $text) throws NoDefinitionException, java.io.IOException
grammar - This datatype is used for this grammar.NoDefinitionExceptionjava.io.IOExceptionpublic CDType getType()
public java.lang.String displayName()