Package net.bytebuddy.utility
Interface JavaConstant.Simple.Dispatcher
-
- All Known Subinterfaces:
JavaConstant.Simple.Dispatcher.OfClassDesc
,JavaConstant.Simple.Dispatcher.OfDirectMethodHandleDesc
,JavaConstant.Simple.Dispatcher.OfDynamicConstantDesc
,JavaConstant.Simple.Dispatcher.OfMethodHandleDesc
,JavaConstant.Simple.Dispatcher.OfMethodTypeDesc
- Enclosing class:
- JavaConstant.Simple<T>
@Proxied("java.lang.constant.ConstantDesc") protected static interface JavaConstant.Simple.Dispatcher
A dispatcher to representjava.lang.constant.ConstantDesc
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
JavaConstant.Simple.Dispatcher.OfClassDesc
A dispatcher to representjava.lang.constant.ClassDesc
.static interface
JavaConstant.Simple.Dispatcher.OfDirectMethodHandleDesc
A dispatcher to representjava.lang.constant.DirectMethodHandleDesc
.static interface
JavaConstant.Simple.Dispatcher.OfDynamicConstantDesc
A dispatcher to representjava.lang.constant.DynamicConstantDesc
.static interface
JavaConstant.Simple.Dispatcher.OfMethodHandleDesc
A dispatcher to representjava.lang.constant.MethodHandleDesc
.static interface
JavaConstant.Simple.Dispatcher.OfMethodTypeDesc
A dispatcher to representjava.lang.constant.MethodTypeDesc
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isInstance(java.lang.Object instance)
Checks if the supplied instance is of the type of this dispatcher.java.lang.Object[]
toArray(int length)
Returns an array of the dispatcher type.
-
-
-
Method Detail
-
isInstance
@Instance boolean isInstance(java.lang.Object instance)
Checks if the supplied instance is of the type of this dispatcher.- Parameters:
instance
- The instance to verify.- Returns:
true
if the instance is of the supplied type.
-
toArray
@Container java.lang.Object[] toArray(int length)
Returns an array of the dispatcher type.- Parameters:
length
- The length of the array.- Returns:
- An array of the type that is represented by this dispatcher with the given length.
-
-