Package org.codehaus.janino
Class MethodDescriptor
- java.lang.Object
-
- org.codehaus.janino.MethodDescriptor
-
public class MethodDescriptor extends Object
Representation of a "method descriptor" (JVMS 4.3.3).
-
-
Field Summary
Fields Modifier and Type Field Description String[]
parameterFds
The field descriptors of the method parameters.String
returnFd
The field descriptor of the method return value.
-
Constructor Summary
Constructors Constructor Description MethodDescriptor(String s)
Parses a method descriptor into parameter FDs and return FDs.MethodDescriptor(String returnFd, String... parameterFds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
MethodDescriptor
prependParameter(String parameterFd)
String
toString()
-
-
-
Method Detail
-
toString
public String toString()
-
prependParameter
public MethodDescriptor prependParameter(String parameterFd)
- Returns:
- A
MethodDescriptor
equal tothis
, but with another parameter inserted at position zero
-
-