public class ClassInfo<ClassType> extends Object implements AnnotatedNode
AnnotatedNode.BaseAnnotatedNode| Modifier and Type | Method and Description |
|---|---|
Collection<Annotation> |
getAnnotataions()
Get list of annotations linked to this node
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Annotation instance linked to this node
|
<T extends ClassIndex> |
getIndex(Class<T> indexType) |
String |
getName()
Node name
|
ClassInfo |
getParent() |
Map<String,PropertyInfo> |
getProperties() |
PropertyInfo |
getPropertyInfo(String propertyName) |
<T> PropertyInfo<T> |
getPropertyInfo(String propertyName,
Class<T> propertyType) |
PropertyInfo |
getPropertyInfoByPath(String[] path)
Select property metadata by simple path.
|
<T> PropertyInfo<T> |
getPropertyInfoByPath(String[] path,
Class<T> expectedType) |
ClassInfoScanner |
getScanner() |
Class<ClassType> |
getType() |
boolean |
hasAnnotation(Class<? extends Annotation> annotationClass)
Check what annotation present
|
protected ClassInfo<ClassType> |
introspect(ClassInfoScanner scanner) |
public PropertyInfo getPropertyInfo(String propertyName)
public <T> PropertyInfo<T> getPropertyInfo(String propertyName, Class<T> propertyType)
public ClassInfo getParent()
public String getName()
AnnotatedNodegetName in interface AnnotatedNodepublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotatedNodegetAnnotation in interface AnnotatedNodeT - annotation generic typeannotationClass - class of annotation to lookuppublic boolean hasAnnotation(Class<? extends Annotation> annotationClass)
AnnotatedNodehasAnnotation in interface AnnotatedNodeannotationClass - class of annotation to checkpublic Collection<Annotation> getAnnotataions()
AnnotatedNodegetAnnotataions in interface AnnotatedNodepublic <T extends ClassIndex> T getIndex(Class<T> indexType)
public Map<String,PropertyInfo> getProperties()
protected ClassInfo<ClassType> introspect(ClassInfoScanner scanner)
public PropertyInfo getPropertyInfoByPath(String[] path)
path - property pathpublic <T> PropertyInfo<T> getPropertyInfoByPath(String[] path, Class<T> expectedType)
public ClassInfoScanner getScanner()
Copyright © 2016. All rights reserved.