Package org.aspectj.org.eclipse.jdt.internal.core.util

Examples of org.aspectj.org.eclipse.jdt.internal.core.util.ASTNodeFinder


        if(DEBUG) {
          System.out.println("SELECTION - Diet AST :"); //$NON-NLS-1$
          System.out.println(parsedUnit.toString());
        }
        // find the type declaration that corresponds to the original source type
        TypeDeclaration typeDecl = new ASTNodeFinder(parsedUnit).findType(typeHandle);

        if (typeDecl != null) {

          // add fake field with the type we're looking for
          // note: since we didn't ask for fields above, there is no field defined yet
View Full Code Here


        char[] fullyQualifiedName = focus.getFullyQualifiedName().toCharArray();
        setFocusType(CharOperation.splitOn('.', fullyQualifiedName));
      } else {
        // anonymous or local type
        if (parsedUnit != null) {
          TypeDeclaration typeDecl = new ASTNodeFinder(parsedUnit).findType(focus);
          if (typeDecl != null) {
            this.focusType = typeDecl.binding;
          }
        }
      }
View Full Code Here

        ICompilationUnit unit = this.type.getCompilationUnit();
        SourceType sourceType = (SourceType) this.type;
        boolean isTopLevelOrMember = sourceType.getOuterMostLocalContext() == null;
        CompilationUnitDeclaration parsedUnit = buildBindings(unit, isTopLevelOrMember);
        if (parsedUnit != null) {
          TypeDeclaration typeDecl = new ASTNodeFinder(parsedUnit).findType(this.type);
          if (typeDecl != null && typeDecl.binding != null)
            collectSuperTypeNames(typeDecl.binding);
        }
      }
    } catch (AbortCompilation e) {
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.util.ASTNodeFinder

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.