janino.net

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)
          Patches an additional parameter into a given method descriptor.
 String toString()
           
 
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()
Overrides:
toString in class Object
Returns:
The "method descriptor" (JVMS 4.3.3)

prependParameter

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


janino.net