fr.umlv.corosol.component
Class Descriptor

java.lang.Object
  extended by fr.umlv.corosol.component.Descriptor

public class Descriptor
extends java.lang.Object

An object of the Descriptor class represents a descriptor.

Author:
Christophe Deleray

Field Summary
static java.lang.String BOOLEAN
          The boolean descriptor.
static java.lang.String BYTE
          The byte descriptor.
static java.lang.String CHAR
          The char descriptor.
static java.lang.String DOUBLE
          The double descriptor.
static java.lang.String FLOAT
          The float descriptor.
static java.lang.String INT
          The int descriptor.
static java.lang.String LONG
          The long descriptor.
static java.lang.String SHORT
          The short descriptor.
static java.lang.String VOID
          The void descriptor.
 
Constructor Summary
Descriptor()
           
 
Method Summary
static int getNbParameters(java.lang.String methodDescritpor)
          Returns the number of parameters (the long and the double parameter are considered like two parameters) of the method designed by the specified descriptor.
static java.util.Iterator parseParameter(java.lang.String descriptor)
          Parses the specified descriptor into String objects.
static java.lang.String parseReturnType(java.lang.String descriptor)
          Returns the String corresponding the return type of a method which descriptor is specified.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTE

public static final java.lang.String BYTE
The byte descriptor.

See Also:
Constant Field Values

BOOLEAN

public static final java.lang.String BOOLEAN
The boolean descriptor.

See Also:
Constant Field Values

SHORT

public static final java.lang.String SHORT
The short descriptor.

See Also:
Constant Field Values

CHAR

public static final java.lang.String CHAR
The char descriptor.

See Also:
Constant Field Values

VOID

public static final java.lang.String VOID
The void descriptor.

See Also:
Constant Field Values

INT

public static final java.lang.String INT
The int descriptor.

See Also:
Constant Field Values

FLOAT

public static final java.lang.String FLOAT
The float descriptor.

See Also:
Constant Field Values

LONG

public static final java.lang.String LONG
The long descriptor.

See Also:
Constant Field Values

DOUBLE

public static final java.lang.String DOUBLE
The double descriptor.

See Also:
Constant Field Values
Constructor Detail

Descriptor

public Descriptor()
Method Detail

parseReturnType

public static java.lang.String parseReturnType(java.lang.String descriptor)
Returns the String corresponding the return type of a method which descriptor is specified.

Parameters:
descriptor - a method descriptor
Returns:
the String corresponding to the return type of the method which descriptor is specified

parseParameter

public static java.util.Iterator parseParameter(java.lang.String descriptor)
Parses the specified descriptor into String objects.

Parameters:
descriptor - the descriptor to be parsed
Returns:
an Iterator of String objects

getNbParameters

public static int getNbParameters(java.lang.String methodDescritpor)
Returns the number of parameters (the long and the double parameter are considered like two parameters) of the method designed by the specified descriptor.

Parameters:
methodDescritpor - a method descritpor
Returns:
the number of parameters of the method designed by methodDescritpor