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

All Superinterfaces:
IAction, INRLAstNode, ISimpleAction

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.


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IModelReference getElement()
          Return the element to add.
 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

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

Returns:
the element

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-2010 Christian Nentwich and others