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

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


    VariableBinding binding,
    Reference finalAssignment) {

    // do not consider variables which are defined inside this loop
    if (binding instanceof LocalVariableBinding) {
      Scope scope = ((LocalVariableBinding) binding).declaringScope;
      while ((scope = scope.parent) != null) {
        if (scope == associatedScope)
          return false;
      }
    }
View Full Code Here


      return;

    List importedNamesList = new ArrayList();
    List importedPrefixesList = new ArrayList();

    Scope currentScope = scope;
    // add any enclosing types to this list
    while (!(currentScope instanceof CompilationUnitScope)) {
      if (currentScope == null) {
        throw new RuntimeException("unimplemented");
      }
View Full Code Here

}
  /**
   * Check and/or redirect the field access to the delegate receiver if any
   */
  public TypeBinding getReceiverType(BlockScope currentScope) {
    Scope scope = currentScope.parent;
    while (true) {
        switch (scope.kind) {
          case Scope.CLASS_SCOPE :
            return ((ClassScope) scope).referenceContext.binding;
          default:
View Full Code Here

}
/**
* Check and/or redirect the field access to the delegate receiver if any
*/
public TypeBinding getReceiverType(BlockScope currentScope) {
  Scope scope = currentScope.parent;
  while (true) {
      switch (scope.kind) {
        case Scope.CLASS_SCOPE :
          return ((ClassScope) scope).referenceContext.binding;
        default:
View Full Code Here

  public boolean isAssignmentCompatible(ITypeBinding type) {
    try {
      if (this == type) return true;
      if (!(type instanceof TypeBinding)) return false;
      TypeBinding other = (TypeBinding) type;
      Scope scope = this.resolver.scope();
      if (scope == null) return false;
      return this.binding.isCompatibleWith(other.binding) || scope.isBoxingCompatibleWith(this.binding, other.binding);
    } catch (AbortCompilation e) {
      // don't surface internal exception to clients
      // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=143013
      return false;
    }
View Full Code Here

      Expression expression = new Expression() {
        public StringBuffer printExpression(int indent,StringBuffer output) {
          return null;
        }
      };
      Scope scope = this.resolver.scope();
      if (scope == null) return false;
      if (!(type instanceof TypeBinding)) return false;
      org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding expressionType = ((TypeBinding) type).binding;
      // simulate capture in case checked binding did not properly get extracted from a reference
      expressionType = expressionType.capture(scope, 0);
View Full Code Here

   
    List importedNamesList = new ArrayList();
    List importedPrefixesList = new ArrayList();
   
   
    Scope currentScope = scope;
    //add any enclosing types to this list
    while (!(currentScope instanceof CompilationUnitScope)) {
      if (currentScope == null) {
        throw new RuntimeException("unimplemented");
      }
View Full Code Here

TOP

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

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.