jodd.proxetta.asm
Class TraceSignatureVisitor

java.lang.Object
  extended by jodd.proxetta.asm.TraceSignatureVisitor
All Implemented Interfaces:
org.objectweb.asm.signature.SignatureVisitor
Direct Known Subclasses:
MethodSignatureVisitor

public class TraceSignatureVisitor
extends java.lang.Object
implements org.objectweb.asm.signature.SignatureVisitor

A SignatureVisitor that prints a disassembled view of the signature it visits.


Field Summary
protected  int argumentStack
          Stack used to keep track of class types that have arguments.
protected  int arrayStack
          Stack used to keep track of array class types.
protected  java.lang.StringBuffer declaration
           
protected  java.lang.StringBuffer exceptions
           
protected  boolean isInterface
           
protected  java.lang.StringBuffer returnType
           
protected  boolean seenFormalParameter
           
protected  boolean seenInterface
           
protected  boolean seenInterfaceBound
           
protected  boolean seenParameter
           
protected  java.lang.String separator
           
 
Fields inherited from interface org.objectweb.asm.signature.SignatureVisitor
EXTENDS, INSTANCEOF, SUPER
 
Constructor Summary
  TraceSignatureVisitor(int access)
           
protected TraceSignatureVisitor(java.lang.StringBuffer buf)
           
 
Method Summary
 java.lang.String getDeclaration()
           
 java.lang.String getExceptions()
           
 java.lang.String getReturnType()
           
 org.objectweb.asm.signature.SignatureVisitor visitArrayType()
           
 void visitBaseType(char descriptor)
           
 org.objectweb.asm.signature.SignatureVisitor visitClassBound()
           
 void visitClassType(java.lang.String name)
           
 void visitEnd()
           
 org.objectweb.asm.signature.SignatureVisitor visitExceptionType()
           
 void visitFormalTypeParameter(java.lang.String name)
           
 void visitInnerClassType(java.lang.String name)
           
 org.objectweb.asm.signature.SignatureVisitor visitInterface()
           
 org.objectweb.asm.signature.SignatureVisitor visitInterfaceBound()
           
 org.objectweb.asm.signature.SignatureVisitor visitParameterType()
           
 org.objectweb.asm.signature.SignatureVisitor visitReturnType()
           
 org.objectweb.asm.signature.SignatureVisitor visitSuperclass()
           
 void visitTypeArgument()
           
 org.objectweb.asm.signature.SignatureVisitor visitTypeArgument(char tag)
           
 void visitTypeVariable(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

declaration

protected final java.lang.StringBuffer declaration

isInterface

protected boolean isInterface

seenFormalParameter

protected boolean seenFormalParameter

seenInterfaceBound

protected boolean seenInterfaceBound

seenParameter

protected boolean seenParameter

seenInterface

protected boolean seenInterface

returnType

protected java.lang.StringBuffer returnType

exceptions

protected java.lang.StringBuffer exceptions

argumentStack

protected int argumentStack
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 lowest order bit. Pushing false = *2, pushing true = *2+1, popping = /2.


arrayStack

protected int arrayStack
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.


separator

protected java.lang.String separator
Constructor Detail

TraceSignatureVisitor

public TraceSignatureVisitor(int access)

TraceSignatureVisitor

protected TraceSignatureVisitor(java.lang.StringBuffer buf)
Method Detail

visitFormalTypeParameter

public void visitFormalTypeParameter(java.lang.String name)
Specified by:
visitFormalTypeParameter in interface org.objectweb.asm.signature.SignatureVisitor

visitClassBound

public org.objectweb.asm.signature.SignatureVisitor visitClassBound()
Specified by:
visitClassBound in interface org.objectweb.asm.signature.SignatureVisitor

visitInterfaceBound

public org.objectweb.asm.signature.SignatureVisitor visitInterfaceBound()
Specified by:
visitInterfaceBound in interface org.objectweb.asm.signature.SignatureVisitor

visitSuperclass

public org.objectweb.asm.signature.SignatureVisitor visitSuperclass()
Specified by:
visitSuperclass in interface org.objectweb.asm.signature.SignatureVisitor

visitInterface

public org.objectweb.asm.signature.SignatureVisitor visitInterface()
Specified by:
visitInterface in interface org.objectweb.asm.signature.SignatureVisitor

visitParameterType

public org.objectweb.asm.signature.SignatureVisitor visitParameterType()
Specified by:
visitParameterType in interface org.objectweb.asm.signature.SignatureVisitor

visitReturnType

public org.objectweb.asm.signature.SignatureVisitor visitReturnType()
Specified by:
visitReturnType in interface org.objectweb.asm.signature.SignatureVisitor

visitExceptionType

public org.objectweb.asm.signature.SignatureVisitor visitExceptionType()
Specified by:
visitExceptionType in interface org.objectweb.asm.signature.SignatureVisitor

visitBaseType

public void visitBaseType(char descriptor)
Specified by:
visitBaseType in interface org.objectweb.asm.signature.SignatureVisitor

visitTypeVariable

public void visitTypeVariable(java.lang.String name)
Specified by:
visitTypeVariable in interface org.objectweb.asm.signature.SignatureVisitor

visitArrayType

public org.objectweb.asm.signature.SignatureVisitor visitArrayType()
Specified by:
visitArrayType in interface org.objectweb.asm.signature.SignatureVisitor

visitClassType

public void visitClassType(java.lang.String name)
Specified by:
visitClassType in interface org.objectweb.asm.signature.SignatureVisitor

visitInnerClassType

public void visitInnerClassType(java.lang.String name)
Specified by:
visitInnerClassType in interface org.objectweb.asm.signature.SignatureVisitor

visitTypeArgument

public void visitTypeArgument()
Specified by:
visitTypeArgument in interface org.objectweb.asm.signature.SignatureVisitor

visitTypeArgument

public org.objectweb.asm.signature.SignatureVisitor visitTypeArgument(char tag)
Specified by:
visitTypeArgument in interface org.objectweb.asm.signature.SignatureVisitor

visitEnd

public void visitEnd()
Specified by:
visitEnd in interface org.objectweb.asm.signature.SignatureVisitor

getDeclaration

public java.lang.String getDeclaration()

getReturnType

public java.lang.String getReturnType()

getExceptions

public java.lang.String getExceptions()


Copyright ©2008 Jodd Team