Package net.bytebuddy.description
Enum TypeVariableSource.Visitor.NoOp
- java.lang.Object
-
- java.lang.Enum<TypeVariableSource.Visitor.NoOp>
-
- net.bytebuddy.description.TypeVariableSource.Visitor.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypeVariableSource.Visitor.NoOp>
,TypeVariableSource.Visitor<TypeVariableSource>
- Enclosing interface:
- TypeVariableSource.Visitor<T>
public static enum TypeVariableSource.Visitor.NoOp extends java.lang.Enum<TypeVariableSource.Visitor.NoOp> implements TypeVariableSource.Visitor<TypeVariableSource>
A none-operational implementation of a type variable visitor that simply returns the visited source.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.TypeVariableSource.Visitor
TypeVariableSource.Visitor.NoOp
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeVariableSource
onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.TypeVariableSource
onType(TypeDescription typeDescription)
Applies the visitor on a type.static TypeVariableSource.Visitor.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypeVariableSource.Visitor.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeVariableSource.Visitor.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static TypeVariableSource.Visitor.NoOp[] 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 (TypeVariableSource.Visitor.NoOp c : TypeVariableSource.Visitor.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeVariableSource.Visitor.NoOp 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
-
onType
public TypeVariableSource onType(TypeDescription typeDescription)
Applies the visitor on a type.- Specified by:
onType
in interfaceTypeVariableSource.Visitor<TypeVariableSource>
- Parameters:
typeDescription
- The type onto which this visitor is applied.- Returns:
- The visitor's return value.
-
onMethod
public TypeVariableSource onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.- Specified by:
onMethod
in interfaceTypeVariableSource.Visitor<TypeVariableSource>
- Parameters:
methodDescription
- The method onto which this visitor is applied.- Returns:
- The visitor's return value.
-
-