class ArrayElementSet extends CallableOperation
Modifier and Type | Field and Description |
---|---|
private int |
ARRAY |
private Type |
elementType |
private int |
INDEX |
private int |
VALUE |
Constructor and Description |
---|
ArrayElementSet(Type elementType) |
Modifier and Type | Method and Description |
---|---|
void |
appendCode(Type declaringType,
TypeTuple inputTypes,
Type outputType,
java.util.List<Variable> inputVars,
java.lang.StringBuilder b)
Produces a Java source code representation of this statement and appends it to the given
StringBuilder.
|
ExecutionOutcome |
execute(java.lang.Object[] input)
Performs this operation using the array of input values.
|
java.lang.String |
getName()
Returns the name for the operation.
|
java.lang.String |
toParsableString(Type declaringType,
TypeTuple inputTypes,
Type outputType)
Returns a string representation of this Operation (not an invocation of this Operation), which
can be read by the static parse method for the class in which the method is defined.
|
getArgumentString, getReflectionObject, getValue, isConstantField, isConstructorCall, isMessage, isMethodCall, isNonreceivingValue, isStatic, isUncheckedCast, satisfies
private final int ARRAY
private final int INDEX
private final int VALUE
private final Type elementType
ArrayElementSet(Type elementType)
public ExecutionOutcome execute(java.lang.Object[] input)
CallableOperation
execute
in class CallableOperation
input
- array containing appropriate inputs to operationpublic void appendCode(Type declaringType, TypeTuple inputTypes, Type outputType, java.util.List<Variable> inputVars, java.lang.StringBuilder b)
CallableOperation
appendCode
in class CallableOperation
declaringType
- the declaring type for this operationinputTypes
- the input types for this operationoutputType
- the output type for this operationinputVars
- the list of variables that are inputs to operationb
- the StringBuilder
to which code is addedpublic java.lang.String toParsableString(Type declaringType, TypeTuple inputTypes, Type outputType)
CallableOperation
toParsableString
in class CallableOperation
declaringType
- the declaring type for this operationinputTypes
- the input types for this operationoutputType
- the output type for this operationpublic java.lang.String getName()
Operation