org.eclipse.jetty.annotations
类 AnnotationParser.MyAnnotationVisitor

java.lang.Object
  继承者 org.eclipse.jetty.annotations.AnnotationParser.MyAnnotationVisitor
所有已实现的接口:
AnnotationVisitor
包容类:
AnnotationParser

public class AnnotationParser.MyAnnotationVisitor
extends Object
implements AnnotationVisitor

MyAnnotationVisitor ASM Visitor for Annotations


构造方法摘要
AnnotationParser.MyAnnotationVisitor(String annotationName, List<AnnotationParser.Value> values)
           
 
方法摘要
 List<AnnotationParser.Value> getAnnotationValues()
           
 void visit(String aname, Object avalue)
          Visit a single-valued (name,value) pair for this annotation
 AnnotationVisitor visitAnnotation(String name, String desc)
          Visit a (name,value) pair whose value is another Annotation
 AnnotationVisitor visitArray(String name)
          Visit an array valued (name, value) pair for this annotation
 void visitEnd()
          Visits the end of the annotation.
 void visitEnum(String name, String desc, String value)
          Visit a enum-valued (name,value) pair for this annotation
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

AnnotationParser.MyAnnotationVisitor

public AnnotationParser.MyAnnotationVisitor(String annotationName,
                                            List<AnnotationParser.Value> values)
方法详细信息

getAnnotationValues

public List<AnnotationParser.Value> getAnnotationValues()

visit

public void visit(String aname,
                  Object avalue)
Visit a single-valued (name,value) pair for this annotation

指定者:
接口 AnnotationVisitor 中的 visit
参数:
aname - the value name.
avalue - the actual value, whose type must be Byte, Boolean, Character, Short, Integer, Long, Float, Double, String or Type. This value can also be an array of byte, boolean, short, char, int, long, float or double values (this is equivalent to using visitArray and visiting each array element in turn, but is more convenient).
另请参见:
AnnotationVisitor.visit(java.lang.String, java.lang.Object)

visitAnnotation

public AnnotationVisitor visitAnnotation(String name,
                                         String desc)
Visit a (name,value) pair whose value is another Annotation

指定者:
接口 AnnotationVisitor 中的 visitAnnotation
参数:
name - the value name.
desc - the class descriptor of the nested annotation class.
返回:
a visitor to visit the actual nested annotation value, or null if this visitor is not interested in visiting this nested annotation. The nested annotation value must be fully visited before calling other methods on this annotation visitor.
另请参见:
AnnotationVisitor.visitAnnotation(java.lang.String, java.lang.String)

visitArray

public AnnotationVisitor visitArray(String name)
Visit an array valued (name, value) pair for this annotation

指定者:
接口 AnnotationVisitor 中的 visitArray
参数:
name - the value name.
返回:
a visitor to visit the actual array value elements, or null if this visitor is not interested in visiting these values. The 'name' parameters passed to the methods of this visitor are ignored. All the array values must be visited before calling other methods on this annotation visitor.
另请参见:
AnnotationVisitor.visitArray(java.lang.String)

visitEnum

public void visitEnum(String name,
                      String desc,
                      String value)
Visit a enum-valued (name,value) pair for this annotation

指定者:
接口 AnnotationVisitor 中的 visitEnum
参数:
name - the value name.
desc - the class descriptor of the enumeration class.
value - the actual enumeration value.
另请参见:
AnnotationVisitor.visitEnum(java.lang.String, java.lang.String, java.lang.String)

visitEnd

public void visitEnd()
从接口 AnnotationVisitor 复制的描述
Visits the end of the annotation.

指定者:
接口 AnnotationVisitor 中的 visitEnd


Copyright © 2013. All Rights Reserved.