protected static class InvokeDynamic.WithImplicitType.OfField extends InvokeDynamic.WithImplicitType
InvokeDynamic.WithImplicitType.OfArgument, InvokeDynamic.WithImplicitType.OfField, InvokeDynamic.WithImplicitType.OfInstanceInvokeDynamic.AbstractDelegator, InvokeDynamic.Appender, InvokeDynamic.InvocationProvider, InvokeDynamic.TerminationHandler, InvokeDynamic.WithImplicitArguments, InvokeDynamic.WithImplicitTarget, InvokeDynamic.WithImplicitTypeImplementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target| Modifier and Type | Field and Description |
|---|---|
private FieldLocator.Factory |
fieldLocatorFactory
The field locator factory to use.
|
private java.lang.String |
fieldName
The field name.
|
assigner, bootstrapMethod, handleArguments, invocationProvider, terminationHandler, typing| Modifier | Constructor and Description |
|---|---|
protected |
OfField(MethodDescription.InDefinedShape bootstrapMethod,
java.util.List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing,
java.lang.String fieldName,
FieldLocator.Factory fieldLocatorFactory)
Creates a new abstract delegator for a dynamic method invocation where the last argument is assigned an implicit type.
|
| 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.
|
asandThen, 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, withValueprivate final java.lang.String fieldName
private final FieldLocator.Factory fieldLocatorFactory
protected OfField(MethodDescription.InDefinedShape bootstrapMethod, java.util.List<?> handleArguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, java.lang.String fieldName, FieldLocator.Factory fieldLocatorFactory)
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.fieldName - The field name.fieldLocatorFactory - The field locator factory to use.public InvokeDynamic as(TypeDescription typeDescription)
InvokeDynamic.WithImplicitTypeas in class InvokeDynamic.WithImplicitTypetypeDescription - The type to represent to the dynamic method invocation.protected InvokeDynamic materialize()
InvokeDynamic.AbstractDelegatormaterialize in class InvokeDynamic.AbstractDelegator