public class MethodInfo extends Object
| Constructor and Description |
|---|
MethodInfo(String name,
String descriptor,
String typeParameterDescriptor,
ObjectAnnotations annotations)
Constructs a new
MethodInfo based on the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
AttributeConverter |
converter() |
ObjectAnnotations |
getAnnotations() |
String |
getCollectionClassname()
Get the collection class name for the method
|
String |
getDescriptor() |
String |
getName() |
String |
getTypeDescriptor()
Get the type descriptor
|
String |
getTypeParameterDescriptor() |
boolean |
hasAnnotation(String annotationName) |
boolean |
hasConverter() |
boolean |
isArray() |
boolean |
isArrayOf(Class<?> type) |
boolean |
isCollection() |
boolean |
isParameterisedTypeOf(Class<?> type) |
boolean |
isScalar() |
boolean |
isSimpleGetter() |
boolean |
isSimpleSetter() |
boolean |
isTypeOf(Class<?> type) |
String |
property() |
String |
relationship() |
String |
relationshipDirection(String defaultDirection) |
String |
relationshipTypeAnnotation() |
void |
setConverter(AttributeConverter<?,?> converter) |
public MethodInfo(String name, String descriptor, String typeParameterDescriptor, ObjectAnnotations annotations)
MethodInfo based on the given arguments.name - The name of the methoddescriptor - The method descriptor that expresses the parameters and return type using Java signature string
notationtypeParameterDescriptor - If the method parameter or return type is parameterised, this is the descriptor that
expresses its generic type, or null if that's not appropriateannotations - The ObjectAnnotations applied to the fieldpublic String getName()
public String property()
public String relationship()
public String relationshipTypeAnnotation()
public String getDescriptor()
public String getTypeParameterDescriptor()
public ObjectAnnotations getAnnotations()
public boolean isSimpleGetter()
public boolean isSimpleSetter()
public AttributeConverter converter()
public boolean hasConverter()
public void setConverter(AttributeConverter<?,?> converter)
public boolean isTypeOf(Class<?> type)
public boolean isParameterisedTypeOf(Class<?> type)
public boolean isArrayOf(Class<?> type)
public boolean isCollection()
public String getCollectionClassname()
public boolean isScalar()
public boolean hasAnnotation(String annotationName)
public boolean isArray()
public String getTypeDescriptor()
Copyright © 2016 Neo Technology, Inc.. All rights reserved.