public interface PojoClass extends PojoElement, Accessible
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 |
extendz(Class<?> type)
Checks to see if class extends/implements a certain type.
|
Class<?> |
getClazz()
This method returns the underlying class represented by this instance.
|
PojoClass |
getEnclosingClass()
If this is a nested class, get enclosing class.
|
List<PojoClass> |
getInterfaces()
Returns a list of all interfaces implemented by the class represented by this PojoClass.
|
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.
|
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() |
String |
toString(Object instance)
This method converts a pojoClass instance's contents to a string.
|
getName
getAnnotation, getAnnotations
isPackagePrivate, isPrivate, isProtected, isPublic
boolean isInterface()
boolean isAbstract()
boolean isConcrete()
boolean isEnum()
boolean isArray()
boolean isFinal()
boolean isSynthetic()
List<PojoField> getPojoFields()
List<PojoField> getPojoFieldsAnnotatedWith(Class<? extends Annotation> annotation)
annotation
- the annotation to use for lookup.List<PojoMethod> getPojoMethods()
List<PojoMethod> getPojoMethodsAnnotatedWith(Class<? extends Annotation> annotation)
annotation
- the annotation to use for lookup.List<PojoMethod> getPojoConstructors()
PojoClass getEnclosingClass()
boolean extendz(Class<?> type)
type
- The type in question.PojoClass getSuperClass()
List<PojoClass> getInterfaces()
PojoPackage getPackage()
Class<?> getClazz()
boolean isNestedClass()
boolean isStatic()
void copy(Object from, Object to)
from
- The Instance to copy from.to
- The Instance to copy to.String toString(Object instance)
instance
- The instance to print the contents out of.String getSourcePath()
Copyright © 2010–2021. All rights reserved.