Top Description Fields Constructors Methods
org.python.expose.generate

public Class RestrictiveAnnotationVisitor

extends AnnotationVisitor
Class Inheritance
Known Direct Subclasses
org.python.expose.generate.DescriptorVisitor, org.python.expose.generate.ExposedMethodFinder.StringArrayBuilder, org.python.expose.generate.ExposedMethodFinder.ExposedMethodVisitor, org.python.expose.generate.ExposedTypeVisitor
Imports
org.objectweb.asm.AnnotationVisitor, .Opcodes

An Annotation visitor that throws an IllegalArgumentException if it visits anything other than visitEnd. Should be subclasses by something interested in only certain events.

Field Summary

Inherited from org.objectweb.asm.AnnotationVisitor:
apiav

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
visit(String
the value name.
name
,
Object
the actual value, whose type must be Byte, Boolean, Character, Short, Integer , Long, Float, Double, String or Type of Type#OBJECT or Type#ARRAY sort. 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).
value
)

Overrides org.objectweb.asm.AnnotationVisitor.visit.

Visits a primitive value of the annotation.

public AnnotationVisitor
visitAnnotation(String
the value name.
name
,
String
the class descriptor of the nested annotation class.
desc
)

Overrides org.objectweb.asm.AnnotationVisitor.visitAnnotation.

Visits a nested annotation value of the annotation.

public AnnotationVisitor
visitArray(String
the value name.
name
)

Overrides org.objectweb.asm.AnnotationVisitor.visitArray.

Visits an array value of the annotation.

public void
visitEnd()

Overrides org.objectweb.asm.AnnotationVisitor.visitEnd.

Visits the end of the annotation.

public void
visitEnum(String
the value name.
name
,
String
the class descriptor of the enumeration class.
desc
,
String
the actual enumeration value.
value
)

Overrides org.objectweb.asm.AnnotationVisitor.visitEnum.

Visits an enumeration value of the annotation.

Inherited from org.objectweb.asm.AnnotationVisitor:
getDelegate

Constructor Detail

RestrictiveAnnotationVisitorback to summary
public RestrictiveAnnotationVisitor()

Method Detail

visitback to summary
public void visit(String name, Object value)

Overrides org.objectweb.asm.AnnotationVisitor.visit.

Doc from org.objectweb.asm.AnnotationVisitor.visit.

Visits a primitive value of the annotation.

Parameters
name:String

the value name.

value:Object

the actual value, whose type must be Byte, Boolean, Character, Short, Integer , Long, Float, Double, String or Type of Type#OBJECT or Type#ARRAY sort. 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).

visitAnnotationback to summary
public AnnotationVisitor visitAnnotation(String name, String desc)

Overrides org.objectweb.asm.AnnotationVisitor.visitAnnotation.

Doc from org.objectweb.asm.AnnotationVisitor.visitAnnotation.

Visits a nested annotation value of the annotation.

Parameters
name:String

the value name.

desc:String

the class descriptor of the nested annotation class.

Returns:AnnotationVisitor

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.

visitArrayback to summary
public AnnotationVisitor visitArray(String name)

Overrides org.objectweb.asm.AnnotationVisitor.visitArray.

Doc from org.objectweb.asm.AnnotationVisitor.visitArray.

Visits an array value of the annotation. Note that arrays of primitive values (such as byte, boolean, short, char, int, long, float or double) can be passed as value to visit. This is what ClassReader does for non empty arrays of primitive values.

Parameters
name:String

the value name.

Returns:AnnotationVisitor

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.

visitEndback to summary
public void visitEnd()

Overrides org.objectweb.asm.AnnotationVisitor.visitEnd.

Doc from org.objectweb.asm.AnnotationVisitor.visitEnd.

Visits the end of the annotation.

visitEnumback to summary
public void visitEnum(String name, String desc, String value)

Overrides org.objectweb.asm.AnnotationVisitor.visitEnum.

Doc from org.objectweb.asm.AnnotationVisitor.visitEnum.

Visits an enumeration value of the annotation.

Parameters
name:String

the value name.

desc:String

the class descriptor of the enumeration class.

value:String

the actual enumeration value.