public class Signature extends Object
Constructor and Description |
---|
Signature(String descriptor)
Constructor for Signature.
|
Signature(String returnType,
String[] params)
Constructor for Signature.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Signature s) |
String |
getDescriptor()
Get an internal representation of method signature as String.
|
String[] |
getParameterDescriptors()
Gets the parameters descriptors
|
String[] |
getParameters()
Gets the parameters in simple form like 'int' or 'java.lang.Object'.
|
String |
getReturnType()
Gets the return type in simple form like 'int' or 'java.lang.Object'.
|
String |
toString() |
public Signature(String returnType, String[] params)
returnType
- return type of the method. Return type is is given in simple
form like 'int' or 'java.lang.Object'params
- Parameters of method, in simple form.public Signature(String descriptor)
descriptor
- Methods descriptor in internal formatpublic String getReturnType()
public String[] getParameters()
public String[] getParameterDescriptors()
public String getDescriptor()
public boolean equals(Signature s)
Copyright © 2017. All rights reserved.