|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PojoClass
This Interface defines the contract published by PojoClass implementations. The idea is to give an easy and flexible way to work with application POJO classes.
Method Summary | |
---|---|
void |
copy(java.lang.Object from,
java.lang.Object to)
Copy all contents from one Instance represented by this PojoClass to another. |
boolean |
extendz(java.lang.Class<?> type)
Checks to see if class extends/implements a certain type. |
java.lang.Class<?> |
getClazz()
This method returns the underlying class represented by this instance. |
java.util.List<PojoClass> |
getInterfaces()
Returns a list of all interfaces implemented by the class represented by this PojoClass. |
java.util.List<PojoMethod> |
getPojoConstructors()
Get all Constructors defined in the class. |
java.util.List<PojoField> |
getPojoFields()
Get all PojoFields defined in the class. |
java.util.List<PojoField> |
getPojoFieldsAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Get all PojoFields annotated with given annotation. |
java.util.List<PojoMethod> |
getPojoMethods()
Get all PojoMethods defined in the class; |
java.util.List<PojoMethod> |
getPojoMethodsAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Get all PojoMethods annotated with given annotation |
java.lang.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. |
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 |
isStatic()
Check if PojoClass wraps a static class. |
boolean |
isSynthetic()
|
java.lang.String |
toString(java.lang.Object instance)
This method converts a pojoClass instance's contents to a string. |
Methods inherited from interface com.openpojo.reflection.PojoElement |
---|
getName |
Methods inherited from interface com.openpojo.reflection.Annotatable |
---|
getAnnotation, getAnnotations |
Method Detail |
---|
boolean isInterface()
boolean isAbstract()
boolean isConcrete()
boolean isEnum()
boolean isArray()
boolean isFinal()
boolean isSynthetic()
java.util.List<PojoField> getPojoFields()
java.util.List<PojoField> getPojoFieldsAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
java.util.List<PojoMethod> getPojoMethods()
java.util.List<PojoMethod> getPojoMethodsAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
java.util.List<PojoMethod> getPojoConstructors()
boolean extendz(java.lang.Class<?> type)
type
- The type in question.
PojoClass getSuperClass()
java.util.List<PojoClass> getInterfaces()
java.lang.Class<?> getClazz()
boolean isNestedClass()
boolean isStatic()
void copy(java.lang.Object from, java.lang.Object to)
from
- The Instance to copy from.to
- The Instance to copy to.java.lang.String toString(java.lang.Object instance)
instance
- The instance to print the contents out of.
java.lang.String getSourcePath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |