public class ASTResolver
extends java.lang.Object
Constructor and Description |
---|
ASTResolver() |
Modifier and Type | Method and Description |
---|---|
protected static void |
setActions(org.antlr.runtime.tree.CommonTree pd,
java.util.Collection<IAction> actions) |
protected static void |
setConditions(org.antlr.runtime.tree.CommonTree pd,
java.util.Collection<ICondition> conditions) |
protected static void |
setParameters(org.antlr.runtime.tree.CommonTree parameters,
IParameterized parameterized) |
static void |
setSlots(org.antlr.runtime.tree.CommonTree desc,
ISlotContainer sc) |
static org.antlr.runtime.tree.CommonTree |
toAST(IAction action) |
static org.antlr.runtime.tree.CommonTree |
toAST(IActivationBuffer buffer)
return the AST describing this buffer
|
static org.antlr.runtime.tree.CommonTree |
toAST(IChunk chunk,
boolean skipParameters)
return the AST describing this chunk
|
static org.antlr.runtime.tree.CommonTree |
toAST(IChunkType chunkType,
boolean fullResolution)
return the AST describing the chunktype and optionally all it's immediate
chunks
|
static org.antlr.runtime.tree.CommonTree |
toAST(ICondition condition) |
static org.antlr.runtime.tree.CommonTree |
toAST(IExtension extension)
return the AST describing this extension
|
static org.antlr.runtime.tree.CommonTree |
toAST(IModel model,
boolean fullResolution)
create an AST description of the model and optionally, all its children
|
static org.antlr.runtime.tree.CommonTree |
toAST(IModule module) |
static org.antlr.runtime.tree.CommonTree |
toAST(IProduction production)
return the AST describing this production
|
static org.antlr.runtime.tree.CommonTree |
toAST(java.lang.Object obj,
boolean fullResolution) |
protected static java.util.List<org.antlr.runtime.tree.CommonTree> |
toOrderedAST(IChunkType chunkType,
java.util.Set<IChunkType> alreadyConverted)
return a list of all the commonTrees for this chunktype and its parents
sorted in dependency order, with chunkType's commonTree last
|
public static org.antlr.runtime.tree.CommonTree toAST(java.lang.Object obj, boolean fullResolution)
public static org.antlr.runtime.tree.CommonTree toAST(IModel model, boolean fullResolution)
model
- fullResolution
- protected static java.util.List<org.antlr.runtime.tree.CommonTree> toOrderedAST(IChunkType chunkType, java.util.Set<IChunkType> alreadyConverted)
chunkType
- public static org.antlr.runtime.tree.CommonTree toAST(IProduction production)
production
- public static org.antlr.runtime.tree.CommonTree toAST(IChunk chunk, boolean skipParameters)
chunk
- public static org.antlr.runtime.tree.CommonTree toAST(IChunkType chunkType, boolean fullResolution)
chunkType
- fullResolution
- public static org.antlr.runtime.tree.CommonTree toAST(IActivationBuffer buffer)
buffer
- public static org.antlr.runtime.tree.CommonTree toAST(IExtension extension)
extension
- public static org.antlr.runtime.tree.CommonTree toAST(IModule module)
protected static void setConditions(org.antlr.runtime.tree.CommonTree pd, java.util.Collection<ICondition> conditions)
public static org.antlr.runtime.tree.CommonTree toAST(ICondition condition)
protected static void setActions(org.antlr.runtime.tree.CommonTree pd, java.util.Collection<IAction> actions)
public static org.antlr.runtime.tree.CommonTree toAST(IAction action)
public static void setSlots(org.antlr.runtime.tree.CommonTree desc, ISlotContainer sc)
desc
- sc
- protected static void setParameters(org.antlr.runtime.tree.CommonTree parameters, IParameterized parameterized)
actrDesc
- parameterized
-