Class ASMifierAbstractVisitor
java.lang.Object
org.objectweb.asm.util.AbstractVisitor
org.objectweb.asm.util.ASMifierAbstractVisitor
- Direct Known Subclasses:
ASMifierClassVisitor, ASMifierFieldVisitor, ASMifierMethodVisitor
An abstract ASMifier visitor.
- Author:
- Eric Bruneton
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe name of the variable for this visitor in the produced code.Fields inherited from class AbstractVisitor
buf, OPCODES, text, TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisitAnnotation(String desc, boolean visible) Prints the ASM code that generates the given annotation.voidvisitAttribute(Attribute attr) Prints the ASM code that generates the given attribute.voidvisitEnd()Prints the ASM code to end the visit.Methods inherited from class AbstractVisitor
appendString, getDefaultAttributes, getText, print
-
Field Details
-
name
The name of the variable for this visitor in the produced code.
-
-
Constructor Details
-
ASMifierAbstractVisitor
Constructs a newASMifierAbstractVisitor.- Parameters:
name- the name of the variable for this visitor in the produced code.
-
-
Method Details
-
visitAnnotation
Prints the ASM code that generates the given annotation.- Parameters:
desc- the class descriptor of the annotation class.visible- true if the annotation is visible at runtime.- Returns:
- a visitor to visit the annotation values.
-
visitAttribute
Prints the ASM code that generates the given attribute.- Parameters:
attr- an attribute.
-
visitEnd
public void visitEnd()Prints the ASM code to end the visit.
-