janino.net

org.codehaus.janino
Class MethodDescriptor

java.lang.Object
  extended by org.codehaus.janino.MethodDescriptor

public class MethodDescriptor
extends java.lang.Object

Representation of a "method descriptor" (JVMS 4.3.3).


Field Summary
 java.lang.String[] parameterFDs
          The field descriptors of the method parameters.
 java.lang.String returnFD
          The field descriptor of the method return value.
 
Constructor Summary
MethodDescriptor(java.lang.String s)
          Parse a method descriptor into parameter FDs and return FDs.
MethodDescriptor(java.lang.String[] parameterFDs, java.lang.String returnFD)
           
 
Method Summary
static java.lang.String prependParameter(java.lang.String md, java.lang.String parameterFD)
          Patch an additional parameter into a given method descriptor.
 java.lang.String toString()
          Returns the "method descriptor" (JVMS 4.3.3).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parameterFDs

public final java.lang.String[] parameterFDs
The field descriptors of the method parameters.


returnFD

public final java.lang.String returnFD
The field descriptor of the method return value.

Constructor Detail

MethodDescriptor

public MethodDescriptor(java.lang.String[] parameterFDs,
                        java.lang.String returnFD)

MethodDescriptor

public MethodDescriptor(java.lang.String s)
Parse a method descriptor into parameter FDs and return FDs.

Method Detail

toString

public java.lang.String toString()
Returns the "method descriptor" (JVMS 4.3.3).

Overrides:
toString in class java.lang.Object

prependParameter

public static java.lang.String prependParameter(java.lang.String md,
                                                java.lang.String parameterFD)
Patch an additional parameter into a given method descriptor.


janino.net