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

Examples of org.aspectj.org.eclipse.jdt.internal.core.SourceType


        parent = parent.getEnclosingType();
      }
      // compute parse tree for this most outer type
      CompilationResult result = new CompilationResult(outerType.getFileName(), 1, 1, this.compilerOptions.maxProblemsPerUnit);
      if (!(sourceType instanceof SourceTypeElementInfo)) return;
      SourceType typeHandle = (SourceType) ((SourceTypeElementInfo)sourceType).getHandle();
      int flags = SourceTypeConverter.FIELD_AND_METHOD | SourceTypeConverter.MEMBER_TYPE;
      if (typeHandle.isAnonymous() || typeHandle.isLocal())
        flags |= SourceTypeConverter.LOCAL_TYPE;
      CompilationUnitDeclaration parsedUnit =
        SourceTypeConverter.buildCompilationUnit(
            topLevelTypes,
            flags,
View Full Code Here


    try {
      // TypeConverter is used instead of SourceTypeConverter because the type
      // to convert can be a binary type or a source type
      TypeDeclaration typeDeclaration = null;
      if (type instanceof SourceType) {
        SourceType sourceType = (SourceType) type;
        ISourceType info = (ISourceType) sourceType.getElementInfo();
        compilationUnit = SourceTypeConverter.buildCompilationUnit(
          new ISourceType[] {info},//sourceTypes[0] is always toplevel here
          SourceTypeConverter.FIELD_AND_METHOD // need field and methods
          | SourceTypeConverter.MEMBER_TYPE, // need member types
          // no need for field initialization
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.SourceType

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.