net.sourceforge.nrl.parser.ast.action
Interface IAddAction

All Superinterfaces:
IAction, INRLAstNode, ISimpleAction
All Known Implementing Classes:
AddActionImpl

public interface IAddAction
extends ISimpleAction

An action that adds an element to a collection. The element to be added is either an attribute, or a complex object held in a variable. The target is always a collection - the type checker makes sure of that.

Author:
Christian Nentwich

Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IModelReference getElement()
          Deprecated. As of version 1.4.10, this method is deprecated. It will continue to work with old rule files, however since add expressions can now return any expression, not just model references, you should really call getSource().
 IExpression getSource()
          Return the expression to add to the list.
 IModelReference getTo()
          Return the collection to add to.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getElement

@Deprecated
IModelReference getElement()
Deprecated. As of version 1.4.10, this method is deprecated. It will continue to work with old rule files, however since add expressions can now return any expression, not just model references, you should really call getSource().

Return the element to add. Never returns null after model resolultion. This model reference will typically point to an attribute.

Returns:
the element

getSource

IExpression getSource()
Return the expression to add to the list. This can either be a simple model reference or any other expression.

Replaces getElement().

Returns:
the expression
Since:
1.4.10

getTo

IModelReference getTo()
Return the collection to add to. This always point to an attribute and is never null.

Returns:
the collection attribute reference


Copyright © 2006-2013. All Rights Reserved.