Package net.bytebuddy.description.type
Enum TypeDescription.Generic.Visitor.Assigner
- java.lang.Object
-
- java.lang.Enum<TypeDescription.Generic.Visitor.Assigner>
-
- net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypeDescription.Generic.Visitor.Assigner>
,TypeDescription.Generic.Visitor<TypeDescription.Generic.Visitor.Assigner.Dispatcher>
- Enclosing interface:
- TypeDescription.Generic.Visitor<T>
public static enum TypeDescription.Generic.Visitor.Assigner extends java.lang.Enum<TypeDescription.Generic.Visitor.Assigner> implements TypeDescription.Generic.Visitor<TypeDescription.Generic.Visitor.Assigner.Dispatcher>
A visitor that determines the direct assignability of a type to another generic type. This visitor only checks for strict assignability and does not perform any form of boxing or primitive type widening that are allowed in the Java language.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TypeDescription.Generic.Visitor.Assigner.Dispatcher
A dispatcher that allows to check if the visited generic type is assignable to the supplied type.-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.Visitor
TypeDescription.Generic.Visitor.AnnotationStripper, TypeDescription.Generic.Visitor.Assigner, TypeDescription.Generic.Visitor.ForRawType, TypeDescription.Generic.Visitor.ForSignatureVisitor, TypeDescription.Generic.Visitor.NoOp, TypeDescription.Generic.Visitor.Reducing, TypeDescription.Generic.Visitor.Reifying, TypeDescription.Generic.Visitor.Substitutor, TypeDescription.Generic.Visitor.TypeErasing, TypeDescription.Generic.Visitor.Validator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Method Summary
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeDescription.Generic.Visitor.Assigner INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static TypeDescription.Generic.Visitor.Assigner[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeDescription.Generic.Visitor.Assigner c : TypeDescription.Generic.Visitor.Assigner.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeDescription.Generic.Visitor.Assigner valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
onGenericArray
public TypeDescription.Generic.Visitor.Assigner.Dispatcher onGenericArray(TypeDescription.Generic genericArray)
Description copied from interface:TypeDescription.Generic.Visitor
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).- Specified by:
onGenericArray
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic.Visitor.Assigner.Dispatcher>
- Parameters:
genericArray
- The generic array type.- Returns:
- The visitor's return value.
-
onWildcard
public TypeDescription.Generic.Visitor.Assigner.Dispatcher onWildcard(TypeDescription.Generic wildcard)
Description copied from interface:TypeDescription.Generic.Visitor
Visits a wildcard (TypeDefinition.Sort.WILDCARD
).- Specified by:
onWildcard
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic.Visitor.Assigner.Dispatcher>
- Parameters:
wildcard
- The wildcard.- Returns:
- The visitor's return value.
-
onParameterizedType
public TypeDescription.Generic.Visitor.Assigner.Dispatcher onParameterizedType(TypeDescription.Generic parameterizedType)
Description copied from interface:TypeDescription.Generic.Visitor
Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).- Specified by:
onParameterizedType
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic.Visitor.Assigner.Dispatcher>
- Parameters:
parameterizedType
- The generic array type.- Returns:
- The visitor's return value.
-
onTypeVariable
public TypeDescription.Generic.Visitor.Assigner.Dispatcher onTypeVariable(TypeDescription.Generic typeVariable)
Description copied from interface:TypeDescription.Generic.Visitor
Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).- Specified by:
onTypeVariable
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic.Visitor.Assigner.Dispatcher>
- Parameters:
typeVariable
- The generic array type.- Returns:
- The visitor's return value.
-
onNonGenericType
public TypeDescription.Generic.Visitor.Assigner.Dispatcher onNonGenericType(TypeDescription.Generic typeDescription)
Description copied from interface:TypeDescription.Generic.Visitor
Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).- Specified by:
onNonGenericType
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic.Visitor.Assigner.Dispatcher>
- Parameters:
typeDescription
- The non-generic type.- Returns:
- The visitor's return value.
-
-