Package org.sonar.sslr.internal.vm
Class TokenExpression
- java.lang.Object
-
- org.sonar.sslr.internal.vm.TokenExpression
-
- All Implemented Interfaces:
Matcher
,Matcher
,ParsingExpression
public class TokenExpression extends Object implements Matcher, ParsingExpression
-
-
Constructor Summary
Constructors Constructor Description TokenExpression(TokenType tokenType, ParsingExpression subExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instruction[]
compile(CompilationHandler compiler)
Compiles this expression into a sequence of instructions:TokenType
getTokenType()
String
toString()
-
-
-
Constructor Detail
-
TokenExpression
public TokenExpression(TokenType tokenType, ParsingExpression subExpression)
-
-
Method Detail
-
getTokenType
public TokenType getTokenType()
-
compile
public Instruction[] compile(CompilationHandler compiler)
Compiles this expression into a sequence of instructions:Call L1 Jump L2 L1: subExpression Return L2: ...
- Specified by:
compile
in interfaceParsingExpression
-
-