ILOG JRules

ilog.rules.brl.translation
Class IlrActionStatement

java.lang.Object
  extended by ilog.rules.brl.translation.IlrStatement
      extended by ilog.rules.brl.translation.IlrActionStatement
All Implemented Interfaces:
IlrNamedStatement, Serializable
Direct Known Subclasses:
IlrActionCodeStatement, IlrBlockActionStatement, IlrSimpleActionStatement

public abstract class IlrActionStatement
extends IlrStatement
implements IlrNamedStatement

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

See Also:
Serialized Form

Constructor Summary
IlrActionStatement(IlrSyntaxTree.Node astNode)
          Builds a new action statement with the specified Abstract Syntax Tree node.
 
Method Summary
 IlrConcept getConcept()
          Gets the concept of this action statement.
 IlrBlockActionStatement getParent()
          Gets the block action containing this action.
 String getVarName()
          Gets the name of the object to be updated.
 void setConcept(IlrConcept concept)
          Sets the concept of this action.
 void setVarName(String name)
          Sets the name of the variable to be updated.
 
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

IlrActionStatement

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

Parameters:
astNode - The Abstract Syntax Tree node.
Method Detail

setVarName

public void setVarName(String name)
Sets the name of the variable to be updated. Used when the action statement is of kind UPDATE_OBJECT.

Parameters:
name - The name of the variable.

getVarName

public String getVarName()
Gets the name of the object to be updated. Used when the action statement is of kind UPDATE_OBJECT.

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

setConcept

public void setConcept(IlrConcept concept)
Sets the concept of this action.


getConcept

public IlrConcept getConcept()
Gets the concept of this action statement.

Returns:
The concept of this action statement.

getParent

public IlrBlockActionStatement getParent()
Gets the block action containing this action. If this action is a top level action, this method returns null.

Returns:
The parent block action, or null.

ILOG JRules