public class ConfigProcessor extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
addConditionalCompilationNamespace(NamespaceNode node)
Adds a name that is recognized as a config name for conditional
compilation
|
boolean |
addConfigConstNode(ConfigConstNode node)
Adds a
ConfigConstNode to our internal tree. |
void |
connect(IProjectConfigVariables variables)
Sets the
IProjectConfigVariables that will be used to alter the
shape of the tree we are building |
void |
detachParser(org.apache.flex.compiler.internal.parsing.as.BaseASParser parser)
Detach the parser if it's currently bound to this processor.
|
void |
disconnect()
Disconnects us from the parser, cleaning up any state that was built
|
protected LiteralNode |
evaluateConstNodeExpression(ConfigExpressionNode node)
turns a config expression into a synthesize LiteralNode
|
protected Object |
evaluateConstNodeExpressionToJavaObject(ConfigExpressionNode node)
turns a config expression node into a Java Interger, Boolean, etc...
|
IASNode[] |
getConfigChildren()
Returns any children created by this config processor
|
boolean |
isConfigNamespace(String name) |
void |
setParser(org.apache.flex.compiler.internal.parsing.as.BaseASParser parser)
Bind the configurations to a parser.
|
public void connect(IProjectConfigVariables variables)
IProjectConfigVariables
that will be used to alter the
shape of the tree we are buildingvariables
- IProjectConfigVariables
or nullpublic void disconnect()
public final boolean isConfigNamespace(String name)
public IASNode[] getConfigChildren()
public boolean addConditionalCompilationNamespace(NamespaceNode node)
public boolean addConfigConstNode(ConfigConstNode node)
ConfigConstNode
to our internal tree. Will return true if
this item is uniquenode
- the ConfigConstNode
that we have encountered while
parsing.protected Object evaluateConstNodeExpressionToJavaObject(ConfigExpressionNode node)
protected LiteralNode evaluateConstNodeExpression(ConfigExpressionNode node)
public final void setParser(org.apache.flex.compiler.internal.parsing.as.BaseASParser parser)
parser
- AS parser.public final void detachParser(org.apache.flex.compiler.internal.parsing.as.BaseASParser parser)
parser
- AS parser.Copyright © 2016 The Apache Software Foundation. All rights reserved.