Package com.gengoai.parsing
Class TokenExpression
- java.lang.Object
-
- com.gengoai.parsing.TokenExpression
-
- All Implemented Interfaces:
Expression
,Serializable
public class TokenExpression extends Object implements Expression, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenExpression(@NonNull ParserToken token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getText()
Tag
getType()
Gets the tag associated with the ExpressionString
getVariable(int index)
int
getVariableCount()
String[]
getVariables()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.gengoai.parsing.Expression
apply, as, isInstance, isInstance, isInstance, when, when
-
-
-
-
Constructor Detail
-
TokenExpression
public TokenExpression(@NonNull @NonNull ParserToken token)
-
-
Method Detail
-
getText
public String getText()
-
getType
public Tag getType()
Description copied from interface:Expression
Gets the tag associated with the Expression- Specified by:
getType
in interfaceExpression
- Returns:
- the type
-
getVariable
public String getVariable(int index)
-
getVariableCount
public int getVariableCount()
-
getVariables
public String[] getVariables()
-
-