public class PojoClassImpl extends Object implements PojoClass
| Constructor and Description |
|---|
PojoClassImpl(Class<?> clazz,
List<PojoField> pojoFields,
List<PojoMethod> pojoMethods) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(Object from,
Object to)
Copy all contents from one Instance represented by this PojoClass to another.
|
boolean |
equals(Object other) |
boolean |
extendz(Class<?> type)
Checks to see if class extends/implements a certain type.
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Get specified instance of an annotation defined on element.
|
List<? extends Annotation> |
getAnnotations()
Get all annotations defined on element.
|
Class<?> |
getClazz()
This method returns the underlying class represented by this instance.
|
List<PojoClass> |
getInterfaces()
Returns a list of all interfaces implemented by the class represented by this PojoClass.
|
String |
getName()
Get the name of the element.
|
PojoPackage |
getPackage()
Get Enclosing Package
|
List<PojoMethod> |
getPojoConstructors()
Get all Constructors defined in the class.
|
List<PojoField> |
getPojoFields()
Get all PojoFields defined in the class.
|
List<PojoField> |
getPojoFieldsAnnotatedWith(Class<? extends Annotation> annotation)
Get all PojoFields annotated with given annotation.
|
List<PojoMethod> |
getPojoMethods()
Get all PojoMethods defined in the class;
|
List<PojoMethod> |
getPojoMethodsAnnotatedWith(Class<? extends Annotation> annotation)
Get all PojoMethods annotated with given annotation
|
String |
getSourcePath()
This method returns the location from which this class was loaded.
|
PojoClass |
getSuperClass()
Return the super class of the class represented by this PojoClass class.
|
int |
hashCode() |
boolean |
isAbstract()
Check if PojoClass wraps an abstract.
|
boolean |
isArray()
Check if PojoClass wraps an array.
|
boolean |
isConcrete()
Check if PojoClass wraps a concrete (i.e.
|
boolean |
isEnum()
Check if PojoClass wraps an enum.
|
boolean |
isFinal()
Check if PojoClass wraps a final class.
|
boolean |
isInterface()
Check if PojoClass wraps an interface.
|
boolean |
isNestedClass()
Checks to see if this class is a nested subclass.
|
boolean |
isPackagePrivate()
Package visibility only, often refered to default visibility when no visibility keywords are assigned.
|
boolean |
isPrivate()
Locally visible within enclosing element.
|
boolean |
isProtected()
Visibile to extending elements.
|
boolean |
isPublic()
Visible to all.
|
boolean |
isStatic()
Check if PojoClass wraps a static class.
|
boolean |
isSynthetic() |
String |
toString() |
String |
toString(Object instance)
This method converts a pojoClass instance's contents to a string.
|
public PojoClassImpl(Class<?> clazz, List<PojoField> pojoFields, List<PojoMethod> pojoMethods)
public boolean isInterface()
PojoClassisInterface in interface PojoClasspublic boolean isAbstract()
PojoClassisAbstract in interface PojoClasspublic boolean isConcrete()
PojoClassisConcrete in interface PojoClasspublic boolean isEnum()
PojoClasspublic boolean isArray()
PojoClasspublic boolean isFinal()
PojoClasspublic boolean isSynthetic()
isSynthetic in interface PojoClasspublic List<PojoField> getPojoFields()
PojoClassgetPojoFields in interface PojoClasspublic List<PojoField> getPojoFieldsAnnotatedWith(Class<? extends Annotation> annotation)
PojoClassgetPojoFieldsAnnotatedWith in interface PojoClassannotation - the annotation to use for lookup.public List<PojoMethod> getPojoMethods()
PojoClassgetPojoMethods in interface PojoClasspublic List<PojoMethod> getPojoMethodsAnnotatedWith(Class<? extends Annotation> annotation)
PojoClassgetPojoMethodsAnnotatedWith in interface PojoClassannotation - the annotation to use for lookup.public List<PojoMethod> getPojoConstructors()
PojoClassgetPojoConstructors in interface PojoClasspublic String getName()
PojoElementgetName in interface PojoElementpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotatablegetAnnotation in interface AnnotatableT - Class Type of annotation.annotationClass - The annotation class.public List<? extends Annotation> getAnnotations()
AnnotatablegetAnnotations in interface Annotatablepublic boolean extendz(Class<?> type)
PojoClasspublic boolean isNestedClass()
PojoClassisNestedClass in interface PojoClasspublic boolean isStatic()
PojoClasspublic void copy(Object from, Object to)
PojoClasspublic Class<?> getClazz()
PojoClasspublic String toString(Object instance)
PojoClasspublic PojoClass getSuperClass()
PojoClassgetSuperClass in interface PojoClasspublic List<PojoClass> getInterfaces()
PojoClassgetInterfaces in interface PojoClasspublic PojoPackage getPackage()
PojoClassgetPackage in interface PojoClasspublic String getSourcePath()
PojoClassgetSourcePath in interface PojoClasspublic boolean isPrivate()
AccessibleisPrivate in interface Accessiblepublic boolean isPackagePrivate()
AccessibleisPackagePrivate in interface Accessiblepublic boolean isProtected()
AccessibleisProtected in interface Accessiblepublic boolean isPublic()
AccessibleisPublic in interface AccessibleCopyright © 2010-2016. All Rights Reserved.