Class CompilationUnitDeclaration

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode
org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration
All Implemented Interfaces:
ReferenceContext, TypeConstants, TypeIds, ProblemSeverities

public class CompilationUnitDeclaration extends ASTNode implements ProblemSeverities, ReferenceContext
  • Field Details

    • currentPackage

      public ImportReference currentPackage
    • imports

      public ImportReference[] imports
    • types

      public TypeDeclaration[] types
    • moduleDeclaration

      public ModuleDeclaration moduleDeclaration
    • comments

      public int[][] comments
    • ignoreFurtherInvestigation

      public boolean ignoreFurtherInvestigation
    • ignoreMethodBodies

      public boolean ignoreMethodBodies
    • scope

      public CompilationUnitScope scope
    • problemReporter

      public ProblemReporter problemReporter
    • compilationResult

      public CompilationResult compilationResult
    • localTypes

      public Map<Integer,LocalTypeBinding> localTypes
    • isPropagatingInnerClassEmulation

      public boolean isPropagatingInnerClassEmulation
    • javadoc

      public Javadoc javadoc
    • nlsTags

      public NLSTag[] nlsTags
    • validIdentityComparisonLines

      public boolean[] validIdentityComparisonLines
    • functionalExpressionsCount

      public int functionalExpressionsCount
    • functionalExpressions

      public FunctionalExpression[] functionalExpressions
  • Constructor Details

  • Method Details

    • abort

      public void abort(int abortLevel, CategorizedProblem problem)
      Specified by:
      abort in interface ReferenceContext
    • analyseCode

      public void analyseCode()
    • cleanUp

      public void cleanUp()
    • checkUnusedImports

      public void checkUnusedImports()
    • compilationResult

      public CompilationResult compilationResult()
      Specified by:
      compilationResult in interface ReferenceContext
    • createPackageInfoType

      public void createPackageInfoType()
    • declarationOfType

      public TypeDeclaration declarationOfType(char[][] typeName)
    • finalizeProblems

      public void finalizeProblems()
    • generateCode

      public void generateCode()
      Bytecode generation
    • getCompilationUnitDeclaration

      public CompilationUnitDeclaration getCompilationUnitDeclaration()
      Specified by:
      getCompilationUnitDeclaration in interface ReferenceContext
    • getFileName

      public char[] getFileName()
    • getMainTypeName

      public char[] getMainTypeName()
    • isEmpty

      public boolean isEmpty()
    • isPackageInfo

      public boolean isPackageInfo()
    • isModuleInfo

      public boolean isModuleInfo()
    • isSimpleCompilationUnit

      public boolean isSimpleCompilationUnit()
    • isSuppressed

      public boolean isSuppressed(CategorizedProblem problem)
    • hasFunctionalTypes

      public boolean hasFunctionalTypes()
    • hasErrors

      public boolean hasErrors()
      Specified by:
      hasErrors in interface ReferenceContext
    • print

      public StringBuilder print(int indent, StringBuilder output)
      Specified by:
      print in class ASTNode
    • propagateInnerEmulationForAllLocalTypes

      public void propagateInnerEmulationForAllLocalTypes()
    • recordStringLiteral

      public void recordStringLiteral(StringLiteral literal, boolean fromRecovery)
    • recordSuppressWarnings

      public void recordSuppressWarnings(IrritantSet irritants, Annotation annotation, int scopeStart, int scopeEnd, ReferenceContext context)
    • record

      public void record(LocalTypeBinding localType)
    • updateLocalTypesInMethod

      public void updateLocalTypesInMethod(MethodBinding methodBinding)
    • record

      public int record(FunctionalExpression expression)
    • resolve

      public void resolve()
    • tagAsHavingErrors

      public void tagAsHavingErrors()
      Specified by:
      tagAsHavingErrors in interface ReferenceContext
    • traverse

      public void traverse(ASTVisitor visitor, CompilationUnitScope unitScope)
    • traverse

      public void traverse(ASTVisitor visitor, CompilationUnitScope unitScope, boolean skipOnError)
    • module

      public ModuleBinding module(LookupEnvironment environment)