public class ClassToGrammarContext extends Object
| Constructor and Description |
|---|
ClassToGrammarContext(ExecutableElement startRule,
Elements elements,
EnvironmentGenerator tokenContext) |
| Modifier and Type | Method and Description |
|---|---|
Element |
getFactoryClass() |
Grammar |
getGrammar() |
String |
getPackageName() |
boolean |
isLexerRule(ExecutableElement method) |
boolean |
isStaticFactory() |
ExecutableElement |
methodOf(Rule rule) |
Symbol |
of(TypeMirror mirror) |
int |
priority(Element element,
int defaultPriority) |
Rule |
ruleOf(ExecutableElement method,
int priority) |
Rule |
ruleOf(ExecutableElement method,
int priority,
TypeMirror l,
List<TypeMirror> r) |
TypeMirror |
symbolType(Symbol symbol) |
public ClassToGrammarContext(ExecutableElement startRule, Elements elements, EnvironmentGenerator tokenContext)
public boolean isLexerRule(ExecutableElement method)
public int priority(Element element, int defaultPriority)
public Symbol of(TypeMirror mirror)
public Rule ruleOf(ExecutableElement method, int priority)
public Rule ruleOf(ExecutableElement method, int priority, TypeMirror l, List<TypeMirror> r)
public Grammar getGrammar()
public TypeMirror symbolType(Symbol symbol)
public ExecutableElement methodOf(Rule rule)
public String getPackageName()
public boolean isStaticFactory()
public Element getFactoryClass()
Copyright © 2020. All rights reserved.