public class ClassNode extends DestroyableBase
Destroyable.Util
logger
Modifier and Type | Method and Description |
---|---|
ClassNode |
addInterface(java.lang.String name)
Specify the class represented by this
ClassNode implements an interface specified by the given name |
java.util.Set<ClassNode> |
annotatedClasses()
Returns a set of
ClassNode that has been annotated by the annotation class represented by this ClassNode |
ClassNode |
annotatedWith(java.lang.String name)
Specify the class represented by this
ClassNode is annotated by an annotation class specified by the name |
java.util.Set<ClassNode> |
annotations()
Returns a set of class node that annotated the class represented by this
ClassNode |
java.lang.String |
canonicalName() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
hasInterface(java.lang.String name) |
boolean |
isAbstract() |
boolean |
isPublic() |
int |
modifiers() |
ClassNode |
modifiers(int modifiers) |
java.lang.String |
name() |
ClassNode |
parent() |
ClassNode |
parent(java.lang.String name)
Specify the class represented by this
ClassNode extends a class with the name specified |
boolean |
publicNotAbstract() |
protected void |
releaseResources() |
java.lang.String |
toString() |
ClassNode |
visitAnnotatedClasses(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all class node that has been annotated by the class represented by this
ClassNode |
ClassNode |
visitAnnotatedClasses(org.osgl.Osgl.Function<ClassNode,?> visitor,
boolean publicOnly,
boolean noAbstract)
Accept a visitor that visit all class node that has been annotated by the class represented by this
ClassNode |
ClassNode |
visitPublicAnnotatedClasses(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public class node that has been annotated by the class represented by this
ClassNode |
ClassNode |
visitPublicNotAbstractAnnotatedClasses(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public and non-abstract class node that has been annotated by the class represented by this
ClassNode |
ClassNode |
visitPublicNotAbstractSubTreeNodes(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public descendants of the class represented by this
ClassNode NOT including this ClassNode itself |
ClassNode |
visitPublicNotAbstractTreeNodes(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public descendants of the class represented by this
ClassNode including this ClassNode itself |
ClassNode |
visitPublicSubTreeNodes(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public and non-abstract descendants of the class represented by this
ClassNode NOT including this ClassNode itself |
ClassNode |
visitPublicTreeNodes(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public and non-abstract descendants of the class represented by this
ClassNode including this ClassNode itself |
ClassNode |
visitSubTree(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all descendants of the class represented by this
ClassNode NOT including this ClassNode itself |
ClassNode |
visitSubTree(org.osgl.Osgl.Function<ClassNode,?> visitor,
boolean publicOnly,
boolean noAbstract)
Accept a visitor that visit all descendants of the class represetned by this
ClassNode NOT including this ClassNode itself. |
ClassNode |
visitTree(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all descendants of the class represented by this
ClassNode including this ClassNode itself |
ClassNode |
visitTree(org.osgl.Osgl.Function<ClassNode,?> visitor,
boolean publicOnly,
boolean noAbstract)
Accept a visitor that visit all descendants of the class represetned by this
ClassNode including this ClassNode itself. |
addSubResource, destroy, isDestroyed, reload, scope
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
public java.lang.String name()
public java.lang.String canonicalName()
public ClassNode modifiers(int modifiers)
public int modifiers()
public boolean isPublic()
public boolean isAbstract()
public boolean publicNotAbstract()
public ClassNode parent()
public ClassNode parent(java.lang.String name)
Specify the class represented by this ClassNode
extends a class with the name specified
name
- the name of the parent classClassNode
instancepublic ClassNode addInterface(java.lang.String name)
Specify the class represented by this ClassNode
implements an interface specified by the given name
name
- the name of the interface classClassNode
instancepublic boolean hasInterface(java.lang.String name)
public ClassNode annotatedWith(java.lang.String name)
Specify the class represented by this ClassNode
is annotated by an annotation class specified by the name
name
- the name of the annotation classClassNode
instancepublic ClassNode visitTree(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all descendants of the class represented by this ClassNode
including this ClassNode
itself
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic ClassNode visitTree(org.osgl.Osgl.Function<ClassNode,?> visitor, boolean publicOnly, boolean noAbstract)
Accept a visitor that visit all descendants of the class represetned by this ClassNode
including this ClassNode
itself.
visitor
- the visitorpublicOnly
- specify if only public class shall be visitednoAbstract
- specify if abstract class can be visitedClassNode
instancepublic ClassNode visitSubTree(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all descendants of the class represented by this ClassNode
NOT including this ClassNode
itself
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic ClassNode visitSubTree(org.osgl.Osgl.Function<ClassNode,?> visitor, boolean publicOnly, boolean noAbstract)
Accept a visitor that visit all descendants of the class represetned by this ClassNode
NOT including this ClassNode
itself.
visitor
- the visitorpublicOnly
- specify if only public class shall be visitednoAbstract
- specify if abstract class can be visitedClassNode
instancepublic ClassNode visitPublicTreeNodes(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public and non-abstract descendants of the class represented by this ClassNode
including this ClassNode
itself
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic ClassNode visitPublicSubTreeNodes(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public and non-abstract descendants of the class represented by this ClassNode
NOT including this ClassNode
itself
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic ClassNode visitPublicNotAbstractSubTreeNodes(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public descendants of the class represented by this ClassNode
NOT including this ClassNode
itself
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic ClassNode visitPublicNotAbstractTreeNodes(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public descendants of the class represented by this ClassNode
including this ClassNode
itself
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic java.util.Set<ClassNode> annotatedClasses()
Returns a set of ClassNode
that has been annotated by the annotation class represented by this ClassNode
public ClassNode visitAnnotatedClasses(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all class node that has been annotated by the class represented by this ClassNode
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic ClassNode visitAnnotatedClasses(org.osgl.Osgl.Function<ClassNode,?> visitor, boolean publicOnly, boolean noAbstract)
Accept a visitor that visit all class node that has been annotated by the class represented by this ClassNode
visitor
- the function that take ClassNode
as argumentpublicOnly
- specify whether non-public class shall be scannednoAbstract
- specify whether abstract class shall be scannedClassNode
instancepublic ClassNode visitPublicAnnotatedClasses(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public class node that has been annotated by the class represented by this ClassNode
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic ClassNode visitPublicNotAbstractAnnotatedClasses(org.osgl.Osgl.Function<ClassNode,?> visitor)
Accept a visitor that visit all public and non-abstract class node that has been annotated by the class represented by this ClassNode
visitor
- the function that take ClassNode
as argumentClassNode
instancepublic java.util.Set<ClassNode> annotations()
Returns a set of class node that annotated the class represented by this ClassNode
protected void releaseResources()
releaseResources
in class DestroyableBase
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2014–2017 ActFramework. All rights reserved.