public class DefaultParserHelper extends java.lang.Object implements IParserHelper
Modifier and Type | Field and Description |
---|---|
protected BuildContext |
context
The build context.
|
Constructor and Description |
---|
DefaultParserHelper(ICondition condition,
OAVTypeModel tmodel)
Create a BDI parser helper.
|
Modifier and Type | Method and Description |
---|---|
void |
addVariable(Variable var)
Add a variable.
|
BuildContext |
getBuildContext()
Get the build context.
|
java.util.List |
getConditions()
Get the conditions after parsing.
|
java.lang.Object[] |
getReplacementType(OAVObjectType type)
Get the replacement type for an object type in an existential declaration
E.g.
|
Variable |
getVariable(java.lang.String name)
Get a variable with a given name.
|
boolean |
isPseudoVariable(java.lang.String name)
Test, if a name refers to a pseudo variable (e.g.
|
protected BuildContext context
public DefaultParserHelper(ICondition condition, OAVTypeModel tmodel)
condition
- The predefined condition.state
- The state.returnvar
- The return value variable (if return value condition).public Variable getVariable(java.lang.String name)
getVariable
in interface IParserHelper
name
- The variable name.public void addVariable(Variable var)
addVariable
in interface IParserHelper
var
- The variable.public boolean isPseudoVariable(java.lang.String name)
isPseudoVariable
in interface IParserHelper
name
- The variable name.public java.util.List getConditions()
getConditions
in interface IParserHelper
public BuildContext getBuildContext()
getBuildContext
in interface IParserHelper
public java.lang.Object[] getReplacementType(OAVObjectType type)
getReplacementType
in interface IParserHelper
type
- The type to be replaced.