|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scannotation.AnnotationDB
com.edugility.jpa.maven.plugin.AnnotationDB
public class AnnotationDB
An AnnotationDB
subclass that adds Cloneable
support and the ability to clear
state.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.scannotation.AnnotationDB |
---|
AnnotationDB.CrossReferenceException |
Field Summary | |
---|---|
private static long |
serialVersionUID
A serial version identifier uniquely identifying the version of this class. |
Fields inherited from class org.scannotation.AnnotationDB |
---|
annotationIndex, classIndex, ignoredPackages, implementsIndex, scanClassAnnotations, scanFieldAnnotations, scanMethodAnnotations, scanParameterAnnotations |
Constructor Summary | |
---|---|
AnnotationDB()
Creates a new AnnotationDB . |
|
AnnotationDB(AnnotationDB db)
Creates a new AnnotationDB , performing a deep copy of the
state of the supplied AnnotationDB . |
Method Summary | |
---|---|
void |
clear()
Clears all transient state from this AnnotationDB . |
AnnotationDB |
clone()
Returns a deep copy of this AnnotationDB . |
private void |
copyState(AnnotationDB db)
Deeply copies all known state from the supplied AnnotationDB to this one. |
boolean |
getScanClassAnnotations()
Returns whether this AnnotationDB should scan class annotations. |
boolean |
getScanFieldAnnotations()
Returns whether this AnnotationDB should scan field
annotations. |
boolean |
getScanMethodAnnotations()
Returns whether this AnnotationDB should scan method
annotations. |
boolean |
getScanParameterAnnotations()
Returns whether this AnnotationDB should scan parameter
annotations. |
void |
setScanClassAnnotations(boolean scan)
Sets whether this AnnotationDB should scan class annotations. |
void |
setScanFieldAnnotations(boolean scan)
|
void |
setScanMethodAnnotations(boolean scan)
Sets whether this AnnotationDB should scan method annotations. |
void |
setScanParameterAnnotations(boolean scan)
Sets whether this AnnotationDB should scan parameter annotations. |
Methods inherited from class org.scannotation.AnnotationDB |
---|
addIgnoredPackages, crossReferenceImplementedInterfaces, crossReferenceMetaAnnotations, getAnnotationIndex, getClassIndex, getIgnoredPackages, outputAnnotationIndex, populate, scanArchives, scanClass, scanClass, scanFields, scanMethods, setIgnoredPackages |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Serializable
class for details.
Constructor Detail |
---|
public AnnotationDB()
AnnotationDB
.
public AnnotationDB(AnnotationDB db)
AnnotationDB
, performing a deep copy of the
state of the supplied AnnotationDB
.
db
- the AnnotationDB
whose state should be copied;
may be null
Method Detail |
---|
private final void copyState(AnnotationDB db)
AnnotationDB
to this one.
Specifically, this method copies the annotationIndex
, classIndex
and AnnotationDB.implementsIndex
properties into
new data structures. The elements within these data structures
are not cloned.
This method also copies the boolean
properties (scanClassAnnotations
and the like).
db
- the AnnotationDB
whose state should be copied;
may be null
in which case no operation takes placepublic AnnotationDB clone()
AnnotationDB
.
This method never returns null
.
clone
in class Object
AnnotationDB
; never null
public void clear()
AnnotationDB
.
public boolean getScanFieldAnnotations()
AnnotationDB
should scan field
annotations.
true
if this AnnotationDB
should scan
field annotations; false
otherwisepublic void setScanFieldAnnotations(boolean scan)
setScanFieldAnnotations
in class AnnotationDB
public boolean getScanMethodAnnotations()
AnnotationDB
should scan method
annotations.
true
if this AnnotationDB
should scan
method annotations; false
otherwisepublic void setScanMethodAnnotations(boolean scan)
AnnotationDB
should scan method annotations.
setScanMethodAnnotations
in class AnnotationDB
scan
- whether to scan method
annotationspublic boolean getScanParameterAnnotations()
AnnotationDB
should scan parameter
annotations.
true
if this AnnotationDB
should scan
parameter annotations; false
otherwisepublic void setScanParameterAnnotations(boolean scan)
AnnotationDB
should scan parameter annotations.
setScanParameterAnnotations
in class AnnotationDB
scan
- whether to scan parameter annotationspublic boolean getScanClassAnnotations()
AnnotationDB
should scan class annotations.
true
if this AnnotationDB
should scan
class annotations; false
otherwisepublic void setScanClassAnnotations(boolean scan)
AnnotationDB
should scan class annotations.
setScanClassAnnotations
in class AnnotationDB
scan
- whether to scan class
annotations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |