public static class InvokeDynamic.WithImplicitFieldType extends InvokeDynamic.AbstractDelegator
InvokeDynamic.AbstractDelegator, InvokeDynamic.Appender, InvokeDynamic.InvocationProvider, InvokeDynamic.TerminationHandler, InvokeDynamic.WithImplicitArguments, InvokeDynamic.WithImplicitArgumentType, InvokeDynamic.WithImplicitFieldType, InvokeDynamic.WithImplicitTarget
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
assigner, bootstrapMethod, handleArguments, invocationProvider, terminationHandler, typing
Modifier | Constructor and Description |
---|---|
protected |
WithImplicitFieldType(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing,
Object value)
Creates a new invoke dynamic instance with an implicit field type for the provided value.
|
Modifier and Type | Method and Description |
---|---|
Implementation |
andThen(Implementation implementation)
Appends the supplied implementation to this implementation.
|
ByteCodeAppender |
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
InvokeDynamic |
as(Type type)
Defines the given value to be treated as an instance of the provided type.
|
InvokeDynamic |
as(TypeDefinition typeDefinition)
Defines the given value to be treated as an instance of the provided type.
|
protected InvokeDynamic.InvocationProvider |
getInvocationProvider()
Returns the invocation provider to be used for equals and hash code calculations.
|
protected InvokeDynamic |
materialize()
Resolves the current configuration into a fully initialized invoke dynamic instance.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
String |
toString() |
InvokeDynamic |
withAssigner(Assigner assigner,
Assigner.Typing typing)
Instructs this implementation to use the provided assigner and decides if the assigner should apply
dynamic typing.
|
withArgument, withArgument, withBooleanValue, withByteValue, withCharacterValue, withDoubleValue, withField, withFloatValue, withImplicitAndMethodArguments, withInstance, withInstanceField, withInstanceField, withIntegerValue, withLongValue, withMethodArguments, withNullValue, withNullValue, withReference, withReference, withShortValue, withThis, withThis, withType, withValue
bootstrap, bootstrap, bootstrap, bootstrap, bootstrap, bootstrap, equals, hashCode, withEnumeration
protected WithImplicitFieldType(MethodDescription.InDefinedShape bootstrapMethod, List<?> handleArguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, Object value)
bootstrapMethod
- The bootstrap method.handleArguments
- The arguments that are provided to the bootstrap method.invocationProvider
- The target provided that identifies the method to be bootstrapped.terminationHandler
- A handler that handles the method return.assigner
- The assigner to be used.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.value
- The value that is supplied as the next argument to the bootstrapped method.public InvokeDynamic as(Type type)
type
- The type as which the provided instance should be handed to the bootstrap method.public InvokeDynamic as(TypeDefinition typeDefinition)
typeDefinition
- The type as which the provided instance should be handed to the bootstrap method.protected InvokeDynamic materialize()
InvokeDynamic.AbstractDelegator
materialize
in class InvokeDynamic.AbstractDelegator
public InvokeDynamic withAssigner(Assigner assigner, Assigner.Typing typing)
InvokeDynamic
withAssigner
in class InvokeDynamic
assigner
- The assigner to use.typing
- true
if the assigner should attempt dynamic typing.public Implementation andThen(Implementation implementation)
Implementation.Composable
andThen
in interface Implementation.Composable
andThen
in class InvokeDynamic
implementation
- The subsequent implementation.public InstrumentedType prepare(InstrumentedType instrumentedType)
InstrumentedType.Prepareable
prepare
in interface InstrumentedType.Prepareable
prepare
in class InvokeDynamic
instrumentedType
- The instrumented type in its current form.public ByteCodeAppender appender(Implementation.Target implementationTarget)
Implementation
appender
in interface Implementation
appender
in class InvokeDynamic
implementationTarget
- The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType)
.protected InvokeDynamic.InvocationProvider getInvocationProvider()
InvokeDynamic
getInvocationProvider
in class InvokeDynamic
public String toString()
toString
in class InvokeDynamic
Copyright © 2014–2016. All rights reserved.