Package randoop.operation
Class ArrayElementSet
java.lang.Object
randoop.operation.CallableOperation
randoop.operation.ArrayElementSet
- All Implemented Interfaces:
Operation
Created by bjkeller on 8/19/16.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final Type
private final int
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendCode
(Type declaringType, TypeTuple inputTypes, Type outputType, List<Variable> inputVars, StringBuilder b) Produces a Java source code representation of this statement and appends it to the given StringBuilder.Performs this operation using the array of input values.getName()
Returns the name for the operation.toParsableString
(Type declaringType, TypeTuple inputTypes, Type outputType) Returns a string representation of this Operation, which can be read by static parse method for class.Methods inherited from class randoop.operation.CallableOperation
getArgumentString, getReflectionObject, getValue, isConstantField, isConstructorCall, isMessage, isMethodCall, isNonreceivingValue, isStatic, isUncheckedCast, satisfies
-
Field Details
-
ARRAY
private final int ARRAY- See Also:
-
INDEX
private final int INDEX- See Also:
-
VALUE
private final int VALUE- See Also:
-
elementType
-
-
Constructor Details
-
ArrayElementSet
ArrayElementSet(Type elementType)
-
-
Method Details
-
execute
Description copied from class:CallableOperation
Performs this operation using the array of input values. Returns the results of execution as an ResultOrException object and can output results to specified PrintStream.- Specified by:
execute
in classCallableOperation
- Parameters:
input
- array containing appropriate inputs to operation- Returns:
- results of executing this statement
-
appendCode
public void appendCode(Type declaringType, TypeTuple inputTypes, Type outputType, List<Variable> inputVars, StringBuilder b) Description copied from class:CallableOperation
Produces a Java source code representation of this statement and appends it to the given StringBuilder.- Specified by:
appendCode
in classCallableOperation
- Parameters:
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
- theStringBuilder
to which code is added
-
toParsableString
Description copied from class:CallableOperation
Returns a string representation of this Operation, which can be read by static parse method for class. For a class C implementing the Operation interface, this method should return a String s such that parsing the string returns an object equivalent to this object, i.e. C.parse(this.s).equals(this).- Specified by:
toParsableString
in classCallableOperation
- Parameters:
declaringType
- the declaring type for this operationinputTypes
- the input types for this operationoutputType
- the output type for this operation- Returns:
- a string representation of this operation
-
getName
Description copied from interface:Operation
Returns the name for the operation.- Returns:
- the name for this operation
-