Examples of original()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding.original()

      MethodBinding explicitConstructor = explicitConstructorCall.binding;
      if (explicitConstructor.alwaysNeedsAccessMethod()) {
        explicitConstructor = explicitConstructor.getAccessMethod(true);
      }
      if (explicitConstructor instanceof ParameterizedMethodBinding) {
        explicitConstructor = explicitConstructor.original();
      }
      ((NewConstructorTypeMunger) munger).setExplicitConstructor(world.makeResolvedMember(explicitConstructor));
    } else {
      ((NewConstructorTypeMunger) munger).setExplicitConstructor(new ResolvedMemberImpl(Member.CONSTRUCTOR, world
          .fromBinding(onTypeBinding.superclass()), 0, ResolvedType.VOID, "<init>", UnresolvedType.NONE));
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding.original()

  if (!(binding instanceof MethodBinding)) return IMPOSSIBLE_MATCH;

  MethodBinding constructor = (MethodBinding) binding;
  int level= matchConstructor(constructor);
  if (level== IMPOSSIBLE_MATCH) {
    if (constructor != constructor.original()) {
      level= matchConstructor(constructor.original());
    }
  }
  return level;
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding.original()

  MethodBinding constructor = (MethodBinding) binding;
  int level= matchConstructor(constructor);
  if (level== IMPOSSIBLE_MATCH) {
    if (constructor != constructor.original()) {
      level= matchConstructor(constructor.original());
    }
  }
  return level;
}
protected int resolveLevel(ConstructorDeclaration constructor, boolean checkDeclarations) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding.original()

   * @since 3.1
   */
  public IVariableBinding getVariableDeclaration() {
    if (isField()) {
      FieldBinding fieldBinding = (FieldBinding) this.binding;
      return this.resolver.getVariableBinding(fieldBinding.original());
    }
    return this;
  }

  /*
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding.original()

        if ((field = fields[i]).isStatic()
          && field.isFinal()
          && (!flowInfo.isDefinitelyAssigned(fields[i]))) {
          this.scope.problemReporter().uninitializedBlankFinalField(
            field,
            this.scope.referenceType().declarationOf(field.original()));
          // can complain against the field decl, since only one <clinit>
        }
      }
      // check static initializers thrown exceptions
      staticInitializerFlowContext.checkInitializerExceptions(
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding.original()

        if (this.binding instanceof FieldBinding) {
          this.bits &= ~ASTNode.RestrictiveFlagMASK; // clear bits
          this.bits |= Binding.FIELD;
          FieldBinding fieldBinding = (FieldBinding) this.binding;
          MethodScope methodScope = scope.methodScope();
          ReferenceBinding declaringClass = fieldBinding.original().declaringClass;
          SourceTypeBinding sourceType = methodScope.enclosingSourceType();
          // check for forward references
          if ((this.indexOfFirstFieldBinding == 1 || (fieldBinding.modifiers & ClassFileConstants.AccEnum) != 0 || (!fieldBinding.isFinal() && declaringClass.isEnum())) // enum constants are checked even when qualified
              && sourceType == declaringClass
              && methodScope.lastVisibleFieldID >= 0
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding.original()

  if (isFieldUseDeprecated(fieldBinding, scope, this.bits))
    scope.problemReporter().deprecatedField(fieldBinding, this);

  if ((this.bits & ASTNode.IsStrictlyAssigned) == 0
      && methodScope.enclosingSourceType() == fieldBinding.original().declaringClass
      && methodScope.lastVisibleFieldID >= 0
      && fieldBinding.id >= methodScope.lastVisibleFieldID
      && (!fieldBinding.isStatic() || methodScope.isStatic)) {
    scope.problemReporter().forwardReference(this, 0, fieldBinding);
    this.bits |= ASTNode.IgnoreNoEffectAssignCheck;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding.original()

    JField field;
    if (x.initialization != null && x.initialization instanceof AllocationExpression
        && ((AllocationExpression) x.initialization).enumConstant != null) {
      field =
          new JEnumField(info, intern(binding.name), binding.original().id,
              (JEnumType) enclosingType, (JClassType) type);
    } else {
      field =
          new JField(info, intern(binding.name), enclosingType, type, binding.isStatic(),
              getFieldDisposition(binding));
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding.original()

    JField field;
    if (x.initialization != null && x.initialization instanceof AllocationExpression
        && ((AllocationExpression) x.initialization).enumConstant != null) {
      field =
          new JEnumField(info, intern(binding.name), binding.original().id,
              (JEnumType) enclosingType, (JClassType) type);
    } else {
      boolean isCompileTimeConstant =
          binding.isStatic() && (binding.isFinal())
              && (binding.constant() != Constant.NotAConstant) && (binding.type.isBaseType());
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding.original()

        } else {
          // Adapted from CaseStatement.resolveCase().
          assert x.constantExpression.resolvedType.isEnum();
          NameReference reference = (NameReference) x.constantExpression;
          FieldBinding field = reference.fieldBinding();
          caseLiteral = JIntLiteral.get(field.original().id);
        }
        push(new JCaseStatement(info, caseLiteral));
      } catch (Throwable e) {
        throw translateException(x, e);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.