/** * Creates an unparented variable declaration fragment node owned by this * AST. By default, the fragment is for a variable with an unspecified, but * legal, name; no extra array dimensions; and no initializer. * * @return a new unparented variable declaration fragment node */ public VariableDeclarationFragment newVariableDeclarationFragment() { VariableDeclarationFragment result = new VariableDeclarationFragment(this); return result; }
/** * Creates an unparented variable declaration fragment node owned by this * AST. By default, the fragment is for a variable with an unspecified, but * legal, name; no extra array dimensions; and no initializer. * * @return a new unparented variable declaration fragment node */ public VariableDeclarationFragment newVariableDeclarationFragment() { VariableDeclarationFragment result = new VariableDeclarationFragment(this); return result; }
/** * Creates an unparented variable declaration fragment node owned by this * AST. By default, the fragment is for a variable with an unspecified, but * legal, name; no extra array dimensions; and no initializer. * * @return a new unparented variable declaration fragment node */ public VariableDeclarationFragment newVariableDeclarationFragment() { VariableDeclarationFragment result = new VariableDeclarationFragment(this); return result; }
/** * Creates an unparented variable declaration fragment node owned by this * AST. By default, the fragment is for a variable with an unspecified, but * legal, name; no extra array dimensions; and no initializer. * * @return a new unparented variable declaration fragment node */ public VariableDeclarationFragment newVariableDeclarationFragment() { VariableDeclarationFragment result = new VariableDeclarationFragment(this); return result; }
/** * Creates an unparented variable declaration fragment node owned by this * AST. By default, the fragment is for a variable with an unspecified, but * legal, name; no extra array dimensions; and no initializer. * * @return a new unparented variable declaration fragment node */ public VariableDeclarationFragment newVariableDeclarationFragment() { VariableDeclarationFragment result = new VariableDeclarationFragment(this); return result; }
/** * Creates an unparented variable declaration fragment node owned by this * AST. By default, the fragment is for a variable with an unspecified, but * legal, name; no extra array dimensions; and no initializer. * * @return a new unparented variable declaration fragment node */ public VariableDeclarationFragment newVariableDeclarationFragment() { VariableDeclarationFragment result = new VariableDeclarationFragment(this); return result; }
ASTNode clone0(AST target) { VariableDeclarationFragment result = new VariableDeclarationFragment(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); if (this.ast.apiLevel >= AST.JLS8_INTERNAL) { result.extraDimensions().addAll( ASTNode.copySubtrees(target, extraDimensions())); } else { result.internalSetExtraDimensions(getExtraDimensions()); } result.setInitializer( (Expression) ASTNode.copySubtree(target, getInitializer())); return result; }
ASTNode clone0(AST target) { VariableDeclarationFragment result = new VariableDeclarationFragment(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); if (this.ast.apiLevel >= AST.JLS8) { result.extraDimensions().addAll( ASTNode.copySubtrees(target, extraDimensions())); } else { result.internalSetExtraDimensions(getExtraDimensions()); } result.setInitializer( (Expression) ASTNode.copySubtree(target, getInitializer())); return result; }
ASTNode clone0(AST target) { VariableDeclarationFragment result = new VariableDeclarationFragment(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); if (this.ast.apiLevel >= AST.JLS8) { result.extraDimensions().addAll( ASTNode.copySubtrees(target, extraDimensions())); } else { result.internalSetExtraDimensions(getExtraDimensions()); } result.setInitializer( (Expression) ASTNode.copySubtree(target, getInitializer())); return result; }
ASTNode clone0(AST target) { VariableDeclarationFragment result = new VariableDeclarationFragment(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); if (this.ast.apiLevel >= AST.JLS8) { result.extraDimensions().addAll( ASTNode.copySubtrees(target, extraDimensions())); } else { result.internalSetExtraDimensions(getExtraDimensions()); } result.setInitializer( (Expression) ASTNode.copySubtree(target, getInitializer())); return result; }
@Override ASTNode clone0(AST target) { VariableDeclarationFragment result = new VariableDeclarationFragment(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); if (this.ast.apiLevel >= AST.JLS8_INTERNAL) { result.extraDimensions().addAll( ASTNode.copySubtrees(target, extraDimensions())); } else { result.internalSetExtraDimensions(getExtraDimensions()); } result.setInitializer( (Expression) ASTNode.copySubtree(target, getInitializer())); return result; }
ASTNode clone0(AST target) { VariableDeclarationFragment result = new VariableDeclarationFragment(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); result.setExtraDimensions(getExtraDimensions()); result.setInitializer( (Expression) ASTNode.copySubtree(target, getInitializer())); return result; }
org.eclipse.jdt.internal.compiler.ast.Argument argument = arguments[i]; if (argument.type == null) { VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast); SimpleName simpleName = new SimpleName(this.ast); simpleName.internalSetIdentifier(new String(argument.name));
org.eclipse.jdt.internal.compiler.ast.Argument argument = arguments[i]; if (argument.type == null) { VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast); SimpleName simpleName = new SimpleName(this.ast); simpleName.internalSetIdentifier(new String(argument.name));
org.eclipse.jdt.internal.compiler.ast.Argument argument = arguments[i]; if (argument.type == null) { VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast); SimpleName simpleName = new SimpleName(this.ast); simpleName.internalSetIdentifier(new String(argument.name));
protected VariableDeclarationFragment convertToVariableDeclarationFragment(org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration) { final VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast); final SimpleName name = new SimpleName(this.ast); name.internalSetIdentifier(new String(fieldDeclaration.name));
protected VariableDeclarationFragment convertToVariableDeclarationFragment(org.eclipse.jdt.internal.compiler.ast.LocalDeclaration localDeclaration) { final VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast); final SimpleName name = new SimpleName(this.ast); name.internalSetIdentifier(new String(localDeclaration.name));
protected VariableDeclarationFragment convertToVariableDeclarationFragment(org.eclipse.jdt.internal.compiler.ast.LocalDeclaration localDeclaration) { final VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast); final SimpleName name = new SimpleName(this.ast); name.internalSetIdentifier(new String(localDeclaration.name));
protected VariableDeclarationFragment convertToVariableDeclarationFragment(org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration) { final VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast); final SimpleName name = new SimpleName(this.ast); name.internalSetIdentifier(new String(fieldDeclaration.name));
protected VariableDeclarationFragment convertToVariableDeclarationFragment(org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration) { final VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast); final SimpleName name = new SimpleName(this.ast); name.internalSetIdentifier(new String(fieldDeclaration.name));