public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
/** * NB: for source >= 1.5 the return type is not correct: shows j.l.Object but should show T[]. * See references to {@link #arrayClone} for code that compensates for this mismatch. */ public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
/** * NB: for source >= 1.5 the return type is not correct: shows j.l.Object but should show T[]. * See references to {@link #arrayClone} for code that compensates for this mismatch. */ public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
/** * NB: for source >= 1.5 the return type is not correct: shows j.l.Object but should show T[]. * See references to {@link #arrayClone} for code that compensates for this mismatch. */ public MethodBinding computeArrayClone(MethodBinding objectClone) { if (this.arrayClone == null) { this.arrayClone = new MethodBinding( (objectClone.modifiers & ~ClassFileConstants.AccProtected) | ClassFileConstants.AccPublic, TypeConstants.CLONE, objectClone.returnType, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, // no exception for array specific method (ReferenceBinding)objectClone.returnType); } return this.arrayClone; } public TypeBinding computeBoxingType(TypeBinding type) {
public MethodBinding getMethodBinding() { if (this.actualMethodBinding == null) { if (this.binding != null) { this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType, this.binding instanceof SyntheticMethodBinding ? this.descriptor.parameters : this.binding.parameters, // retain any faults in parameter list. this.binding.thrownExceptions, this.binding.declaringClass); this.actualMethodBinding.tagBits = this.binding.tagBits; } else { this.actualMethodBinding = new ProblemMethodBinding(CharOperation.NO_CHAR, null, ProblemReasons.NoSuchSingleAbstractMethod); } } return this.actualMethodBinding; }
public MethodBinding getMethodBinding() { if (this.actualMethodBinding == null) { if (this.binding != null) { this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType, this.binding instanceof SyntheticMethodBinding ? this.descriptor.parameters : this.binding.parameters, // retain any faults in parameter list. this.binding.thrownExceptions, this.binding.declaringClass); this.actualMethodBinding.tagBits = this.binding.tagBits; } else { this.actualMethodBinding = new ProblemMethodBinding(CharOperation.NO_CHAR, null, ProblemReasons.NoSuchSingleAbstractMethod); } } return this.actualMethodBinding; }
public MethodBinding getMethodBinding() { if (this.actualMethodBinding == null) { if (this.binding != null) { this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType, this.binding instanceof SyntheticMethodBinding ? this.descriptor.parameters : this.binding.parameters, // retain any faults in parameter list. this.binding.thrownExceptions, this.binding.declaringClass); this.actualMethodBinding.tagBits = this.binding.tagBits; } else { this.actualMethodBinding = new ProblemMethodBinding(CharOperation.NO_CHAR, null, ProblemReasons.NoSuchSingleAbstractMethod); } } return this.actualMethodBinding; }
/** Method used only by DOM to support bindings of initializers. */ public MethodBinding getMethodBinding() { if (this.methodBinding == null) { Scope scope = this.block.scope; this.methodBinding = isStatic() ? new MethodBinding(ClassFileConstants.AccStatic, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()) : new MethodBinding(0, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()); } return this.methodBinding; }
public MethodBinding getMethodBinding() { if (this.actualMethodBinding == null) { if (this.binding != null) { // Get rid of the synthetic arguments added via addSyntheticArgument() TypeBinding[] newParams = null; if (this.binding instanceof SyntheticMethodBinding && this.outerLocalVariables.length > 0) { newParams = new TypeBinding[this.binding.parameters.length - this.outerLocalVariables.length]; System.arraycopy(this.binding.parameters, this.outerLocalVariables.length, newParams, 0, newParams.length); } else { newParams = this.binding.parameters; } this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType, newParams, this.binding.thrownExceptions, this.binding.declaringClass); this.actualMethodBinding.tagBits = this.binding.tagBits; } else { this.actualMethodBinding = new ProblemMethodBinding(CharOperation.NO_CHAR, null, ProblemReasons.NoSuchSingleAbstractMethod); } } return this.actualMethodBinding; }
/** Method used only by DOM to support bindings of initializers. */ public MethodBinding getMethodBinding() { if (this.methodBinding == null) { Scope scope = this.block.scope; this.methodBinding = isStatic() ? new MethodBinding(ClassFileConstants.AccStatic, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()) : new MethodBinding(0, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()); } return this.methodBinding; }
public MethodBinding getMethodBinding() { if (this.actualMethodBinding == null) { if (this.binding != null) { // Get rid of the synthetic arguments added via addSyntheticArgument() TypeBinding[] newParams = null; if (this.binding instanceof SyntheticMethodBinding && this.outerLocalVariables.length > 0) { newParams = new TypeBinding[this.binding.parameters.length - this.outerLocalVariables.length]; System.arraycopy(this.binding.parameters, this.outerLocalVariables.length, newParams, 0, newParams.length); } else { newParams = this.binding.parameters; } this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType, newParams, this.binding.thrownExceptions, this.binding.declaringClass); this.actualMethodBinding.tagBits = this.binding.tagBits; } else { this.actualMethodBinding = new ProblemMethodBinding(CharOperation.NO_CHAR, null, ProblemReasons.NoSuchSingleAbstractMethod); } } return this.actualMethodBinding; }
/** Method used only by DOM to support bindings of initializers. */ public MethodBinding getMethodBinding() { if (this.methodBinding == null) { Scope scope = this.block.scope; this.methodBinding = isStatic() ? new MethodBinding(ClassFileConstants.AccStatic, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()) : new MethodBinding(0, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()); } return this.methodBinding; }
public MethodBinding getMethodBinding() { if (this.actualMethodBinding == null) { if (this.binding != null) { // Get rid of the synthetic arguments added via addSyntheticArgument() TypeBinding[] newParams = null; if (this.binding instanceof SyntheticMethodBinding && this.outerLocalVariables.length > 0) { newParams = new TypeBinding[this.binding.parameters.length - this.outerLocalVariables.length]; System.arraycopy(this.binding.parameters, this.outerLocalVariables.length, newParams, 0, newParams.length); } else { newParams = this.binding.parameters; } this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType, newParams, this.binding.thrownExceptions, this.binding.declaringClass); this.actualMethodBinding.tagBits = this.binding.tagBits; } else { this.actualMethodBinding = new ProblemMethodBinding(CharOperation.NO_CHAR, null, ProblemReasons.NoSuchSingleAbstractMethod); } } return this.actualMethodBinding; }
/** Method used only by DOM to support bindings of initializers. */ public MethodBinding getMethodBinding() { if (this.methodBinding == null) { Scope scope = this.block.scope; this.methodBinding = isStatic() ? new MethodBinding(ClassFileConstants.AccStatic, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()) : new MethodBinding(0, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()); } return this.methodBinding; }
/** Method used only by DOM to support bindings of initializers. */ public MethodBinding getMethodBinding() { if (this.methodBinding == null) { Scope scope = this.block.scope; this.methodBinding = isStatic() ? new MethodBinding(ClassFileConstants.AccStatic, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()) : new MethodBinding(0, CharOperation.NO_CHAR, TypeBinding.VOID, Binding.NO_PARAMETERS, Binding.NO_EXCEPTIONS, scope.enclosingSourceType()); } return this.methodBinding; }