com.sun.tools.classfile
Class Signature
java.lang.Object
com.sun.tools.classfile.Descriptor
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.
|
Field Summary |
private java.lang.String |
sig
|
private int |
sigp
|
private Type |
type
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sig
private java.lang.String sig
sigp
private int sigp
type
private Type type
Signature
public Signature(int index)
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()