ILOG JRules

ilog.rules.brl.translation
Class IlrBindingStatement

java.lang.Object
  extended by ilog.rules.brl.translation.IlrStatement
      extended by ilog.rules.brl.translation.IlrConditionStatement
          extended by ilog.rules.brl.translation.IlrBindingStatement
All Implemented Interfaces:
IlrNamedStatement, Serializable
Direct Known Subclasses:
IlrSimpleBindingStatement

public abstract class IlrBindingStatement
extends IlrConditionStatement
implements IlrNamedStatement

The base class for bindings in the intermediate form of the IRL translation process (IlrIntermediateForm).

See Also:
Serialized Form

Constructor Summary
IlrBindingStatement(IlrSyntaxTree.Node astNode)
          Builds a new binding statement with the specified Abstract Syntax Tree node.
IlrBindingStatement(IlrSyntaxTree.Node astNode, String varName)
          Builds a new binding statement with the specified Abstract Syntax Tree node and variable name.
 
Method Summary
 String getVarName()
          Gets the variable name.
 void setVarName(String varName)
          Sets the variable name.
 
Methods inherited from class ilog.rules.brl.translation.IlrConditionStatement
getTestNode, setTestNode
 
Methods inherited from class ilog.rules.brl.translation.IlrStatement
accept, getNode, hasTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrBindingStatement

public IlrBindingStatement(IlrSyntaxTree.Node astNode)
Builds a new binding statement with the specified Abstract Syntax Tree node.

Parameters:
astNode - The Abstract Syntax Tree node.

IlrBindingStatement

public IlrBindingStatement(IlrSyntaxTree.Node astNode,
                           String varName)
Builds a new binding statement with the specified Abstract Syntax Tree node and variable name.

Parameters:
astNode - The Abstract Syntax Tree node.
varName - The name of the variable.
Method Detail

getVarName

public String getVarName()
Gets the variable name.

Specified by:
getVarName in interface IlrNamedStatement
Returns:
The name of the variable.

setVarName

public void setVarName(String varName)
Sets the variable name.

Parameters:
varName - The name of the variable.

ILOG JRules