Search in sources :

Example 1 with JavaClassParent

use of com.thoughtworks.qdox.model.JavaClassParent in project sling by apache.

the class AbstractDescriptorElement method getJavaClass.

JavaClass getJavaClass() {
    AbstractBaseJavaEntity aje = tag.getContext();
    if (aje instanceof JavaClass) {
        return (JavaClass) aje;
    }
    JavaClassParent parent = aje.getParent();
    if (parent instanceof JavaClass) {
        return (JavaClass) parent;
    }
    return null;
}
Also used : JavaClassParent(com.thoughtworks.qdox.model.JavaClassParent) JavaClass(com.thoughtworks.qdox.model.JavaClass) AbstractBaseJavaEntity(com.thoughtworks.qdox.model.AbstractBaseJavaEntity)

Aggregations

AbstractBaseJavaEntity (com.thoughtworks.qdox.model.AbstractBaseJavaEntity)1 JavaClass (com.thoughtworks.qdox.model.JavaClass)1 JavaClassParent (com.thoughtworks.qdox.model.JavaClassParent)1