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 |
|---|---|
ObjectAnnotations |
getAnnotations() |
String |
getCollectionClassname()
Get the collection class name for the method
|
CompositeAttributeConverter |
getCompositeConverter() |
Method |
getMethod(String className)
Returns an instance of the Method represented by this MethodInfo
The expectation here is that only java bean getter and setter methods will be called
|
String |
getName() |
AttributeConverter |
getPropertyConverter() |
String |
getTypeDescriptor()
Get the type descriptor
|
boolean |
hasAnnotation(String annotationName) |
boolean |
hasCompositeConverter() |
boolean |
hasPropertyConverter() |
boolean |
isArray() |
boolean |
isArrayOf(Class<?> type) |
boolean |
isEquallyNamed(MethodInfo other) |
boolean |
isGetter() |
boolean |
isIterable() |
boolean |
isParameterisedTypeOf(Class<?> type) |
boolean |
isScalar() |
boolean |
isSetter() |
boolean |
isSimpleGetter() |
boolean |
isSimpleSetter() |
boolean |
isTypeOf(Class<?> type) |
String |
property() |
String |
relationship() |
String |
relationshipDirection(String defaultDirection) |
String |
relationshipTypeAnnotation() |
void |
setCompositeConverter(CompositeAttributeConverter<?> 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 ObjectAnnotations getAnnotations()
public boolean isEquallyNamed(MethodInfo other)
public boolean isGetter()
public boolean isSetter()
public boolean isSimpleGetter()
public boolean isSimpleSetter()
public boolean hasPropertyConverter()
public AttributeConverter getPropertyConverter()
public CompositeAttributeConverter getCompositeConverter()
public void setCompositeConverter(CompositeAttributeConverter<?> converter)
public boolean hasCompositeConverter()
public boolean isTypeOf(Class<?> type)
public boolean isParameterisedTypeOf(Class<?> type)
public boolean isArrayOf(Class<?> type)
public boolean isIterable()
public String getCollectionClassname()
public boolean isScalar()
public boolean hasAnnotation(String annotationName)
public boolean isArray()
public String getTypeDescriptor()
public Method getMethod(String className)
className - The class declaring this method. TODO: methodInfo should know this?Copyright © 2016 Neo Technology, Inc.. All rights reserved.