Example usage for org.eclipse.jdt.core.dom TypeDeclarationStatement getTypeDeclaration

List of usage examples for org.eclipse.jdt.core.dom TypeDeclarationStatement getTypeDeclaration

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom TypeDeclarationStatement getTypeDeclaration.

Prototype

public TypeDeclaration getTypeDeclaration() 

Source Link

Document

Returns the type declaration of this local type declaration statement (JLS2 API only).

Usage

From source file:lang.java.jdt.internal.JdtAstToRascalAstConverter.java

License:Open Source License

public boolean visit(TypeDeclarationStatement node) {
    IValue typeDeclaration;/*www  . j  av  a2s . c  om*/
    if (node.getAST().apiLevel() == AST.JLS2) {
        typeDeclaration = visitChild(node.getTypeDeclaration());
    } else {
        typeDeclaration = visitChild(node.getDeclaration());
    }

    ownValue = constructRascalNode(node, typeDeclaration);
    return false;
}

From source file:org.codemucker.jmutate.ast.JAstFlattener.java

License:Open Source License

/**
 * Internal synonym for//from w  ww . ja  v  a2s .  co m
 * {@link TypeDeclarationStatement#getTypeDeclaration()}. Use to alleviate
 * deprecation warnings.
 * 
 * @deprecated
 * @since 3.4
 */
private static TypeDeclaration getTypeDeclaration(TypeDeclarationStatement node) {
    return node.getTypeDeclaration();
}