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