net.sourceforge.nrl.parser.ast.constraints
Interface ICollectionIndex

All Superinterfaces:
IConstraint, IExpression, IIdentifier, INRLAstNode

public interface ICollectionIndex
extends IIdentifier

A statement to return an item at a specific index in a collection.


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IModelReference getCollection()
          Return the reference to the collection.
 int getPosition()
          Return the (1-based) index.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.constraints.IConstraint
getNRLDataType, setNRLDataType
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getPosition

int getPosition()
Return the (1-based) index.

Returns:
the position

getCollection

IModelReference getCollection()
Return the reference to the collection. If the AST is type-checked, this will be forced to be a collection reference.

Returns:
the collection


Copyright © 2006-2010 Christian Nentwich and others