|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.util.asm.util.AbstractVisitor
org.compass.core.util.asm.util.ASMifierAbstractVisitor
public class ASMifierAbstractVisitor
An abstract ASMifier visitor.
| Field Summary | |
|---|---|
(package private) Map |
labelNames
The label names. |
protected String |
name
The name of the variable for this visitor in the produced code. |
| Fields inherited from class org.compass.core.util.asm.util.AbstractVisitor |
|---|
buf, OPCODES, text, TYPES |
| Constructor Summary | |
|---|---|
protected |
ASMifierAbstractVisitor(String name)
Constructs a new ASMifierAbstractVisitor. |
| Method Summary | |
|---|---|
(package private) void |
appendConstant(Object cst)
Appends a string representation of the given constant to the given buffer. |
(package private) static void |
appendConstant(StringBuffer buf,
Object cst)
Appends a string representation of the given constant to the given buffer. |
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
Prints the ASM code that generates the given annotation. |
void |
visitAttribute(Attribute attr)
Prints the ASM code that generates the given attribute. |
void |
visitEnd()
Prints the ASM code to end the visit. |
| Methods inherited from class org.compass.core.util.asm.util.AbstractVisitor |
|---|
appendString, getDefaultAttributes, getText, print, printList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String name
Map labelNames
| Constructor Detail |
|---|
protected ASMifierAbstractVisitor(String name)
ASMifierAbstractVisitor.
name - the name of the variable for this visitor in the produced
code.| Method Detail |
|---|
public AnnotationVisitor visitAnnotation(String desc,
boolean visible)
desc - the class descriptor of the annotation class.visible - true if the annotation is visible at runtime.
public void visitAttribute(Attribute attr)
attr - an attribute.public void visitEnd()
void appendConstant(Object cst)
cst - an Integer, Float, Long,
Double or String object. May be null.
static void appendConstant(StringBuffer buf,
Object cst)
buf - a string buffer.cst - an Integer, Float, Long,
Double or String object. May be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||