cc.redberry.core.parser
Class ParserTensorField
- java.lang.Object
-
- cc.redberry.core.parser.ParserTensorField
-
- All Implemented Interfaces:
- TokenParser
public class ParserTensorField extends java.lang.Object implements TokenParser
Parser for tensor fields.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field and Description static ParserTensorFieldINSTANCESingleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancanParse(java.lang.String expression)ParseTokenparseToken(java.lang.String expression, Parser parser)Parses the specified string expression and returns the corresponding AST node ornull, string can not be parsed by this parser.intpriority()The higher the priority, the earlier runs.
-
-
-
Field Detail
-
INSTANCE
public static final ParserTensorField INSTANCE
Singleton instance.
-
-
Method Detail
-
priority
public int priority()
Description copied from interface:TokenParserThe higher the priority, the earlier runs.- Specified by:
priorityin interfaceTokenParser- Returns:
- priority
-
canParse
public boolean canParse(java.lang.String expression)
-
parseToken
public ParseToken parseToken(java.lang.String expression, Parser parser)
Description copied from interface:TokenParserParses the specified string expression and returns the corresponding AST node ornull, string can not be parsed by this parser.- Specified by:
parseTokenin interfaceTokenParser- Parameters:
expression- string expressionparser- recursion- Returns:
- AST node
-
-
DataMelt 3.0 © DataMelt by jWork.ORG