public class ParserHelper extends Object
| Constructor and Description |
|---|
ParserHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
defineVariable(org.antlr.v4.runtime.ParserRuleContext ctx) |
void |
defineVariable(String variable) |
void |
dismissScope() |
boolean |
followUp(org.antlr.v4.runtime.Token t,
boolean isPredict) |
static List<org.antlr.v4.runtime.Token> |
getAllTokens(org.antlr.v4.runtime.tree.ParseTree ctx,
List<org.antlr.v4.runtime.Token> tokens) |
SymbolTable |
getSymbolTable() |
void |
popName() |
void |
popScope() |
void |
pushName(org.antlr.v4.runtime.ParserRuleContext ctx) |
void |
pushName(String name) |
void |
pushScope() |
void |
recoverScope() |
void |
recoverScope(String name) |
void |
startVariable(org.antlr.v4.runtime.Token t) |
public SymbolTable getSymbolTable()
public void pushScope()
public void popScope()
public void pushName(String name)
public void pushName(org.antlr.v4.runtime.ParserRuleContext ctx)
public void popName()
public void recoverScope()
public void recoverScope(String name)
public void dismissScope()
public void defineVariable(org.antlr.v4.runtime.ParserRuleContext ctx)
public void defineVariable(String variable)
public void startVariable(org.antlr.v4.runtime.Token t)
public boolean followUp(org.antlr.v4.runtime.Token t,
boolean isPredict)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.