SignatureVisitor that builds the Java generic type declaration corresponding to the
signature it visits.
| Modifier and Type | Field and Description |
|---|---|
| private int | argumentStack
The stack used to keep track of class types that have arguments. |
| private int | arrayStack
The stack used to keep track of array class types. |
| private static final Map | |
| private static final String | |
| private final StringBuilder | declaration
The Java generic type declaration corresponding to the visited signature. |
| private StringBuilder | exceptions
The Java generic exception types declaration corresponding to the visited signature. |
| private static final String | |
| private boolean | formalTypeParameterVisited
Whether |
| private static final String | |
| private boolean | interfaceBoundVisited
Whether |
| private boolean | interfaceVisited
Whether |
| private final boolean | isInterface
Whether the visited signature is a class signature of a Java interface. |
| private boolean | parameterTypeVisited
Whether |
| private StringBuilder | returnType
The Java generic method return type declaration corresponding to the visited signature. |
| private String | separator
The separator to append before the next visited class or inner class type. |
| Access | Constructor and Description |
|---|---|
| public | TraceSignatureVisitor(final int
for class type signatures, the access flags of the class. accessFlags)Constructs a new |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public String | Returns: the Java generic type declaration corresponding to the visited signature.Returns the Java generic type declaration corresponding to the visited signature. |
| public String | Returns: the Java generic exception types declaration corresponding to the visited signature.Returns the Java generic exception types declaration corresponding to the visited signature. |
| public String | Returns: the Java generic method return type declaration corresponding to the visited signature.Returns the Java generic method return type declaration corresponding to the visited signature. |
| private void | |
| public SignatureVisitor | visitArrayType()
Overrides org. |
| public void | visitBaseType(final char
the descriptor of the primitive type, or 'V' for descriptor)void .Overrides org. |
| public SignatureVisitor | visitClassBound()
Overrides org. |
| public void | visitClassType(final String
the internal name of the class or interface (see name)org.objectweb.asm.Type#getInternalName()).Overrides org. |
| public void | visitEnd()
Overrides org. |
| public SignatureVisitor | visitExceptionType()
Overrides org. |
| public void | visitFormalTypeParameter(final String
the name of the formal parameter. name)Overrides org. |
| public void | visitInnerClassType(final String
the local name of the inner class in its enclosing class. name)Overrides org. |
| public SignatureVisitor | visitInterface()
Overrides org. |
| public SignatureVisitor | visitInterfaceBound()
Overrides org. |
| public SignatureVisitor | visitParameterType()
Overrides org. |
| public SignatureVisitor | visitReturnType()
Overrides org. |
| public SignatureVisitor | visitSuperclass()
Overrides org. |
| public void | visitTypeArgument()
Overrides org. |
| public SignatureVisitor | visitTypeArgument(final char
'+', '-' or '='. tag)Overrides org. |
| public void | visitTypeVariable(final String
the name of the type variable. name)Overrides org. |
| argumentStack | back to summary |
|---|---|
| private int argumentStack The stack used to keep track of class types that have arguments. Each element of this stack is a boolean encoded in one bit. The top of the stack is the least significant bit. Pushing false = *2, pushing true = *2+1, popping = /2. | |
| arrayStack | back to summary |
|---|---|
| private int arrayStack The stack used to keep track of array class types. Each element of this stack is a boolean encoded in one bit. The top of the stack is the lowest order bit. Pushing false = *2, pushing true = *2+1, popping = /2. | |
| BASE_TYPES | back to summary |
|---|---|
| private static final Map<Character, String> BASE_TYPES | |
| COMMA_SEPARATOR | back to summary |
|---|---|
| private static final String COMMA_SEPARATOR | |
| declaration | back to summary |
|---|---|
| private final StringBuilder declaration The Java generic type declaration corresponding to the visited signature. | |
| exceptions | back to summary |
|---|---|
| private StringBuilder exceptions The Java generic exception types declaration corresponding to the visited signature. | |
| EXTENDS_SEPARATOR | back to summary |
|---|---|
| private static final String EXTENDS_SEPARATOR | |
| formalTypeParameterVisited | back to summary |
|---|---|
| private boolean formalTypeParameterVisited Whether | |
| IMPLEMENTS_SEPARATOR | back to summary |
|---|---|
| private static final String IMPLEMENTS_SEPARATOR | |
| interfaceBoundVisited | back to summary |
|---|---|
| private boolean interfaceBoundVisited Whether | |
| interfaceVisited | back to summary |
|---|---|
| private boolean interfaceVisited Whether | |
| isInterface | back to summary |
|---|---|
| private final boolean isInterface Whether the visited signature is a class signature of a Java interface. | |
| parameterTypeVisited | back to summary |
|---|---|
| private boolean parameterTypeVisited Whether | |
| returnType | back to summary |
|---|---|
| private StringBuilder returnType The Java generic method return type declaration corresponding to the visited signature. | |
| separator | back to summary |
|---|---|
| private String separator The separator to append before the next visited class or inner class type. | |
| TraceSignatureVisitor | back to summary |
|---|---|
| public TraceSignatureVisitor(final int accessFlags) Constructs a new
| |
| TraceSignatureVisitor | back to summary |
|---|---|
| private TraceSignatureVisitor(final StringBuilder stringBuilder) | |
| endFormals | back to summary |
|---|---|
| private void endFormals() | |
| endType | back to summary |
|---|---|
| private void endType() | |
| getDeclaration | back to summary |
|---|---|
| public String getDeclaration() Returns the Java generic type declaration corresponding to the visited signature.
| |
| getExceptions | back to summary |
|---|---|
| public String getExceptions() Returns the Java generic exception types declaration corresponding to the visited signature.
| |
| getReturnType | back to summary |
|---|---|
| public String getReturnType() Returns the Java generic method return type declaration corresponding to the visited signature.
| |
| startType | back to summary |
|---|---|
| private void startType() | |
| visitArrayType | back to summary |
|---|---|
| public SignatureVisitor visitArrayType() Overrides org. Doc from org. Visits a signature corresponding to an array type.
| |
| visitBaseType | back to summary |
|---|---|
| public void visitBaseType(final char descriptor) Overrides org. Doc from org. Visits a signature corresponding to a primitive type.
| |
| visitClassBound | back to summary |
|---|---|
| public SignatureVisitor visitClassBound() Overrides org. Doc from org. Visits the class bound of the last visited formal type parameter.
| |
| visitClassType | back to summary |
|---|---|
| public void visitClassType(final String name) Overrides org. Doc from org. Starts the visit of a signature corresponding to a class or interface type.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Ends the visit of a signature corresponding to a class or interface type.
| |
| visitExceptionType | back to summary |
|---|---|
| public SignatureVisitor visitExceptionType() Overrides org. Doc from org. Visits the type of a method exception.
| |
| visitFormalTypeParameter | back to summary |
|---|---|
| public void visitFormalTypeParameter(final String name) Overrides org. Doc from org. Visits a formal type parameter. | |
| visitInnerClassType | back to summary |
|---|---|
| public void visitInnerClassType(final String name) Overrides org. Doc from org. Visits an inner class. | |
| visitInterface | back to summary |
|---|---|
| public SignatureVisitor visitInterface() Overrides org. Doc from org. Visits the type of an interface implemented by the class.
| |
| visitInterfaceBound | back to summary |
|---|---|
| public SignatureVisitor visitInterfaceBound() Overrides org. Doc from org. Visits an interface bound of the last visited formal type parameter.
| |
| visitParameterType | back to summary |
|---|---|
| public SignatureVisitor visitParameterType() Overrides org. Doc from org. Visits the type of a method parameter.
| |
| visitReturnType | back to summary |
|---|---|
| public SignatureVisitor visitReturnType() Overrides org. Doc from org. Visits the return type of the method.
| |
| visitSuperclass | back to summary |
|---|---|
| public SignatureVisitor visitSuperclass() Overrides org. Doc from org. Visits the type of the super class.
| |
| visitTypeArgument | back to summary |
|---|---|
| public void visitTypeArgument() Overrides org. Doc from org. Visits an unbounded type argument of the last visited class or inner class type.
| |
| visitTypeArgument | back to summary |
|---|---|
| public SignatureVisitor visitTypeArgument(final char tag) Overrides org. Doc from org. Visits a type argument of the last visited class or inner class type.
| |
| visitTypeVariable | back to summary |
|---|---|
| public void visitTypeVariable(final String name) Overrides org. Doc from org. Visits a signature corresponding to a type variable. | |