|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.ArrayList<E> org.tinyjee.maven.dim.utils.SelectableArrayList<E> org.tinyjee.maven.dim.utils.AbstractSelectableJavaEntitiesList<E>
public abstract class AbstractSelectableJavaEntitiesList<E>
Implements a base class for selectable lists of qdox based java entities (AbstractJavaEntity
)
using an AOP-like expressions syntax to select classes, methods and fields.
MyClass
My*
my.package.MyClass
..MyClass
my.*.MyClass
my..MyClass
public void my..MyClass.myMethod(..)
public void my..MyClass.myMethod(java.lang.String, ..)
public void my..MyClass.myMethod(..String, ..)
..MyClass.myOtherMethod()
.myOtherMethod
@my..Annotation
@my..Annotation(..value="something"..)
[modifiers] (enum|interface|@interface|class) fully.qualified.ClassName
public abstract class org.tinyjee.maven.dim.utils.AbstractSelectableJavaEntitiesList
"[modifiers] fully.qualified.ClassName.methodName([fully.qualified.ClassName]) throws fully.qualified.ClassName
public org.tinyjee.maven.dim.utils.AbstractSelectableJavaEntitiesList.selectMatching(java.lang.String)
"[modifiers] fully.qualified.ClassName.fieldName
private static final long org.tinyjee.maven.dim.utils.AbstractSelectableJavaEntitiesList.serialVersionUID
"
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.tinyjee.maven.dim.utils.SelectableArrayList |
---|
SelectableArrayList.Selector<E> |
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
protected |
AbstractSelectableJavaEntitiesList()
|
protected |
AbstractSelectableJavaEntitiesList(Collection<? extends E> collection)
|
Method Summary | |
---|---|
Map<String,E> |
asMap()
Converts this list to a map view where elements are mapped against their simple name. |
AbstractSelectableJavaEntitiesList<E> |
clone()
|
static boolean |
isAnnotation(JavaClass javaClass)
Returns true if the given java class is an annotation. |
AbstractSelectableJavaEntitiesList<E> |
selectAnnotated(String annotationNameExpression)
Selects all java entities that are annotated with an annotation that is matching the given AOP-like expression. |
AbstractSelectableJavaEntitiesList<E> |
selectDerived(String classNameExpression)
Selects all java entities that derive from a class that is matching the given AOP-like expression. |
AbstractSelectableJavaEntitiesList<E> |
selectMatching(String entityExpression)
Selects all java entities that match the given AOP-like expression. |
AbstractSelectableJavaEntitiesList<E> |
selectNonAnnotated(String annotationNameExpression)
Selects all java entities that are not annotated with an annotation that is matching the given AOP-like expression. |
AbstractSelectableJavaEntitiesList<E> |
selectNonDerived(String classNameExpression)
Selects all java entities that do not derive from a class that is matching the given AOP-like expression. |
AbstractSelectableJavaEntitiesList<E> |
selectNonMatching(String entityExpression)
Selects all java entities that do not match the given AOP-like expression. |
protected abstract Object |
unwrap(E element)
Unwraps the given list element to something that can be converted to a valid AbstractJavaEntity
inside unwrapToEntity(Object) . |
protected AbstractJavaEntity |
unwrapToEntity(E element)
Converts the given list element to AbstractJavaEntity . |
Methods inherited from class org.tinyjee.maven.dim.utils.SelectableArrayList |
---|
createInvertSelector, createOrSelector, createRegularExpressionSelector, select, selectMatching |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
protected AbstractSelectableJavaEntitiesList()
protected AbstractSelectableJavaEntitiesList(Collection<? extends E> collection)
Method Detail |
---|
protected abstract Object unwrap(E element)
AbstractJavaEntity
inside unwrapToEntity(Object)
.
element
- the list element to unwrap.
protected final AbstractJavaEntity unwrapToEntity(E element)
AbstractJavaEntity
.
element
- the element to convert.
AbstractJavaEntity
or 'null' if not available.public AbstractSelectableJavaEntitiesList<E> clone()
clone
in class SelectableArrayList<E>
public Map<String,E> asMap()
public AbstractSelectableJavaEntitiesList<E> selectMatching(String entityExpression)
selectMatching
in class SelectableArrayList<E>
entityExpression
- an expression that matches entities contained in this list.
public AbstractSelectableJavaEntitiesList<E> selectNonMatching(String entityExpression)
selectNonMatching
in class SelectableArrayList<E>
entityExpression
- an expression that matches entities contained in this list.
public AbstractSelectableJavaEntitiesList<E> selectDerived(String classNameExpression)
classNameExpression
- an expression matching a super class or interface.
public AbstractSelectableJavaEntitiesList<E> selectNonDerived(String classNameExpression)
classNameExpression
- an expression matching a super class or interface that must not be present in selected classes.
public AbstractSelectableJavaEntitiesList<E> selectAnnotated(String annotationNameExpression)
annotationNameExpression
- an expression matching an annotation (optionally including key & value pairs in method braces).
public AbstractSelectableJavaEntitiesList<E> selectNonAnnotated(String annotationNameExpression)
annotationNameExpression
- an expression matching an annotation (optionally including key & value pairs in method braces).
public static boolean isAnnotation(JavaClass javaClass)
javaClass
- the class to test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |