org.quattor.pan.dml.operators
Class NestedListVariable

java.lang.Object
  extended by org.quattor.pan.dml.AbstractOperation
      extended by org.quattor.pan.dml.operators.ListVariable
          extended by org.quattor.pan.dml.operators.NestedListVariable
All Implemented Interfaces:
Operation
Direct Known Subclasses:
SelfNestedListVariable

public class NestedListVariable
extends ListVariable

Looks up a nested variable in the execution context. There must be at least one index (operation).

Author:
loomis

Field Summary
 
Fields inherited from class org.quattor.pan.dml.operators.ListVariable
identifier
 
Fields inherited from class org.quattor.pan.dml.AbstractOperation
ops, sourceRange
 
Constructor Summary
NestedListVariable(SourceRange sourceRange, java.lang.String identifier, Operation... operations)
           
 
Method Summary
 Element execute(Context context)
          Execute this operation within the given context.
 java.lang.String toString()
          Default string representation of an operation is the class' simple name.
 
Methods inherited from class org.quattor.pan.dml.operators.ListVariable
getInstance, getInstance
 
Methods inherited from class org.quattor.pan.dml.AbstractOperation
calculateArgs, calculateTerms, checkInvalidSelfContext, checkRestrictedContext, getOperations, getSourceRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedListVariable

public NestedListVariable(SourceRange sourceRange,
                          java.lang.String identifier,
                          Operation... operations)
Method Detail

execute

public Element execute(Context context)
Description copied from interface: Operation
Execute this operation within the given context. If an error occurs, an EvaluationException will be thrown with the details.

Specified by:
execute in interface Operation
Specified by:
execute in class AbstractOperation
Parameters:
context - evaluation context for the statement
Returns:
Element produced by running operation

toString

public java.lang.String toString()
Description copied from class: AbstractOperation
Default string representation of an operation is the class' simple name.

Overrides:
toString in class AbstractOperation
Returns:
string of class' simple name


Copyright © 2011 Quattor. All Rights Reserved.