public class TypedClassOperationWithCast extends TypedClassOperation
TypedOperation.RankedTypeOperation
compareRankedTypeOperation, inputTypes
Constructor and Description |
---|
TypedClassOperationWithCast(CallableOperation op,
ClassOrInterfaceType declaringType,
TypeTuple inputTypes,
Type outputType) |
TypedClassOperationWithCast(CallableOperation op,
ClassOrInterfaceType declaringType,
TypeTuple inputTypes,
Type outputType,
ExecutableSpecification execSpec) |
Modifier and Type | Method and Description |
---|---|
TypedClassOperationWithCast |
applyCaptureConversion()
Applies a capture conversion to the wildcard types of this operation, and returns a new
operation with new type variables for the wildcard types.
|
ExecutionOutcome |
execute(java.lang.Object[] input)
Performs this operation using the array of input values.
|
TypedClassOperationWithCast |
substitute(Substitution substitution)
Applies the given substitution to the generic types in this operation, and returns a new
operation with the instantiated types.
|
appendCode, equals, getDeclaringType, getFullyQualifiedSignature, getName, getOperationForType, getRawSignature, getTypeParameters, getUnqualifiedBinaryName, hashCode, hasWildcardTypes, toParsableString, toString
checkPrestate, compareTo, createArrayCreation, createArrayElementAssignment, createCast, createGetterForField, createInitializedArrayCreation, createNonreceiverInitialization, createNullOrZeroInitializationForType, createPrimitiveInitialization, createSetterForField, forConstructor, forMethod, getExecutableSpecification, getInputTypes, getOperation, getOutputType, getSignatureString, getValue, isConstantField, isConstructorCall, isGeneric, isGeneric, isMessage, isMethodCall, isNonreceivingValue, isStatic, isUncheckedCast, satisfies, setExecutableSpecification
TypedClassOperationWithCast(CallableOperation op, ClassOrInterfaceType declaringType, TypeTuple inputTypes, Type outputType)
TypedClassOperationWithCast(CallableOperation op, ClassOrInterfaceType declaringType, TypeTuple inputTypes, Type outputType, ExecutableSpecification execSpec)
public TypedClassOperationWithCast substitute(Substitution substitution)
TypedClassOperation
Applies the substitution to the declaring type, all input types, and the output type.
substitute
in class TypedClassOperation
substitution
- the substitutionpublic TypedClassOperationWithCast applyCaptureConversion()
TypedOperation
applyCaptureConversion
in class TypedClassOperation
public ExecutionOutcome execute(java.lang.Object[] input)
Performs cast to output type of this operation to ensure that any ClassCastException
that would be thrown in JVM execution is also thrown.
execute
in class TypedOperation
input
- array containing appropriate inputs to operation