Package net.bytebuddy.description.type
Enum TypeDescription.Generic.Visitor.Reifying
- java.lang.Object
-
- java.lang.Enum<TypeDescription.Generic.Visitor.Reifying>
-
- net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Reifying
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypeDescription.Generic.Visitor.Reifying>
,TypeDescription.Generic.Visitor<TypeDescription.Generic>
- Enclosing interface:
- TypeDescription.Generic.Visitor<T>
public static enum TypeDescription.Generic.Visitor.Reifying extends java.lang.Enum<TypeDescription.Generic.Visitor.Reifying> implements TypeDescription.Generic.Visitor<TypeDescription.Generic>
A visitor that reifies type descriptions if they represent raw types.
-
-
Nested Class Summary
-
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 INHERITING
A visitor that reifies non-generic types if they represent raw types or are parameterized types.INITIATING
A visitor that reifies non-generic types if they represent raw types.
-
Constructor Summary
Constructors Modifier Constructor Description private
Reifying()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription.Generic
onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).TypeDescription.Generic
onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).TypeDescription.Generic
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).TypeDescription.Generic
onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (TypeDefinition.Sort.WILDCARD
).static TypeDescription.Generic.Visitor.Reifying
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypeDescription.Generic.Visitor.Reifying[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.Visitor
onParameterizedType
-
-
-
-
Enum Constant Detail
-
INITIATING
public static final TypeDescription.Generic.Visitor.Reifying INITIATING
A visitor that reifies non-generic types if they represent raw types. This visitor should be applied when visiting a potential raw type.
-
INHERITING
public static final TypeDescription.Generic.Visitor.Reifying INHERITING
A visitor that reifies non-generic types if they represent raw types or are parameterized types. This visitor should only be applied when a type was inherited from a reified type.
-
-
Method Detail
-
values
public static TypeDescription.Generic.Visitor.Reifying[] 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.Reifying c : TypeDescription.Generic.Visitor.Reifying.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.Reifying 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 onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).- Specified by:
onGenericArray
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
genericArray
- The generic array type.- Returns:
- The visitor's return value.
-
onWildcard
public TypeDescription.Generic onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (TypeDefinition.Sort.WILDCARD
).- Specified by:
onWildcard
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
wildcard
- The wildcard.- Returns:
- The visitor's return value.
-
onTypeVariable
public TypeDescription.Generic onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).- Specified by:
onTypeVariable
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
typeVariable
- The generic array type.- Returns:
- The visitor's return value.
-
onNonGenericType
public TypeDescription.Generic onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).- Specified by:
onNonGenericType
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
typeDescription
- The non-generic type.- Returns:
- The visitor's return value.
-
-