public abstract class AnnotationsAttribute extends Attribute
| Modifier and Type | Field and Description |
|---|---|
Annotation[] |
annotations |
int |
u2annotationsCount |
u2attributeNameIndex, visitorInfo| Modifier | Constructor and Description |
|---|---|
protected |
AnnotationsAttribute()
Creates an uninitialized AnnotationsAttribute.
|
protected |
AnnotationsAttribute(int u2attributeNameIndex,
int u2annotationsCount,
Annotation[] annotations)
Creates an initialized AnnotationsAttribute.
|
| Modifier and Type | Method and Description |
|---|---|
void |
annotationsAccept(Clazz clazz,
AnnotationVisitor annotationVisitor)
Applies the given visitor to all class annotations.
|
void |
annotationsAccept(Clazz clazz,
Field field,
AnnotationVisitor annotationVisitor)
Applies the given visitor to all field annotations.
|
void |
annotationsAccept(Clazz clazz,
Method method,
AnnotationVisitor annotationVisitor)
Applies the given visitor to all method annotations.
|
void |
annotationsAccept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
AnnotationVisitor annotationVisitor)
Applies the given visitor to all code attribute annotations.
|
accept, accept, accept, accept, getAttributeName, getVisitorInfo, setVisitorInfopublic int u2annotationsCount
public Annotation[] annotations
protected AnnotationsAttribute()
protected AnnotationsAttribute(int u2attributeNameIndex,
int u2annotationsCount,
Annotation[] annotations)
public void annotationsAccept(Clazz clazz, AnnotationVisitor annotationVisitor)
public void annotationsAccept(Clazz clazz, Field field, AnnotationVisitor annotationVisitor)
public void annotationsAccept(Clazz clazz, Method method, AnnotationVisitor annotationVisitor)
public void annotationsAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, AnnotationVisitor annotationVisitor)
Copyright © 2015. All Rights Reserved.