public abstract static class InvokeDynamic.WithImplicitType extends InvokeDynamic.AbstractDelegator
InvokeDynamic invocation where the last argument is assigned its implicit type.| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | InvokeDynamic.WithImplicitType.OfArgumentAn invoke dynamic implementation where the last argument is an implicitly typed method argument. | 
| protected static class  | InvokeDynamic.WithImplicitType.OfFieldAn invoke dynamic implementation where the last argument is an implicitly typed field value. | 
| protected static class  | InvokeDynamic.WithImplicitType.OfInstanceA step in the invoke dynamic domain specific language that allows to explicitly specify a field type for a reference value. | 
InvokeDynamic.AbstractDelegator, InvokeDynamic.Appender, InvokeDynamic.InvocationProvider, InvokeDynamic.TerminationHandler, InvokeDynamic.WithImplicitArguments, InvokeDynamic.WithImplicitTarget, InvokeDynamic.WithImplicitTypeImplementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.TargetInstrumentedType.Prepareable.NoOparguments, assigner, bootstrap, invocationProvider, terminationHandler, typing| Modifier | Constructor and Description | 
|---|---|
| protected  | WithImplicitType(MethodDescription.InDefinedShape bootstrap,
                List<? extends JavaConstant> arguments,
                InvokeDynamic.InvocationProvider invocationProvider,
                InvokeDynamic.TerminationHandler terminationHandler,
                Assigner assigner,
                Assigner.Typing typing)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(Class<?> type)Represents the last value as an instance of the given type. | 
| abstract InvokeDynamic | as(TypeDescription typeDescription)Represents the last value as an instance of the given type. | 
andThen, appender, materialize, 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, withValueprotected WithImplicitType(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing)
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.public InvokeDynamic as(Class<?> type)
type - The type to represent to the dynamic method invocation.public abstract InvokeDynamic as(TypeDescription typeDescription)
typeDescription - The type to represent to the dynamic method invocation.Copyright © 2014–2025. All rights reserved.