org.codehaus.janino

Class 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.
StringreturnFD
The field descriptor of the method return value.
Constructor Summary
MethodDescriptor(String[] parameterFDs, String returnFD)
MethodDescriptor(String s)
Parse a method descriptor into parameter FDs and return FDs.
Method Summary
static StringprependParameter(String md, String parameterFD)
Patch an additional parameter into a given method descriptor.
StringtoString()
Returns the "method descriptor" (JVMS 4.3.3).

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

prependParameter

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

toString

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