Package net.bytebuddy.dynamic.scaffold
Enum InstrumentedType.Factory.Default
- java.lang.Object
-
- java.lang.Enum<InstrumentedType.Factory.Default>
-
- net.bytebuddy.dynamic.scaffold.InstrumentedType.Factory.Default
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InstrumentedType.Factory.Default>
,InstrumentedType.Factory
- Enclosing interface:
- InstrumentedType.Factory
public static enum InstrumentedType.Factory.Default extends java.lang.Enum<InstrumentedType.Factory.Default> implements InstrumentedType.Factory
Default implementations of instrumented type factories.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Factory
InstrumentedType.Factory.Default
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FROZEN
A factory for an instrumented type that does not allow to modify represented types.MODIFIABLE
A factory for an instrumented type that allows to modify represented types.
-
Constructor Summary
Constructors Modifier Constructor Description private
Default()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentedType.WithFlexibleName
subclass(java.lang.String name, int modifiers, TypeDescription.Generic superClass)
Creates a new instrumented type as a subclass.static InstrumentedType.Factory.Default
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InstrumentedType.Factory.Default[]
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.dynamic.scaffold.InstrumentedType.Factory
represent
-
-
-
-
Enum Constant Detail
-
MODIFIABLE
public static final InstrumentedType.Factory.Default MODIFIABLE
A factory for an instrumented type that allows to modify represented types.
-
FROZEN
public static final InstrumentedType.Factory.Default FROZEN
A factory for an instrumented type that does not allow to modify represented types.
-
-
Method Detail
-
values
public static InstrumentedType.Factory.Default[] 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 (InstrumentedType.Factory.Default c : InstrumentedType.Factory.Default.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstrumentedType.Factory.Default 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
-
subclass
public InstrumentedType.WithFlexibleName subclass(java.lang.String name, int modifiers, TypeDescription.Generic superClass)
Creates a new instrumented type as a subclass.- Specified by:
subclass
in interfaceInstrumentedType.Factory
- Parameters:
name
- The type's name.modifiers
- The type's modifiers.superClass
- The type's super class.- Returns:
- A new instrumented type representing a subclass of the given parameters.
-
-