public class FieldInfo extends Object
| Constructor and Description |
|---|
FieldInfo(String name,
String descriptor,
String typeParameterDescriptor,
ObjectAnnotations annotations)
Constructs a new
FieldInfo based on the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
AttributeConverter |
converter() |
ObjectAnnotations |
getAnnotations() |
String |
getCollectionClassname()
Get the collection class name for the field
|
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 |
isSimple() |
boolean |
isTypeOf(Class<?> type) |
String |
property() |
String |
relationship() |
String |
relationshipDirection(String defaultDirection) |
String |
relationshipTypeAnnotation() |
public FieldInfo(String name, String descriptor, String typeParameterDescriptor, ObjectAnnotations annotations)
FieldInfo based on the given arguments.name - The name of the fielddescriptor - The field descriptor that expresses the type of the field using Java signature string notationtypeParameterDescriptor - The descriptor that expresses the generic type parameter, which may be 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 isSimple()
public AttributeConverter converter()
public boolean hasConverter()
public boolean isTypeOf(Class<?> type)
public boolean isCollection()
public boolean isParameterisedTypeOf(Class<?> type)
public boolean isArrayOf(Class<?> type)
public String getCollectionClassname()
public boolean isScalar()
public boolean isArray()
public boolean hasAnnotation(String annotationName)
public String getTypeDescriptor()
Copyright © 2016 Neo Technology, Inc.. All rights reserved.