Example usage for org.eclipse.jdt.internal.core SourceType getParent

List of usage examples for org.eclipse.jdt.internal.core SourceType getParent

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core SourceType getParent.

Prototype

IJavaElement getParent();

Source Link

Document

Returns the element directly containing this element, or null if this element has no parent.

Usage

From source file:org.eclipse.ajdt.core.javaelements.ITDAwareSourceTypeInfo.java

License:Open Source License

private SourceType createITDAwareType(SourceType type, ITDAwareSourceTypeInfo info) {
    if (type instanceof AspectElement) {
        return new ITDAwareAspectType((JavaElement) type.getParent(), type.getElementName(), info);
    } else {// w w w  . j a  va 2s  .c om
        return new ITDAwareSourceType((JavaElement) type.getParent(), type.getElementName(), info);
    }
}