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(Entry element) |
int |
priority(Element element,
int defaultPriority) |
Rule |
ruleOf(Entry method,
int priority,
TypeMirror l,
List<? extends Entry> r) |
Rule |
ruleOf(ExecutableElement method,
int priority) |
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 Rule ruleOf(ExecutableElement method, int priority)
public Rule ruleOf(Entry method, int priority, TypeMirror l, List<? extends Entry> 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.