saker.build Documentation TaskDoc JavaDoc Packages
public class SignatureWriter extends SignatureVisitor
A SignatureVisitor that generates signature literals, as defined in the Java Virtual Machine Specification (JVMS).
Constructors
public
Constructs a new SignatureWriter.
Methods
public String
Returns the signature that was built by this signature writer.
public SignatureVisitor
Visits a signature corresponding to an array type.
public void
visitBaseType(char descriptor)
Visits a signature corresponding to a primitive type.
public SignatureVisitor
Visits the class bound of the last visited formal type parameter.
public void
Starts the visit of a signature corresponding to a class or interface type.
public void
Ends the visit of a signature corresponding to a class or interface type.
public SignatureVisitor
Visits the type of a method exception.
public void
Visits a formal type parameter.
public void
Visits an inner class.
public SignatureVisitor
Visits the type of an interface implemented by the class.
public SignatureVisitor
Visits an interface bound of the last visited formal type parameter.
public SignatureVisitor
Visits the type of a method parameter.
public SignatureVisitor
Visits the return type of the method.
public SignatureVisitor
Visits the type of the super class.
public void
Visits an unbounded type argument of the last visited class or inner class type.
public SignatureVisitor
visitTypeArgument(char wildcard)
Visits a type argument of the last visited class or inner class type.
public void
Visits a signature corresponding to a type variable.
Constructs a new SignatureWriter.
public String toString()
Returns the signature that was built by this signature writer.
the signature that was built by this signature writer.
Overridden from: SignatureVisitor
Visits a signature corresponding to an array type.
a non null visitor to visit the signature of the array element type.
public void visitBaseType(char descriptor)
Overridden from: SignatureVisitor
Visits a signature corresponding to a primitive type.
descriptorthe descriptor of the primitive type, or 'V' for void .
Overridden from: SignatureVisitor
Visits the class bound of the last visited formal type parameter.
a non null visitor to visit the signature of the class bound.
public void visitClassType(String name)
Overridden from: SignatureVisitor
Starts the visit of a signature corresponding to a class or interface type.
namethe internal name of the class or interface.
public void visitEnd()
Overridden from: SignatureVisitor
Ends the visit of a signature corresponding to a class or interface type.
Overridden from: SignatureVisitor
Visits the type of a method exception.
a non null visitor to visit the signature of the exception type.
Overridden from: SignatureVisitor
Visits a formal type parameter.
namethe name of the formal parameter.
public void visitInnerClassType(String name)
Overridden from: SignatureVisitor
Visits an inner class.
namethe local name of the inner class in its enclosing class.
Overridden from: SignatureVisitor
Visits the type of an interface implemented by the class.
a non null visitor to visit the signature of the interface type.
Overridden from: SignatureVisitor
Visits an interface bound of the last visited formal type parameter.
a non null visitor to visit the signature of the interface bound.
Overridden from: SignatureVisitor
Visits the type of a method parameter.
a non null visitor to visit the signature of the parameter type.
Overridden from: SignatureVisitor
Visits the return type of the method.
a non null visitor to visit the signature of the return type.
Overridden from: SignatureVisitor
Visits the type of the super class.
a non null visitor to visit the signature of the super class type.
public void visitTypeArgument()
Overridden from: SignatureVisitor
Visits an unbounded type argument of the last visited class or inner class type.
public SignatureVisitor visitTypeArgument(char wildcard)
Overridden from: SignatureVisitor
Visits a type argument of the last visited class or inner class type.
wildcard'+', '-' or '='.
a non null visitor to visit the signature of the type argument.
public void visitTypeVariable(String name)
Overridden from: SignatureVisitor
Visits a signature corresponding to a type variable.
namethe name of the type variable.