List of usage examples for org.eclipse.jdt.core.dom MethodRefParameter getAST
public final AST getAST()
From source file:at.bestsolution.fxide.jdt.corext.dom.ASTFlattener.java
License:Open Source License
@Override public boolean visit(MethodRefParameter node) { node.getType().accept(this); if (node.getAST().apiLevel() >= JLS3) { if (node.isVarargs()) { this.fBuffer.append("...");//$NON-NLS-1$ }//from w w w . j av a 2 s . com } if (node.getName() != null) { this.fBuffer.append(" ");//$NON-NLS-1$ node.getName().accept(this); } return false; }
From source file:coloredide.utils.CopiedNaiveASTFlattener.java
License:Open Source License
public boolean visit(MethodRefParameter node) { node.getType().accept(this); if (node.getAST().apiLevel() >= AST.JLS3) { if (node.isVarargs()) { this.buffer.append("...");//$NON-NLS-1$ }/*w ww .j av a2 s . c om*/ } if (node.getName() != null) { this.buffer.append(" ");//$NON-NLS-1$ node.getName().accept(this); } return false; }
From source file:org.codemucker.jmutate.ast.JAstFlattener.java
License:Open Source License
public boolean visit(MethodRefParameter node) { node.getType().accept(this); if (node.getAST().apiLevel() >= JLS3) { if (node.isVarargs()) { this.buffer.append("...");//$NON-NLS-1$ }/* www. j a v a 2 s .c om*/ } if (node.getName() != null) { this.buffer.append(" ");//$NON-NLS-1$ node.getName().accept(this); } return false; }
From source file:org.spoofax.interpreter.adapter.ecj.ECJFactory.java
License:LGPL
private MethodRefParameter asMethodRefParameter(IStrategoTerm term) { MethodRefParameter x = ((WrappedMethodRefParameter) term).getWrappee(); return x.getParent() == null && x.getAST() == ast ? x : (MethodRefParameter) ASTNode.copySubtree(ast, x); }