public class Context extends Object
| Constructor and Description |
|---|
Context(ExecutableElement startRule,
TypeElement factoryClass,
String packageName,
String parserName,
String lexerName,
Map<Rule,ExecutableElement> ruleToMethod,
Map<Symbol,Entry> symbolToType,
Grammar grammar) |
| Modifier and Type | Method and Description |
|---|---|
TypeElement |
getFactoryClass() |
Grammar |
getGrammar() |
String |
getLexerName() |
String |
getPackageName() |
String |
getParserName() |
ExecutableElement |
getStartRule() |
boolean |
isFactoryStatic() |
ExecutableElement |
methodOf(Rule rule) |
TypeMirror |
typeMirrorOf(Symbol symbol) |
String |
typeOf(Symbol symbol) |
public Context(ExecutableElement startRule, TypeElement factoryClass, String packageName, String parserName, String lexerName, Map<Rule,ExecutableElement> ruleToMethod, Map<Symbol,Entry> symbolToType, Grammar grammar)
public Grammar getGrammar()
public ExecutableElement methodOf(Rule rule)
public TypeMirror typeMirrorOf(Symbol symbol)
public boolean isFactoryStatic()
public ExecutableElement getStartRule()
public TypeElement getFactoryClass()
public String getPackageName()
public String getParserName()
public String getLexerName()
Copyright © 2020. All rights reserved.