org.cojen.classfile
Class Descriptor

java.lang.Object
  extended by org.cojen.classfile.Descriptor
Direct Known Subclasses:
MethodDesc, TypeDesc

public abstract class Descriptor
extends Object

This class represents a descriptor. See section 4.3 of The Java Virtual Machine Specification.

Author:
Brian S O'Neill

Constructor Summary
Descriptor()
           
 
Method Summary
abstract  String getDescriptor()
          Returns a descriptor string, excluding generics.
static Descriptor parse(String desc)
          Returns a descriptor string, including any generics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Descriptor

public Descriptor()
Method Detail

getDescriptor

public abstract String getDescriptor()
Returns a descriptor string, excluding generics.


parse

public static Descriptor parse(String desc)
                        throws IllegalArgumentException
Returns a descriptor string, including any generics.

Throws:
IllegalArgumentException


Copyright © 2004-2011 Brian S O'Neill. All Rights Reserved.