Package org.aspectj.org.eclipse.jdt.internal.compiler.lookup

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding


    if (this.bounds != null) {
      return this.bounds;
    }
    if (this.binding instanceof TypeVariableBinding) {
      TypeVariableBinding typeVariableBinding = (TypeVariableBinding) this.binding;
      ReferenceBinding varSuperclass = typeVariableBinding.superclass();
      org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding firstClassOrArrayBound = typeVariableBinding.firstBound;
      int boundsLength = 0;
      if (firstClassOrArrayBound != null) {
        if (firstClassOrArrayBound == varSuperclass) {
          boundsLength++;
View Full Code Here


  /*
   * @see ITypeBinding#isAnonymous()
   */
  public boolean isAnonymous() {
    if (isClass() || isInterface() || isEnum()) {
      ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
      return referenceBinding.isAnonymousType();
    }
    return false;
  }
View Full Code Here

  /*
   * @see IBinding#isDeprecated()
   */
  public boolean isDeprecated() {
    if (isClass() || isInterface() || isEnum()) {
      ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
      return referenceBinding.isDeprecated();
    }
    return false;
  }
View Full Code Here

  /*
   * @see ITypeBinding#isFromSource()
   */
  public boolean isFromSource() {
    if (isClass() || isInterface() || isEnum()) {
      ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
      if (referenceBinding.isRawType()) {
        return !((RawTypeBinding) referenceBinding).genericType().isBinaryBinding();
      } else if (referenceBinding.isParameterizedType()) {
        ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) referenceBinding;
        org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding erasure = parameterizedTypeBinding.erasure();
        if (erasure instanceof ReferenceBinding) {
          return !((ReferenceBinding) erasure).isBinaryBinding();
        }
        return false;
      } else {
        return !referenceBinding.isBinaryBinding();
      }
    } else if (isTypeVariable()) {
      final TypeVariableBinding typeVariableBinding = (TypeVariableBinding) this.binding;
      final Binding declaringElement = typeVariableBinding.declaringElement;
      if (declaringElement instanceof MethodBinding) {
View Full Code Here

  /*
   * @see ITypeBinding#isLocal()
   */
  public boolean isLocal() {
    if (isClass() || isInterface() || isEnum()) {
      ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
      return referenceBinding.isLocalType() && !referenceBinding.isMemberType();
    }
    return false;
  }
View Full Code Here

   * For methods, also look at declaring class and parameters type names
   */
  protected int matchTypeParameter(TypeVariableBinding variable, boolean matchName) {
    if (variable == null || variable.declaringElement == null) return INACCURATE_MATCH;
    if (variable.declaringElement instanceof ReferenceBinding) {
      ReferenceBinding refBinding  = (ReferenceBinding) variable.declaringElement;
      if (matchesName(refBinding.sourceName, pattern.declaringMemberName)) {
        return ACCURATE_MATCH;
      }
    } else if (variable.declaringElement instanceof MethodBinding) {
      MethodBinding methBinding  = (MethodBinding) variable.declaringElement;
View Full Code Here

        if (Modifier.isPublic(aBinding.modifiers)) {
          toAList.add(aBinding);
        }
      }
    }
    ReferenceBinding superType = anInterface.superclass;
    if (superType instanceof SourceTypeBinding && superType.isInterface()) {
      addPublicITDSFrom((SourceTypeBinding) superType, toAList);
    }
  }
View Full Code Here

    // System.err.println("replace static ref: " + receiver + " is " + System.identityHashCode(receiver));
    receiver.binding = thisJoinPointStaticPartDecLocal; // thisJoinPointStaticPartDec;
    receiver.codegenBinding = thisJoinPointStaticPartDecLocal;

    ReferenceBinding thisJoinPointStaticPartType = (ReferenceBinding) thisJoinPointStaticPartDec.type;

    receiver.actualReceiverType = receiver.resolvedType = thisJoinPointStaticPartType;

    call.setActualReceiverType(thisJoinPointStaticPartType);
View Full Code Here

    AstUtil.replaceMethodBinding(call, getEquivalentStaticBinding(call.binding));
  }

  private MethodBinding getEquivalentStaticBinding(MethodBinding template) {
    ReferenceBinding b = (ReferenceBinding) thisJoinPointStaticPartDec.type;
    return b.getExactMethod(template.selector, template.parameters, null);
  }
View Full Code Here

    if (binding == null) {
        // other errors exist that will be reported separately
      return null
    }
    // System.out.println("pc: " + getPointcut() + ", " + getPointcut().state);
    ReferenceBinding declaringClass = binding.declaringClass;
    TypeBinding[] parameters = binding.parameters;
    UnresolvedType utDeclaringClass = inWorld.fromBinding(declaringClass);
    UnresolvedType[] utParameters = inWorld.fromBindings(parameters);
    resolvedPointcutDeclaration = new ResolvedPointcutDefinition(utDeclaringClass, declaredModifiers, declaredName,
        utParameters, getPointcut()); // ??? might want to
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding

Copyright © 2018 www.massapicom. 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.