public final class TraceSignatureVisitor extends SignatureVisitor
SignatureVisitor
that prints a disassembled view of the signature
it visits.api, EXTENDS, INSTANCEOF, SUPER
Constructor and Description |
---|
TraceSignatureVisitor(int access) |
Modifier and Type | Method and Description |
---|---|
String |
getDeclaration() |
String |
getExceptions() |
String |
getReturnType() |
SignatureVisitor |
visitArrayType()
Visits a signature corresponding to an array type.
|
void |
visitBaseType(char descriptor)
Visits a signature corresponding to a primitive type.
|
SignatureVisitor |
visitClassBound()
Visits the class bound of the last visited formal type parameter.
|
void |
visitClassType(String name)
Starts the visit of a signature corresponding to a class or interface
type.
|
void |
visitEnd()
Ends the visit of a signature corresponding to a class or interface type.
|
SignatureVisitor |
visitExceptionType()
Visits the type of a method exception.
|
void |
visitFormalTypeParameter(String name)
Visits a formal type parameter.
|
void |
visitInnerClassType(String name)
Visits an inner class.
|
SignatureVisitor |
visitInterface()
Visits the type of an interface implemented by the class.
|
SignatureVisitor |
visitInterfaceBound()
Visits an interface bound of the last visited formal type parameter.
|
SignatureVisitor |
visitParameterType()
Visits the type of a method parameter.
|
SignatureVisitor |
visitReturnType()
Visits the return type of the method.
|
SignatureVisitor |
visitSuperclass()
Visits the type of the super class.
|
void |
visitTypeArgument()
Visits an unbounded type argument of the last visited class or inner
class type.
|
SignatureVisitor |
visitTypeArgument(char tag)
Visits a type argument of the last visited class or inner class type.
|
void |
visitTypeVariable(String name)
Visits a signature corresponding to a type variable.
|
public void visitFormalTypeParameter(String name)
SignatureVisitor
visitFormalTypeParameter
in class SignatureVisitor
name
- the name of the formal parameter.public SignatureVisitor visitClassBound()
SignatureVisitor
visitClassBound
in class SignatureVisitor
public SignatureVisitor visitInterfaceBound()
SignatureVisitor
visitInterfaceBound
in class SignatureVisitor
public SignatureVisitor visitSuperclass()
SignatureVisitor
visitSuperclass
in class SignatureVisitor
public SignatureVisitor visitInterface()
SignatureVisitor
visitInterface
in class SignatureVisitor
public SignatureVisitor visitParameterType()
SignatureVisitor
visitParameterType
in class SignatureVisitor
public SignatureVisitor visitReturnType()
SignatureVisitor
visitReturnType
in class SignatureVisitor
public SignatureVisitor visitExceptionType()
SignatureVisitor
visitExceptionType
in class SignatureVisitor
public void visitBaseType(char descriptor)
SignatureVisitor
visitBaseType
in class SignatureVisitor
descriptor
- the descriptor of the primitive type, or 'V' for void
.public void visitTypeVariable(String name)
SignatureVisitor
visitTypeVariable
in class SignatureVisitor
name
- the name of the type variable.public SignatureVisitor visitArrayType()
SignatureVisitor
visitArrayType
in class SignatureVisitor
public void visitClassType(String name)
SignatureVisitor
visitClassType
in class SignatureVisitor
name
- the internal name of the class or interface.public void visitInnerClassType(String name)
SignatureVisitor
visitInnerClassType
in class SignatureVisitor
name
- the local name of the inner class in its enclosing class.public void visitTypeArgument()
SignatureVisitor
visitTypeArgument
in class SignatureVisitor
public SignatureVisitor visitTypeArgument(char tag)
SignatureVisitor
visitTypeArgument
in class SignatureVisitor
tag
- '+', '-' or '='.public void visitEnd()
SignatureVisitor
visitEnd
in class SignatureVisitor
public String getDeclaration()
public String getReturnType()
public String getExceptions()
Copyright © 2018. All rights reserved.