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:
Serializable
,Comparable<InstrumentedType.Factory.Default>
,java.lang.constant.Constable
,InstrumentedType.Factory
- Enclosing interface:
InstrumentedType.Factory
public static enum InstrumentedType.Factory.Default
extends Enum<InstrumentedType.Factory.Default>
implements InstrumentedType.Factory
Default implementations of instrumented type factories.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Factory
InstrumentedType.Factory.Default
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA factory for an instrumented type that does not allow to modify represented types.A factory for an instrumented type that allows to modify represented types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsubclass
(String name, int modifiers, TypeDescription.Generic superClass) Creates a new instrumented type as a subclass.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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Factory
represent
-
Enum Constant Details
-
MODIFIABLE
A factory for an instrumented type that allows to modify represented types. -
FROZEN
A factory for an instrumented type that does not allow to modify represented types.
-
-
Constructor Details
-
Default
private Default()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
subclass
public InstrumentedType.WithFlexibleName subclass(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.
-