/** * Creates an unparented method invocation expression node owned by this * AST. By default, the name of the method is unspecified (but legal) * there is no receiver expression, no type arguments, and the list of * arguments is empty. * * @return a new unparented method invocation expression node */ public MethodInvocation newMethodInvocation() { MethodInvocation result = new MethodInvocation(this); return result; }
/** * Creates an unparented method invocation expression node owned by this * AST. By default, the name of the method is unspecified (but legal) * there is no receiver expression, no type arguments, and the list of * arguments is empty. * * @return a new unparented method invocation expression node */ public MethodInvocation newMethodInvocation() { MethodInvocation result = new MethodInvocation(this); return result; }
/** * Creates an unparented method invocation expression node owned by this * AST. By default, the name of the method is unspecified (but legal) * there is no receiver expression, no type arguments, and the list of * arguments is empty. * * @return a new unparented method invocation expression node */ public MethodInvocation newMethodInvocation() { MethodInvocation result = new MethodInvocation(this); return result; }
/** * Creates an unparented method invocation expression node owned by this * AST. By default, the name of the method is unspecified (but legal) * there is no receiver expression, no type arguments, and the list of * arguments is empty. * * @return a new unparented method invocation expression node */ public MethodInvocation newMethodInvocation() { MethodInvocation result = new MethodInvocation(this); return result; }
/** * Creates an unparented method invocation expression node owned by this * AST. By default, the name of the method is unspecified (but legal) * there is no receiver expression, no type arguments, and the list of * arguments is empty. * * @return a new unparented method invocation expression node */ public MethodInvocation newMethodInvocation() { MethodInvocation result = new MethodInvocation(this); return result; }
/** * Creates an unparented method invocation expression node owned by this * AST. By default, the name of the method is unspecified (but legal) * there is no receiver expression, no type arguments, and the list of * arguments is empty. * * @return a new unparented method invocation expression node */ public MethodInvocation newMethodInvocation() { MethodInvocation result = new MethodInvocation(this); return result; }
/** * Returns the expression of this expression statement. * * @return the expression node */ public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.expression == null) { preLazyInit(); this.expression = new MethodInvocation(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } } } return this.expression; }
/** * Returns the expression of this expression statement. * * @return the expression node */ public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.expression == null) { preLazyInit(); this.expression = new MethodInvocation(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } } } return this.expression; }
/** * Returns the expression of this expression statement. * * @return the expression node */ public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.expression == null) { preLazyInit(); this.expression = new MethodInvocation(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } } } return this.expression; }
/** * Returns the expression of this expression statement. * * @return the expression node */ public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.expression == null) { preLazyInit(); this.expression = new MethodInvocation(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } } } return this.expression; }
/** * Returns the expression of this expression statement. * * @return the expression node */ public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.expression == null) { preLazyInit(); this.expression = new MethodInvocation(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } } } return this.expression; }
/** * Returns the expression of this expression statement. * * @return the expression node */ public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.expression == null) { preLazyInit(); this.expression = new MethodInvocation(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } } } return this.expression; }
ASTNode clone0(AST target) { MethodInvocation result = new MethodInvocation(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); result.setExpression( (Expression) ASTNode.copySubtree(target, getExpression())); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments())); } result.arguments().addAll(ASTNode.copySubtrees(target, arguments())); return result; }
ASTNode clone0(AST target) { MethodInvocation result = new MethodInvocation(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); result.setExpression( (Expression) ASTNode.copySubtree(target, getExpression())); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments())); } result.arguments().addAll(ASTNode.copySubtrees(target, arguments())); return result; }
ASTNode clone0(AST target) { MethodInvocation result = new MethodInvocation(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); result.setExpression( (Expression) ASTNode.copySubtree(target, getExpression())); if (this.ast.apiLevel >= AST.JLS3) { result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments())); } result.arguments().addAll(ASTNode.copySubtrees(target, arguments())); return result; }
ASTNode clone0(AST target) { MethodInvocation result = new MethodInvocation(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); result.setExpression( (Expression) ASTNode.copySubtree(target, getExpression())); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments())); } result.arguments().addAll(ASTNode.copySubtrees(target, arguments())); return result; }
ASTNode clone0(AST target) { MethodInvocation result = new MethodInvocation(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); result.setExpression( (Expression) ASTNode.copySubtree(target, getExpression())); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments())); } result.arguments().addAll(ASTNode.copySubtrees(target, arguments())); return result; }
@Override ASTNode clone0(AST target) { MethodInvocation result = new MethodInvocation(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((SimpleName) getName().clone(target)); result.setExpression( (Expression) ASTNode.copySubtree(target, getExpression())); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments())); } result.arguments().addAll(ASTNode.copySubtrees(target, arguments())); return result; }
} else { final MethodInvocation methodInvocation = new MethodInvocation(this.ast); if (this.resolveBindings) { recordNodes(methodInvocation, expression);
} else { final MethodInvocation methodInvocation = new MethodInvocation(this.ast); if (this.resolveBindings) { recordNodes(methodInvocation, expression);