public abstract class Attribute extends SimpleProcessable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANNOTATION_DEFAULT |
static java.lang.String |
BOOTSTRAP_METHODS |
static java.lang.String |
CHARACTER_RANGE_TABLE |
static java.lang.String |
CODE |
static java.lang.String |
COMPILATION_I_D |
static java.lang.String |
CONSTANT_VALUE |
static java.lang.String |
DEPRECATED |
static java.lang.String |
ENCLOSING_METHOD |
static java.lang.String |
EXCEPTIONS |
static java.lang.String |
INNER_CLASSES |
static java.lang.String |
LINE_NUMBER_TABLE |
static java.lang.String |
LOCAL_VARIABLE_TABLE |
static java.lang.String |
LOCAL_VARIABLE_TYPE_TABLE |
static java.lang.String |
METHOD_PARAMETERS |
static java.lang.String |
MODULE |
static java.lang.String |
MODULE_MAIN_CLASS |
static java.lang.String |
MODULE_PACKAGES |
static java.lang.String |
NEST_HOST |
static java.lang.String |
NEST_MEMBERS |
static java.lang.String |
PERMITTED_SUBCLASSES |
static java.lang.String |
RECORD |
static java.lang.String |
RUNTIME_INVISIBLE_ANNOTATIONS |
static java.lang.String |
RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS |
static java.lang.String |
RUNTIME_INVISIBLE_TYPE_ANNOTATIONS |
static java.lang.String |
RUNTIME_VISIBLE_ANNOTATIONS |
static java.lang.String |
RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS |
static java.lang.String |
RUNTIME_VISIBLE_TYPE_ANNOTATIONS |
static java.lang.String |
SIGNATURE |
static java.lang.String |
SOURCE_DEBUG_EXTENSION |
static java.lang.String |
SOURCE_DIR |
static java.lang.String |
SOURCE_FILE |
static java.lang.String |
SOURCE_I_D |
static java.lang.String |
STACK_MAP |
static java.lang.String |
STACK_MAP_TABLE |
static java.lang.String |
SYNTHETIC |
int |
u2attributeNameIndex |
processingFlags, processingInfo
Modifier | Constructor and Description |
---|---|
protected |
Attribute()
Create an uninitialized Attribute.
|
protected |
Attribute(int u2attributeNameIndex)
Create an initialized Attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Clazz clazz,
AttributeVisitor attributeVisitor)
Accepts the given visitor.
|
void |
accept(Clazz clazz,
Field field,
AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given field.
|
void |
accept(Clazz clazz,
Method method,
AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given method.
|
void |
accept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given code attribute.
|
void |
accept(Clazz clazz,
RecordComponentInfo recordComponentInfo,
AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given record component.
|
java.lang.String |
getAttributeName(Clazz clazz)
Returns the String name of the attribute.
|
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
public static final java.lang.String BOOTSTRAP_METHODS
public static final java.lang.String SOURCE_FILE
public static final java.lang.String SOURCE_DIR
public static final java.lang.String RECORD
public static final java.lang.String INNER_CLASSES
public static final java.lang.String ENCLOSING_METHOD
public static final java.lang.String NEST_HOST
public static final java.lang.String NEST_MEMBERS
public static final java.lang.String PERMITTED_SUBCLASSES
public static final java.lang.String DEPRECATED
public static final java.lang.String SYNTHETIC
public static final java.lang.String SIGNATURE
public static final java.lang.String CONSTANT_VALUE
public static final java.lang.String METHOD_PARAMETERS
public static final java.lang.String EXCEPTIONS
public static final java.lang.String CODE
public static final java.lang.String STACK_MAP
public static final java.lang.String STACK_MAP_TABLE
public static final java.lang.String LINE_NUMBER_TABLE
public static final java.lang.String LOCAL_VARIABLE_TABLE
public static final java.lang.String LOCAL_VARIABLE_TYPE_TABLE
public static final java.lang.String RUNTIME_VISIBLE_ANNOTATIONS
public static final java.lang.String RUNTIME_INVISIBLE_ANNOTATIONS
public static final java.lang.String RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
public static final java.lang.String RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
public static final java.lang.String RUNTIME_VISIBLE_TYPE_ANNOTATIONS
public static final java.lang.String RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
public static final java.lang.String ANNOTATION_DEFAULT
public static final java.lang.String MODULE
public static final java.lang.String MODULE_MAIN_CLASS
public static final java.lang.String MODULE_PACKAGES
public static final java.lang.String SOURCE_DEBUG_EXTENSION
public static final java.lang.String CHARACTER_RANGE_TABLE
public static final java.lang.String COMPILATION_I_D
public static final java.lang.String SOURCE_I_D
public int u2attributeNameIndex
protected Attribute()
protected Attribute(int u2attributeNameIndex)
public java.lang.String getAttributeName(Clazz clazz)
public void accept(Clazz clazz, AttributeVisitor attributeVisitor)
public void accept(Clazz clazz, Field field, AttributeVisitor attributeVisitor)
public void accept(Clazz clazz, Method method, AttributeVisitor attributeVisitor)
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, AttributeVisitor attributeVisitor)
public void accept(Clazz clazz, RecordComponentInfo recordComponentInfo, AttributeVisitor attributeVisitor)