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[]parameterFdsThe field descriptors of the method parameters.StringreturnFdThe 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 booleanequals(Object obj)inthashCode()MethodDescriptorprependParameter(String parameterFd)StringtoString()
-
-
-
Method Detail
-
toString
public String toString()
-
prependParameter
public MethodDescriptor prependParameter(String parameterFd)
- Returns:
- A
MethodDescriptorequal tothis, but with another parameter inserted at position zero
-
-