List of usage examples for org.eclipse.jdt.core.dom TypeDeclarationStatement getAST
public final AST getAST()
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; }