org.quattor.pan.dml.operators
Class SelfSimpleListVariable
java.lang.Object
org.quattor.pan.dml.AbstractOperation
org.quattor.pan.dml.operators.ListVariable
org.quattor.pan.dml.operators.SimpleListVariable
org.quattor.pan.dml.operators.SelfSimpleListVariable
- All Implemented Interfaces:
- Operation
public final class SelfSimpleListVariable
- extends SimpleListVariable
Looks up a simple variable in the execution context.
- Author:
- loomis
|
Method Summary |
void |
checkInvalidSelfContext()
Default implementation recursively calls this method on all of the
contained operations (arguments). |
Element |
execute(Context context)
Execute this operation within the given context. |
SelfSimpleListVariable
public SelfSimpleListVariable(SourceRange sourceRange)
checkInvalidSelfContext
public void checkInvalidSelfContext()
throws SyntaxException
- Description copied from class:
AbstractOperation
- Default implementation recursively calls this method on all of the
contained operations (arguments). Subclasses that reference SELF should
override this method and throw a SyntaxException.
- Specified by:
checkInvalidSelfContext in interface Operation- Overrides:
checkInvalidSelfContext in class AbstractOperation
- Throws:
SyntaxException - if operation references SELF
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- Overrides:
execute in class SimpleListVariable
- Parameters:
context - evaluation context for the statement
- Returns:
- Element produced by running operation
Copyright © 2011 Quattor. All Rights Reserved.