@Override public boolean isVarArgs() { return mVariable instanceof Argument && ((Argument)mVariable).isVarArgs(); } }
public JavadocArgumentExpression(char[] name, int startPos, int endPos, TypeReference typeRef) { this.token = name; this.sourceStart = startPos; this.sourceEnd = endPos; long pos = (((long) startPos) << 32) + endPos; this.argument = new Argument(name, pos, typeRef, ClassFileConstants.AccDefault); this.bits |= InsideJavadoc; }
public StringBuffer printExpression(int indent, StringBuffer output) { if (this.argument == null) { if (this.token != null) { output.append(this.token); } } else { this.argument.print(indent, output); } return output; }
public StringBuffer print(int indent, StringBuffer output) { printIndent(indent, output); printModifiers(this.modifiers, output); if (this.annotations != null) printAnnotations(this.annotations, output); if (this.type == null) { output.append("<no type> "); //$NON-NLS-1$ } else { this.type.print(0, output).append(' '); } return output.append(this.name); }
public void traverse(ASTVisitor visitor, ClassScope blockScope) { if (visitor.visit(this, blockScope)) { if (this.argument != null) { this.argument.traverse(visitor, blockScope); } } visitor.endVisit(this, blockScope); } }
@Override public TypeBinding bind(MethodScope scope, TypeBinding typeBinding, boolean used) { super.bind(scope, typeBinding, used); throw new CompletionNodeFound(this, scope); }
public void resolve(BlockScope scope) { if (this.argument != null) { this.argument.resolve(scope); } }
public void createBinding(MethodScope scope, TypeBinding typeBinding) { if (this.binding == null) { // for default constructors and fake implementation of abstract methods this.binding = new LocalVariableBinding(this, typeBinding, this.modifiers, true /*isArgument*/); } else if (!this.binding.type.isValidBinding()) { AbstractMethodDeclaration methodDecl = scope.referenceMethod(); if (methodDecl != null) { MethodBinding methodBinding = methodDecl.binding; if (methodBinding != null) { methodBinding.tagBits |= TagBits.HasUnresolvedArguments; } } } resolveAnnotations(scope, this.annotations, this.binding); this.binding.declaration = this; }
public StringBuffer print(int indent, StringBuffer output) { printIndent(indent, output); printModifiers(this.modifiers, output); if (this.annotations != null) printAnnotations(this.annotations, output); if (this.type == null) { output.append("<no type> "); //$NON-NLS-1$ } else { this.type.print(0, output).append(' '); } return output.append(this.name); }
public void traverse(ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) { if (this.argument != null) { this.argument.traverse(visitor, blockScope); } } visitor.endVisit(this, blockScope); } public void traverse(ASTVisitor visitor, ClassScope blockScope) {
@Override public TypeBinding bind(MethodScope scope, TypeBinding typeBinding, boolean used) { super.bind(scope, typeBinding, used); throw new SelectionNodeFound(this.binding); }
public void resolve(BlockScope scope) { if (this.argument != null) { this.argument.resolve(scope); } }
public TypeBinding createBinding(MethodScope scope, TypeBinding typeBinding) { if (this.binding == null) { // for default constructors and fake implementation of abstract methods this.binding = new LocalVariableBinding(this, typeBinding, this.modifiers, scope); } else if (!this.binding.type.isValidBinding()) { AbstractMethodDeclaration methodDecl = scope.referenceMethod(); if (methodDecl != null) { MethodBinding methodBinding = methodDecl.binding; if (methodBinding != null) { methodBinding.tagBits |= TagBits.HasUnresolvedArguments; } } } if ((this.binding.tagBits & TagBits.AnnotationResolved) == 0) { resolveAnnotations(scope, this.annotations, this.binding, true); if (scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_8) { Annotation.isTypeUseCompatible(this.type, scope, this.annotations); scope.validateNullAnnotation(this.binding.tagBits, this.type, this.annotations); } } this.binding.declaration = this; return this.binding.type; // might have been updated during resolveAnnotations (for typeAnnotations) }
public StringBuffer print(int indent, StringBuffer output) { printIndent(indent, output); printModifiers(this.modifiers, output); if (this.annotations != null) printAnnotations(this.annotations, output); if (this.type == null) { output.append("<no type> "); //$NON-NLS-1$ } else { this.type.print(0, output).append(' '); } return output.append(this.name); }
private boolean isVarArgs() { Argument[] arguments = m_astNode.arguments; if (arguments != null && arguments.length > 0) { return arguments[arguments.length - 1].isVarArgs(); } return false; }
@Override public void traverse(ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) { if (this.argument != null) { this.argument.traverse(visitor, blockScope); } } visitor.endVisit(this, blockScope); } @Override
public JavadocArgumentExpression(char[] name, int startPos, int endPos, TypeReference typeRef) { this.token = name; this.sourceStart = startPos; this.sourceEnd = endPos; long pos = (((long) startPos) << 32) + endPos; this.argument = new Argument(name, pos, typeRef, ClassFileConstants.AccDefault); this.bits |= InsideJavadoc; }
@Override public StringBuffer printExpression(int indent, StringBuffer output) { if (this.argument == null) { if (this.token != null) { output.append(this.token); } } else { this.argument.print(indent, output); } return output; }
public TypeBinding bind(MethodScope scope, TypeBinding typeBinding, boolean used) { super.bind(scope, typeBinding, used); throw new SelectionNodeFound(this.binding); }
public void resolve(BlockScope scope) { if (this.argument != null) { this.argument.resolve(scope); } }