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

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

Introduction

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

Prototype

public final AST getAST() 

Source Link

Document

Returns this node's AST.

Usage

From source file:at.bestsolution.fxide.jdt.corext.dom.ASTFlattener.java

License:Open Source License

@Override
public boolean visit(TypeDeclarationStatement node) {
    if (node.getAST().apiLevel() >= JLS3) {
        node.getDeclaration().accept(this);
    }/*from  w w w.j  a va 2  s.  c  o m*/
    return false;
}

From source file:coloredide.utils.CopiedNaiveASTFlattener.java

License:Open Source License

public boolean visit(TypeDeclarationStatement node) {
    if (node.getAST().apiLevel() >= AST.JLS3) {
        node.getDeclaration().accept(this);
    }//from ww w. j  av a2  s  .c  o  m
    return false;
}

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

License:Open Source License

public boolean visit(TypeDeclarationStatement node) {
    IValue typeDeclaration;/*from   w w  w  .  ja  va  2  s . co  m*/
    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

public boolean visit(TypeDeclarationStatement node) {
    if (node.getAST().apiLevel() == JLS2) {
        getTypeDeclaration(node).accept(this);
    }/*www .  j a v a2 s.  c om*/
    if (node.getAST().apiLevel() >= JLS3) {
        node.getDeclaration().accept(this);
    }
    return false;
}