net.janino
Class Descriptor

java.lang.Object
  |
  +--net.janino.Descriptor

class Descriptor
extends java.lang.Object

Helper class that defines useful methods for handling "field descriptors" (JVMS 4.3.2) and "method descriptors" (JVMS 4.3.3).


Field Summary
static java.lang.String BOOLEAN
           
static java.lang.String BYTE
           
static java.lang.String CHAR
           
static java.lang.String CLASS
           
(package private) static java.lang.String cvs_header
           
static java.lang.String DOUBLE
           
static java.lang.String ERROR
           
static java.lang.String FLOAT
           
static java.lang.String INT
           
static java.lang.String LONG
           
static java.lang.String OBJECT
           
static java.lang.String RUNTIME_EXCEPTION
           
static java.lang.String SHORT
           
static java.lang.String STRING
           
static java.lang.String THROWABLE
           
static java.lang.String VOID
           
 
Constructor Summary
(package private) Descriptor()
           
 
Method Summary
static java.lang.String fromClassName(java.lang.String className)
          Convert a class name as defined by "Class.getName()" into a descriptor.
static boolean hasSize1(java.lang.String d)
           
static boolean hasSize2(java.lang.String d)
           
static boolean isArrayReference(java.lang.String d)
           
static boolean isClassOrInterfaceReference(java.lang.String d)
           
static boolean isPrimitive(java.lang.String d)
           
static boolean isPrimitiveNumeric(java.lang.String d)
           
static boolean isReference(java.lang.String d)
           
static short size(java.lang.String d)
           
static java.lang.String toClassName(java.lang.String d)
          Convert a descriptor into a class name as defined by "Class.getName()".
static java.lang.String toString(java.lang.String d)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvs_header

static final java.lang.String cvs_header

VOID

public static final java.lang.String VOID

BYTE

public static final java.lang.String BYTE

CHAR

public static final java.lang.String CHAR

DOUBLE

public static final java.lang.String DOUBLE

FLOAT

public static final java.lang.String FLOAT

INT

public static final java.lang.String INT

LONG

public static final java.lang.String LONG

SHORT

public static final java.lang.String SHORT

BOOLEAN

public static final java.lang.String BOOLEAN

OBJECT

public static final java.lang.String OBJECT

STRING

public static final java.lang.String STRING

CLASS

public static final java.lang.String CLASS

THROWABLE

public static final java.lang.String THROWABLE

RUNTIME_EXCEPTION

public static final java.lang.String RUNTIME_EXCEPTION

ERROR

public static final java.lang.String ERROR
Constructor Detail

Descriptor

Descriptor()
Method Detail

isReference

public static boolean isReference(java.lang.String d)

isClassOrInterfaceReference

public static boolean isClassOrInterfaceReference(java.lang.String d)

isArrayReference

public static boolean isArrayReference(java.lang.String d)

size

public static short size(java.lang.String d)

hasSize1

public static boolean hasSize1(java.lang.String d)

hasSize2

public static boolean hasSize2(java.lang.String d)

toString

public static java.lang.String toString(java.lang.String d)

fromClassName

public static java.lang.String fromClassName(java.lang.String className)
Convert a class name as defined by "Class.getName()" into a descriptor.

toClassName

public static java.lang.String toClassName(java.lang.String d)
Convert a descriptor into a class name as defined by "Class.getName()".

isPrimitive

public static boolean isPrimitive(java.lang.String d)

isPrimitiveNumeric

public static boolean isPrimitiveNumeric(java.lang.String d)