protected static class InvokeDynamic.WithImplicitType.OfArgument extends InvokeDynamic.WithImplicitType
InvokeDynamic.WithImplicitType.OfArgument, InvokeDynamic.WithImplicitType.OfField, InvokeDynamic.WithImplicitType.OfInstance
InvokeDynamic.AbstractDelegator, InvokeDynamic.Appender, InvokeDynamic.InvocationProvider, InvokeDynamic.TerminationHandler, InvokeDynamic.WithImplicitArguments, InvokeDynamic.WithImplicitTarget, InvokeDynamic.WithImplicitType
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
arguments, assigner, bootstrap, invocationProvider, terminationHandler, typing
Modifier | Constructor and Description |
---|---|
protected |
OfArgument(MethodDescription.InDefinedShape bootstrap,
List<?> arguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing,
int index)
Creates a new invoke dynamic instance with an implicit field type for the provided value.
|
Modifier and Type | Method and Description |
---|---|
InvokeDynamic |
as(TypeDescription typeDescription)
Represents the last value as an instance of the given type.
|
protected InvokeDynamic |
materialize()
Resolves the current configuration into a fully initialized invoke dynamic instance.
|
as
andThen, appender, prepare, withArgument, withArgument, withAssigner, withBooleanValue, withByteValue, withCharacterValue, withDoubleValue, withEnumeration, withField, withField, withField, withField, withFloatValue, withImplicitAndMethodArguments, withInstance, withIntegerValue, withLongValue, withMethodArguments, withNullValue, withNullValue, withReference, withReference, withShortValue, withThis, withThis, withType, withValue
protected OfArgument(MethodDescription.InDefinedShape bootstrap, List<?> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, int index)
bootstrap
- The bootstrap method or constructor.arguments
- The arguments that are provided to the bootstrap method or constructor.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.index
- The index of of the argument to supply to the bootstrapped method.public InvokeDynamic as(TypeDescription typeDescription)
InvokeDynamic.WithImplicitType
as
in class InvokeDynamic.WithImplicitType
typeDescription
- The type to represent to the dynamic method invocation.protected InvokeDynamic materialize()
InvokeDynamic.AbstractDelegator
materialize
in class InvokeDynamic.AbstractDelegator
Copyright © 2014–2020. All rights reserved.