public class SetValue extends AbstractOperation
| Modifier and Type | Field and Description |
|---|---|
protected String |
identifier |
ops, sourceRange| Modifier | Constructor and Description |
|---|---|
protected |
SetValue(SourceRange sourceRange,
String identifier,
Operation... operations) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkStaticIndexes(SourceRange sourceRange,
Operation... operations) |
Element |
execute(Context context)
Execute this operation within the given context.
|
Element |
execute(Context context,
Element result) |
static SetValue |
getInstance(SourceRange sourceRange,
String identifier,
Operation... operations) |
static SetValue |
getInstance(Variable v) |
String |
toString()
Default string representation of an operation is the class' simple name.
|
protected void |
validName(String name)
A utility method to determine if the variable name collides with one of
the reserved 'automatic' variables.
|
calculateArgs, calculateTerms, checkInvalidSelfContext, checkRestrictedContext, getOperations, getSourceRangeprotected String identifier
protected SetValue(SourceRange sourceRange, String identifier, Operation... operations) throws SyntaxException
SyntaxExceptionprotected static void checkStaticIndexes(SourceRange sourceRange, Operation... operations) throws SyntaxException
SyntaxExceptionprotected void validName(String name) throws SyntaxException
name - variable name to checkSyntaxExceptionpublic static SetValue getInstance(SourceRange sourceRange, String identifier, Operation... operations) throws SyntaxException
SyntaxExceptionpublic static SetValue getInstance(Variable v) throws SyntaxException
SyntaxExceptionpublic Element execute(Context context)
Operationexecute in interface Operationexecute in class AbstractOperationcontext - evaluation context for the statementpublic String toString()
AbstractOperationtoString in class AbstractOperationCopyright © 2014 Quattor. All Rights Reserved.