net.sf.retrotranslator.runtime.impl
Class TypeDescriptor

java.lang.Object
  extended by net.sf.retrotranslator.runtime.impl.EmptyVisitor
      extended by net.sf.retrotranslator.runtime.impl.TypeDescriptor
All Implemented Interfaces:
AnnotationVisitor, ClassVisitor, FieldVisitor, MethodVisitor, SignatureVisitor

public class TypeDescriptor
extends EmptyVisitor

Author:
Taras Puchko

Field Summary
 TypeDescriptor arrayType
           
 char baseType
           
 java.util.LinkedList<ClassTypeElement> elements
           
 java.lang.String typeVariable
           
 
Fields inherited from interface net.sf.retrotranslator.runtime.asm.signature.SignatureVisitor
EXTENDS, INSTANCEOF, SUPER
 
Constructor Summary
TypeDescriptor()
           
 
Method Summary
 SignatureVisitor visitArrayType()
          Visits a signature corresponding to an array type.
 void visitBaseType(char descriptor)
          Visits a signature corresponding to a primitive type.
 void visitClassType(java.lang.String name)
          Starts the visit of a signature corresponding to a class or interface type.
 void visitInnerClassType(java.lang.String name)
          Visits an inner class.
 void visitTypeArgument()
          Visits an unbounded type argument of the last visited class or inner class type.
 SignatureVisitor visitTypeArgument(char wildcard)
          Visits a type argument of the last visited class or inner class type.
 void visitTypeVariable(java.lang.String name)
          Visits a signature corresponding to a type variable.
 
Methods inherited from class net.sf.retrotranslator.runtime.impl.EmptyVisitor
visit, visit, visitAnnotation, visitAnnotation, visitAnnotationDefault, visitArray, visitAttribute, visitClassBound, visitCode, visitEnd, visitEnum, visitExceptionType, visitField, visitFieldInsn, visitFormalTypeParameter, visitIincInsn, visitInnerClass, visitInsn, visitInterface, visitInterfaceBound, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethod, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, visitParameterAnnotation, visitParameterType, visitReturnType, visitSource, visitSuperclass, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseType

public char baseType

typeVariable

public java.lang.String typeVariable

arrayType

public TypeDescriptor arrayType

elements

public java.util.LinkedList<ClassTypeElement> elements
Constructor Detail

TypeDescriptor

public TypeDescriptor()
Method Detail

visitBaseType

public void visitBaseType(char descriptor)
Description copied from interface: SignatureVisitor
Visits a signature corresponding to a primitive type.

Specified by:
visitBaseType in interface SignatureVisitor
Overrides:
visitBaseType in class EmptyVisitor
Parameters:
descriptor - the descriptor of the primitive type, or 'V' for void.

visitTypeVariable

public void visitTypeVariable(java.lang.String name)
Description copied from interface: SignatureVisitor
Visits a signature corresponding to a type variable.

Specified by:
visitTypeVariable in interface SignatureVisitor
Overrides:
visitTypeVariable in class EmptyVisitor
Parameters:
name - the name of the type variable.

visitArrayType

public SignatureVisitor visitArrayType()
Description copied from interface: SignatureVisitor
Visits a signature corresponding to an array type.

Specified by:
visitArrayType in interface SignatureVisitor
Overrides:
visitArrayType in class EmptyVisitor
Returns:
a non null visitor to visit the signature of the array element type.

visitClassType

public void visitClassType(java.lang.String name)
Description copied from interface: SignatureVisitor
Starts the visit of a signature corresponding to a class or interface type.

Specified by:
visitClassType in interface SignatureVisitor
Overrides:
visitClassType in class EmptyVisitor
Parameters:
name - the internal name of the class or interface.

visitInnerClassType

public void visitInnerClassType(java.lang.String name)
Description copied from interface: SignatureVisitor
Visits an inner class.

Specified by:
visitInnerClassType in interface SignatureVisitor
Overrides:
visitInnerClassType in class EmptyVisitor
Parameters:
name - the local name of the inner class in its enclosing class.

visitTypeArgument

public void visitTypeArgument()
Description copied from interface: SignatureVisitor
Visits an unbounded type argument of the last visited class or inner class type.

Specified by:
visitTypeArgument in interface SignatureVisitor
Overrides:
visitTypeArgument in class EmptyVisitor

visitTypeArgument

public SignatureVisitor visitTypeArgument(char wildcard)
Description copied from interface: SignatureVisitor
Visits a type argument of the last visited class or inner class type.

Specified by:
visitTypeArgument in interface SignatureVisitor
Overrides:
visitTypeArgument in class EmptyVisitor
Parameters:
wildcard - '+', '-' or '='.
Returns:
a non null visitor to visit the signature of the type argument.