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

public abstract Class ExposedTypeVisitor

extends RestrictiveAnnotationVisitor
Class Inheritance
Imports
org.objectweb.asm.AnnotationVisitor, .Type

Visits an ExposedType annotation and passes the values it gathers to handleResult.

Field Summary

Modifier and TypeField and Description
private Type
private String
private boolean
private Type
private final AnnotationVisitor
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
handleResult(String
the name the type should be exposed as from the annotation
name
,
Type
the specified base type
base
,
boolean
the value of the isBaseType flag
isBaseType
,
String
the type's docstring
doc
)

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.python.expose.generate.RestrictiveAnnotationVisitor.visit.

Visits a primitive value of the annotation.

public void
visitEnd()

Overrides org.python.expose.generate.RestrictiveAnnotationVisitor.visitEnd.

Visits the end of the annotation.

Inherited from org.python.expose.generate.RestrictiveAnnotationVisitor:
visitAnnotationvisitArrayvisitEnum

Field Detail

baseback to summary
private Type base
docback to summary
private String doc
isBaseTypeback to summary
private boolean isBaseType
onTypeback to summary
private Type onType
passthroughback to summary
private final AnnotationVisitor passthrough
typeNameback to summary
private String typeName

Constructor Detail

ExposedTypeVisitorback to summary
public ExposedTypeVisitor(Type onType, AnnotationVisitor passthrough)

Method Detail

handleResultback to summary
public abstract void handleResult(String name, Type base, boolean isBaseType, String doc)
Parameters
name:String

the name the type should be exposed as from the annotation

base:Type

the specified base type

isBaseType:boolean

the value of the isBaseType flag

doc:String

the type's docstring

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

Overrides org.python.expose.generate.RestrictiveAnnotationVisitor.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).

Annotations
@Override
visitEndback to summary
public void visitEnd()

Overrides org.python.expose.generate.RestrictiveAnnotationVisitor.visitEnd.

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

Visits the end of the annotation.

Annotations
@Override