public class ActionTranslator extends Object implements ActionSplitterListener
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Class<? extends RulePropertyRef>> |
rulePropToModelMap |
static Map<String,Class<? extends RulePropertyRef>> |
thisRulePropToModelMap |
static Map<String,Class<? extends TokenPropertyRef>> |
tokenPropToModelMap |
| Constructor and Description |
|---|
ActionTranslator(OutputModelFactory factory,
ActionAST node) |
| Modifier and Type | Method and Description |
|---|---|
void |
attr(String expr,
org.antlr.runtime.Token x) |
String |
getRuleLabel(String x) |
String |
getTokenLabel(String x) |
void |
nonLocalAttr(String expr,
org.antlr.runtime.Token x,
org.antlr.runtime.Token y) |
void |
qualifiedAttr(String expr,
org.antlr.runtime.Token x,
org.antlr.runtime.Token y) |
void |
setAttr(String expr,
org.antlr.runtime.Token x,
org.antlr.runtime.Token rhs) |
void |
setNonLocalAttr(String expr,
org.antlr.runtime.Token x,
org.antlr.runtime.Token y,
org.antlr.runtime.Token rhs) |
void |
text(String text) |
static String |
toString(List<ActionChunk> chunks) |
static List<ActionChunk> |
translateAction(OutputModelFactory factory,
RuleFunction rf,
org.antlr.runtime.Token tokenWithinAction,
ActionAST node) |
static List<ActionChunk> |
translateActionChunk(OutputModelFactory factory,
RuleFunction rf,
String action,
ActionAST node) |
public static final Map<String,Class<? extends RulePropertyRef>> thisRulePropToModelMap
public static final Map<String,Class<? extends RulePropertyRef>> rulePropToModelMap
public static final Map<String,Class<? extends TokenPropertyRef>> tokenPropToModelMap
public ActionTranslator(OutputModelFactory factory, ActionAST node)
public static String toString(List<ActionChunk> chunks)
public static List<ActionChunk> translateAction(OutputModelFactory factory, RuleFunction rf, org.antlr.runtime.Token tokenWithinAction, ActionAST node)
public static List<ActionChunk> translateActionChunk(OutputModelFactory factory, RuleFunction rf, String action, ActionAST node)
public void attr(String expr, org.antlr.runtime.Token x)
attr in interface ActionSplitterListenerpublic void qualifiedAttr(String expr, org.antlr.runtime.Token x, org.antlr.runtime.Token y)
qualifiedAttr in interface ActionSplitterListenerpublic void setAttr(String expr, org.antlr.runtime.Token x, org.antlr.runtime.Token rhs)
setAttr in interface ActionSplitterListenerpublic void nonLocalAttr(String expr, org.antlr.runtime.Token x, org.antlr.runtime.Token y)
nonLocalAttr in interface ActionSplitterListenerpublic void setNonLocalAttr(String expr, org.antlr.runtime.Token x, org.antlr.runtime.Token y, org.antlr.runtime.Token rhs)
setNonLocalAttr in interface ActionSplitterListenerpublic void text(String text)
text in interface ActionSplitterListenerCopyright © 1992–2020 ANTLR. All rights reserved.