com.sun.tools.classfile
Class Signature

java.lang.Object
  extended by com.sun.tools.classfile.Descriptor
      extended by com.sun.tools.classfile.Signature

public class Signature
extends Descriptor

See JVMS3 4.4.4.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.tools.classfile.Descriptor
Descriptor.InvalidDescriptor
 
Field Summary
private  java.lang.String sig
           
private  int sigp
           
private  Type type
           
 
Fields inherited from class com.sun.tools.classfile.Descriptor
index
 
Constructor Summary
Signature(int index)
           
 
Method Summary
private  java.lang.String debugInfo()
           
 java.lang.String getFieldType(ConstantPool constant_pool)
           
 int getParameterCount(ConstantPool constant_pool)
           
 java.lang.String getParameterTypes(ConstantPool constant_pool)
           
 java.lang.String getReturnType(ConstantPool constant_pool)
           
 Type getType(ConstantPool constant_pool)
           
private  Type parse(java.lang.String sig)
           
private  Type parseClassTypeSignature()
           
private  Type parseClassTypeSignatureRest()
           
private  Type parseTypeArgType()
           
private  java.util.List<Type> parseTypeArgTypes()
           
private  Type parseTypeSignature()
           
private  java.util.List<Type> parseTypeSignatures(char term)
           
private  Type parseTypeVariableSignature()
           
 
Methods inherited from class com.sun.tools.classfile.Descriptor
getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sig

private java.lang.String sig

sigp

private int sigp

type

private Type type
Constructor Detail

Signature

public Signature(int index)
Method Detail

getType

public Type getType(ConstantPool constant_pool)
             throws ConstantPoolException
Throws:
ConstantPoolException

getParameterCount

public int getParameterCount(ConstantPool constant_pool)
                      throws ConstantPoolException
Overrides:
getParameterCount in class Descriptor
Throws:
ConstantPoolException

getParameterTypes

public java.lang.String getParameterTypes(ConstantPool constant_pool)
                                   throws ConstantPoolException
Overrides:
getParameterTypes in class Descriptor
Throws:
ConstantPoolException

getReturnType

public java.lang.String getReturnType(ConstantPool constant_pool)
                               throws ConstantPoolException
Overrides:
getReturnType in class Descriptor
Throws:
ConstantPoolException

getFieldType

public java.lang.String getFieldType(ConstantPool constant_pool)
                              throws ConstantPoolException
Overrides:
getFieldType in class Descriptor
Throws:
ConstantPoolException

parse

private Type parse(java.lang.String sig)

parseTypeSignature

private Type parseTypeSignature()

parseTypeSignatures

private java.util.List<Type> parseTypeSignatures(char term)

parseClassTypeSignature

private Type parseClassTypeSignature()

parseClassTypeSignatureRest

private Type parseClassTypeSignatureRest()

parseTypeArgTypes

private java.util.List<Type> parseTypeArgTypes()

parseTypeArgType

private Type parseTypeArgType()

parseTypeVariableSignature

private Type parseTypeVariableSignature()

debugInfo

private java.lang.String debugInfo()