Web Site

org.codehaus.janino
Class MethodDescriptor

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

public class MethodDescriptor
extends Object

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


Field Summary
 String[] parameterFDs
          The field descriptors of the method parameters.
 String returnFD
          The field descriptor of the method return value.
 
Constructor Summary
MethodDescriptor(String s)
          Parse a method descriptor into parameter FDs and return FDs.
MethodDescriptor(String[] parameterFDs, String returnFD)
           
 
Method Summary
static String prependParameter(String md, String parameterFD)
          Patch an additional parameter into a given method descriptor.
 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 String[] parameterFDs
The field descriptors of the method parameters.


returnFD

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

Constructor Detail

MethodDescriptor

public MethodDescriptor(String[] parameterFDs,
                        String returnFD)

MethodDescriptor

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

Method Detail

toString

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

Overrides:
toString in class Object

prependParameter

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


Web Site