public static enum TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass extends Enum<TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass> implements TypeWriter.Default.ValidatingClassVisitor.Constraint
TypeWriter.Default.ValidatingClassVisitor.Constraint.Compound, TypeWriter.Default.ValidatingClassVisitor.Constraint.ForAnnotation, TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass, TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClassFileVersion, TypeWriter.Default.ValidatingClassVisitor.Constraint.ForInterface, TypeWriter.Default.ValidatingClassVisitor.Constraint.ForPackageType, TypeWriter.Default.ValidatingClassVisitor.Constraint.ForRecord| Enum Constant and Description |
|---|
ABSTRACT
Represents the constraints of an abstract class.
|
MANIFEST
Represents the constraints of a non-abstract class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertAnnotation()
Asserts the legitimacy of an annotation for the instrumented type.
|
void |
assertDefaultMethodCall()
Asserts if it is legal to invoke a default method from a type.
|
void |
assertDefaultValue(String name)
Asserts if a default value is legal for a method.
|
void |
assertDynamicValueInConstantPool()
Asserts the capability of storing a dynamic value in the constant pool.
|
void |
assertField(String name,
boolean isPublic,
boolean isStatic,
boolean isFinal,
boolean isGeneric)
Asserts a field for being valid.
|
void |
assertHandleInConstantPool()
Asserts the capability to store a method handle in the class's constant pool.
|
void |
assertInvokeDynamic()
Asserts the capability to invoke a method dynamically.
|
void |
assertMethod(String name,
boolean isAbstract,
boolean isPublic,
boolean isPrivate,
boolean isStatic,
boolean isVirtual,
boolean isConstructor,
boolean isDefaultValueIncompatible,
boolean isGeneric)
Asserts a method for being valid.
|
void |
assertMethodTypeInConstantPool()
Asserts the capability to store a method type constant in the class's constant pool.
|
void |
assertNestMate()
Asserts the capability of storing nest mate information.
|
void |
assertPermittedSubclass()
Asserts the presence of a permitted subclass.
|
void |
assertRecord()
Asserts the presence of a record component.
|
void |
assertSubRoutine()
Asserts the capability of executing a subroutine.
|
void |
assertType(int modifier,
boolean definesInterfaces,
boolean isGeneric)
Asserts if the type can legally represent a package description.
|
void |
assertTypeAnnotation()
Asserts the legitimacy of a type annotation for the instrumented type.
|
void |
assertTypeInConstantPool()
Asserts the capability to store a type constant in the class's constant pool.
|
static TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass MANIFEST
public static final TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass ABSTRACT
public static TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass[] values()
for (TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass c : TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass.values()) System.out.println(c);
public static TypeWriter.Default.ValidatingClassVisitor.Constraint.ForClass valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void assertType(int modifier,
boolean definesInterfaces,
boolean isGeneric)
assertType in interface TypeWriter.Default.ValidatingClassVisitor.Constraintmodifier - The modifier that is to be written to the type.definesInterfaces - true if this type implements at least one interface.isGeneric - true if this type defines a generic type signature.public void assertField(String name, boolean isPublic, boolean isStatic, boolean isFinal, boolean isGeneric)
assertField in interface TypeWriter.Default.ValidatingClassVisitor.Constraintname - The name of the field.isPublic - true if this field is public.isStatic - true if this field is static.isFinal - true if this field is final.isGeneric - true if this field defines a generic signature.public void assertMethod(String name, boolean isAbstract, boolean isPublic, boolean isPrivate, boolean isStatic, boolean isVirtual, boolean isConstructor, boolean isDefaultValueIncompatible, boolean isGeneric)
assertMethod in interface TypeWriter.Default.ValidatingClassVisitor.Constraintname - The name of the method.isAbstract - true if the method is abstract.isPublic - true if this method is public.isPrivate - true if this method is private.isStatic - true if this method is static.isVirtual - true if this method is virtual.isConstructor - true if this method is a constructor.isDefaultValueIncompatible - true if a method's signature cannot describe an annotation property method.isGeneric - true if this method defines a generic signature.public void assertAnnotation()
assertAnnotation in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertTypeAnnotation()
assertTypeAnnotation in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertDefaultValue(String name)
assertDefaultValue in interface TypeWriter.Default.ValidatingClassVisitor.Constraintname - The name of the method.public void assertDefaultMethodCall()
assertDefaultMethodCall in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertTypeInConstantPool()
assertTypeInConstantPool in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertMethodTypeInConstantPool()
assertMethodTypeInConstantPool in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertHandleInConstantPool()
assertHandleInConstantPool in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertInvokeDynamic()
assertInvokeDynamic in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertSubRoutine()
assertSubRoutine in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertDynamicValueInConstantPool()
assertDynamicValueInConstantPool in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertNestMate()
assertNestMate in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertRecord()
assertRecord in interface TypeWriter.Default.ValidatingClassVisitor.Constraintpublic void assertPermittedSubclass()
assertPermittedSubclass in interface TypeWriter.Default.ValidatingClassVisitor.ConstraintCopyright © 2014–2025. All rights reserved.