com.sun.tools.classfile
Class Descriptor
java.lang.Object
com.sun.tools.classfile.Descriptor
- Direct Known Subclasses:
- Signature
public class Descriptor
- extends java.lang.Object
See JVMS3, section 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
public final int index
count
private int count
Descriptor
public Descriptor(ClassReader cr)
throws java.io.IOException
- Throws:
java.io.IOException
Descriptor
public Descriptor(int index)
getValue
public java.lang.String getValue(ConstantPool constant_pool)
throws ConstantPoolException
- Throws:
ConstantPoolException
getParameterCount
public int getParameterCount(ConstantPool constant_pool)
throws ConstantPoolException,
Descriptor.InvalidDescriptor
- Throws:
ConstantPoolException
Descriptor.InvalidDescriptor
getParameterTypes
public java.lang.String getParameterTypes(ConstantPool constant_pool)
throws ConstantPoolException,
Descriptor.InvalidDescriptor
- Throws:
ConstantPoolException
Descriptor.InvalidDescriptor
getReturnType
public java.lang.String getReturnType(ConstantPool constant_pool)
throws ConstantPoolException,
Descriptor.InvalidDescriptor
- Throws:
ConstantPoolException
Descriptor.InvalidDescriptor
getFieldType
public java.lang.String getFieldType(ConstantPool constant_pool)
throws ConstantPoolException,
Descriptor.InvalidDescriptor
- Throws:
ConstantPoolException
Descriptor.InvalidDescriptor
parse
private java.lang.String parse(java.lang.String desc,
int start,
int end)
throws Descriptor.InvalidDescriptor
- Throws:
Descriptor.InvalidDescriptor