Package org.teavm.model
Class MethodDescriptor
- java.lang.Object
-
- org.teavm.model.MethodDescriptor
-
- All Implemented Interfaces:
Serializable
public class MethodDescriptor extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodDescriptor(String name, Class<?>... signature)MethodDescriptor(String name, ValueType... signature)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static MethodDescriptorget(MethodHolder method)StringgetName()ValueType[]getParameterTypes()ValueTypegetResultType()ValueType[]getSignature()inthashCode()intparameterCount()ValueTypeparameterType(int index)static MethodDescriptorparse(String text)static MethodDescriptorparseIfPossible(String text)static ValueType[]parseSignature(String text)static ValueType[]parseSignatureIfPossible(String text)StringsignatureToString()StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
-
getSignature
public ValueType[] getSignature()
-
getParameterTypes
public ValueType[] getParameterTypes()
-
getResultType
public ValueType getResultType()
-
parameterCount
public int parameterCount()
-
parameterType
public ValueType parameterType(int index)
-
signatureToString
public String signatureToString()
-
get
public static MethodDescriptor get(MethodHolder method)
-
parse
public static MethodDescriptor parse(String text)
-
parseIfPossible
public static MethodDescriptor parseIfPossible(String text)
-
-