public class IlrSimpleBindingStatement extends IlrBindingStatement
Current predefined simple binding kinds include:
IlrEvaluateStatement).
If users wish to add a new kind of simple binding, they should use a kind
starting from constant CUSTOM_EXTENSION.
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS
Constant for class binding (value is 0).
|
static int |
COLLECT
Constant for collect binding (value is 1).
|
static int |
CUSTOM_EXTENSION
Constant for simple binding extensions (value is 10).
|
static int |
EVALUATE
Constant for evaluate statement (value is 4).
|
static int |
EXISTS
Constant for exists binding (value is 3).
|
static int |
NOT
Constant for not binding (value is 2).
|
| Constructor and Description |
|---|
IlrSimpleBindingStatement(IlrSyntaxTree.Node node)
Builds a simple binding statement from the specified
node. |
IlrSimpleBindingStatement(IlrSyntaxTree.Node node,
java.lang.String varName)
Builds a simple binding from the specified
node using the specified varName as
the name of binding. |
IlrSimpleBindingStatement(IlrSyntaxTree.Node node,
java.lang.String varName,
IlrConcept concept)
Builds a simple binding from the specified
node, using the specified varName,
as the name of binding, and concept as the concept type. |
| Modifier and Type | Method and Description |
|---|---|
IlrConcept |
getConcept()
Gets the concept of this simple binding statement.
|
IlrSyntaxTree.Node |
getFromSyntaxNode()
Gets the node designating the 'from' statement of the simple binding.
|
IlrSyntaxTree.Node |
getInSyntaxNode()
Gets the node designating the 'in' statement of the simple binding.
|
int |
getKind()
Gets the kind of this simple binding statement.
|
IlrSyntaxTree.Node |
getOriginNode()
Gets the node designating the 'from' statement or the 'in' statement of the simple binding.
|
IlrSyntaxTree.Node |
getWhereSyntaxNode()
Gets the node designating the 'where' tests of the simple binding.
|
boolean |
hasFromSyntaxNode()
Returns
true if this binding has a node designating a
'in' statement. |
boolean |
hasInSyntaxNode()
Returns
true if this binding has a node designating a
'from' statement. |
boolean |
hasOriginSyntaxNode()
Returns
true if this binding has a node designating a
'from' or a 'in' statement. |
void |
setConcept(IlrConcept concept)
Sets the concept type of this binding.
|
void |
setFromSyntaxNode(IlrSyntaxTree.Node fromSyntaxNode)
Sets the node that designates the 'from' statement of the simple binding.
|
void |
setInSyntaxNode(IlrSyntaxTree.Node inSyntaxNode)
Sets the node that designates the 'in' statement of the simple binding.
|
void |
setKind(int kind)
Sets the kind of this simple binding statement.
|
void |
setWhereSyntaxNode(IlrSyntaxTree.Node node)
Sets the node designating the 'where' tests of the simple binding.
|
getVarName, setVarNamegetTestNode, setTestNodeaccept, getNode, hasTagpublic static final int CLASS
public static final int COLLECT
public static final int NOT
public static final int EXISTS
public static final int EVALUATE
public static final int CUSTOM_EXTENSION
public IlrSimpleBindingStatement(IlrSyntaxTree.Node node)
node.node - The node.public IlrSimpleBindingStatement(IlrSyntaxTree.Node node, java.lang.String varName)
node using the specified varName as
the name of binding.node - The node.varName - The name of the binding.public IlrSimpleBindingStatement(IlrSyntaxTree.Node node, java.lang.String varName, IlrConcept concept)
node, using the specified varName,
as the name of binding, and concept as the concept type.node - The node.varName - The name of the binding.concept - The concept type of the binding.public void setConcept(IlrConcept concept)
public IlrConcept getConcept()
public void setKind(int kind)
kind - The new kind.public int getKind()
public void setFromSyntaxNode(IlrSyntaxTree.Node fromSyntaxNode)
fromSyntaxNode - The node designating the 'from' statement.public void setInSyntaxNode(IlrSyntaxTree.Node inSyntaxNode)
inSyntaxNode - The node designating the 'in' statement.public IlrSyntaxTree.Node getFromSyntaxNode()
public IlrSyntaxTree.Node getInSyntaxNode()
public IlrSyntaxTree.Node getOriginNode()
public boolean hasInSyntaxNode()
true if this binding has a node designating a
'from' statement.true if this binding has a node designating a
'from' statement.public boolean hasFromSyntaxNode()
true if this binding has a node designating a
'in' statement.true if this binding has a node designating a
'in' statement.public boolean hasOriginSyntaxNode()
true if this binding has a node designating a
'from' or a 'in' statement.true if this binding has a node designating a
'from' or a 'in' statement.public IlrSyntaxTree.Node getWhereSyntaxNode()
public void setWhereSyntaxNode(IlrSyntaxTree.Node node)
node - The node designating the 'where' tests.© Copyright IBM Corp. 1987, 2017