@Test public void should_implement_Matcher() { TokenExpression expression = new TokenExpression(GenericTokenType.IDENTIFIER, mock(ParsingExpression.class)); assertThat(expression.getTokenType()).isSameAs(GenericTokenType.IDENTIFIER); }
public TokenType getTokenType() { return tokenType; }
TokenExpression implements Matcher, ParsingExpression { public TokenType getTokenType() { return tokenType; } }
TokenExpression implements Matcher, ParsingExpression { public TokenType getTokenType() { return tokenType; } TokenExpression(TokenType tokenType, ParsingExpression subExpression); }
TokenExpression implements Matcher, ParsingExpression { public TokenType getTokenType() { return tokenType; } TokenExpression(TokenType tokenType, ParsingExpression subExpression); TokenType getTokenType(); @Override Instruction[] compile(CompilationHandler compiler); @Override String toString(); }
TokenExpression implements Matcher, ParsingExpression { public TokenType getTokenType() { return tokenType; } TokenExpression(TokenType tokenType, ParsingExpression subExpression); TokenType getTokenType(); @Override Instruction[] compile(CompilationHandler compiler); @Override String toString();  }