站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ASMifierAbstractVisitor (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.asm.util
Class ASMifierAbstractVisitor

java.lang.Object
  extended by org.drools.asm.util.AbstractVisitor
      extended by org.drools.asm.util.ASMifierAbstractVisitor
Direct Known Subclasses:
ASMifierClassVisitor, ASMifierFieldVisitor, ASMifierMethodVisitor

public class ASMifierAbstractVisitor
extends AbstractVisitor

An abstract ASMifier visitor.

Author:
Eric Bruneton

Field Summary
protected  String name
          The name of the variable for this visitor in the produced code.
 
Fields inherited from class org.drools.asm.util.AbstractVisitor
buf, OPCODES, text, TYPES
 
Constructor Summary
protected ASMifierAbstractVisitor(String name)
          Constructs a new ASMifierAbstractVisitor.
 
Method Summary
 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.drools.asm.util.AbstractVisitor
appendString, getDefaultAttributes, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
The name of the variable for this visitor in the produced code.

Constructor Detail

ASMifierAbstractVisitor

protected ASMifierAbstractVisitor(String name)
Constructs a new ASMifierAbstractVisitor.

Parameters:
name - the name of the variable for this visitor in the produced code.
Method Detail

visitAnnotation

public AnnotationVisitor visitAnnotation(String desc,
                                         boolean visible)
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

public void visitAttribute(Attribute attr)
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.



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.