Module xl.compiler

Class CompilationUnit

java.lang.Object
de.grogra.xl.compiler.CompilationUnit

public final class CompilationUnit extends Object
A CompilationUnit is a simple collection of items which constitute the complete input of a single source file for the XL compiler.
Author:
Ole Kniemeyer
  • Method Details

    • forParsedSource

      public static CompilationUnit forParsedSource(ClassPath classPath, antlr.collections.AST tree, String source, RecognitionExceptionList problems, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations)
    • forXL16UBackendMigrationHandoff

      public static CompilationUnit forXL16UBackendMigrationHandoff(ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations, XL16UBackendMigrationHandoff handoff)
    • forXL16UDirectBackendHandoff

      public static CompilationUnit forXL16UDirectBackendHandoff(ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations, XL16UBackendMigrationHandoff handoff)
    • forCompiledJar

      public static CompilationUnit forCompiledJar(String source, byte[] code)
    • getTree

      public antlr.collections.AST getTree()
    • hasTree

      public boolean hasTree()
    • getClassPath

      public ClassPath getClassPath()
    • getSource

      public String getSource()
    • getProblems

      public RecognitionExceptionList getProblems()
    • getDefaultImports

      public Scope getDefaultImports()
    • getOptions

      public CompilerOptions getOptions()
    • getAnnotations

      public Annotation[] getAnnotations()
    • createCompilationUnitScope

      public CompilationUnitScope createCompilationUnitScope(Compiler compiler)
    • getCompatibilitySource

      public String getCompatibilitySource()
    • hasCompatibilitySource

      public boolean hasCompatibilitySource()
    • getXL16UCallableSignature

      public XL16UCallableSignature getXL16UCallableSignature(String name)
    • getXL16UCallableSignatures

      public List<XL16UCallableSignature> getXL16UCallableSignatures(String name)
    • getXL16USymbolMetadata

      public XL16USymbolMetadata getXL16USymbolMetadata(String symbolName)
    • getXL16UFrontendRoute

      public XL16UFrontendRouteGate.Route getXL16UFrontendRoute()
    • getXL16UFrontendRouteId

      public String getXL16UFrontendRouteId()
    • usesXL16UHandBuiltFrontendRoute

      public boolean usesXL16UHandBuiltFrontendRoute()
    • usesXL16UExperimentalAntlrFrontendRoute

      public boolean usesXL16UExperimentalAntlrFrontendRoute()
    • getXL16UFrontendParseSummary

      public XL16UFrontendParseSummary getXL16UFrontendParseSummary()
    • xl16uParsedBySelectedFrontend

      public boolean xl16uParsedBySelectedFrontend()
    • getXL16UFrontendParseTokenCount

      public int getXL16UFrontendParseTokenCount()
    • getXL16UFrontendParseDeclarationCount

      public int getXL16UFrontendParseDeclarationCount()
    • getXL16UFrontendParseCallableCount

      public int getXL16UFrontendParseCallableCount()
    • getXL16UFinalAstOwnedCodegenWriterTypedInputExecution

      public XL16UFinalAstOwnedCodegenWriterTypedInputExecution getXL16UFinalAstOwnedCodegenWriterTypedInputExecution()
    • hasXL16UFinalAstOwnedCodegenWriterTypedInputExecution

      public boolean hasXL16UFinalAstOwnedCodegenWriterTypedInputExecution()
    • xl16uFinalAstOwnedCodegenWriterTypedInputExecutionReady

      public boolean xl16uFinalAstOwnedCodegenWriterTypedInputExecutionReady()
    • getXL16UFinalAstOwnedCodegenWriterTypedInputExecutionCount

      public int getXL16UFinalAstOwnedCodegenWriterTypedInputExecutionCount()
    • getXL16USourceOwnedCodeGenerationBoundaryResult

      public XL16USourceOwnedLegacyCodeGenerationBoundaryResult getXL16USourceOwnedCodeGenerationBoundaryResult()
    • getXL16USourceOwnedLegacyCodeGenerationBoundaryResult

      @Deprecated public XL16USourceOwnedLegacyCodeGenerationBoundaryResult getXL16USourceOwnedLegacyCodeGenerationBoundaryResult()
      Deprecated.
    • hasXL16USourceOwnedCodeGenerationBoundaryResult

      public boolean hasXL16USourceOwnedCodeGenerationBoundaryResult()
    • hasXL16USourceOwnedLegacyCodeGenerationBoundaryResult

      @Deprecated public boolean hasXL16USourceOwnedLegacyCodeGenerationBoundaryResult()
      Deprecated.
    • getXL16USourceOwnedBackendConsumptionResult

      public XL16USourceOwnedLegacyBackendConsumptionResult getXL16USourceOwnedBackendConsumptionResult()
    • getXL16USourceOwnedLegacyBackendConsumptionResult

      @Deprecated public XL16USourceOwnedLegacyBackendConsumptionResult getXL16USourceOwnedLegacyBackendConsumptionResult()
      Deprecated.
    • hasXL16USourceOwnedBackendConsumptionResult

      public boolean hasXL16USourceOwnedBackendConsumptionResult()
    • hasXL16USourceOwnedLegacyBackendConsumptionResult

      @Deprecated public boolean hasXL16USourceOwnedLegacyBackendConsumptionResult()
      Deprecated.
    • getXL16USourceOwnedBackendConsumptionPlan

      public XL16USourceOwnedLegacyBackendConsumptionPlan getXL16USourceOwnedBackendConsumptionPlan()
    • getXL16USourceOwnedLegacyBackendConsumptionPlan

      @Deprecated public XL16USourceOwnedLegacyBackendConsumptionPlan getXL16USourceOwnedLegacyBackendConsumptionPlan()
      Deprecated.
    • hasXL16USourceOwnedBackendConsumptionPlan

      public boolean hasXL16USourceOwnedBackendConsumptionPlan()
    • hasXL16USourceOwnedLegacyBackendConsumptionPlan

      @Deprecated public boolean hasXL16USourceOwnedLegacyBackendConsumptionPlan()
      Deprecated.
    • xl16uUsesAstOwnedLegacyBackendConsumption

      public boolean xl16uUsesAstOwnedLegacyBackendConsumption()
    • xl16uUsesCompatibilitySourceFallbackForSourceOwnedBackend

      public boolean xl16uUsesCompatibilitySourceFallbackForSourceOwnedBackend()
    • xl16uUsesCompatibilitySourceFallbackForLegacyBackend

      @Deprecated public boolean xl16uUsesCompatibilitySourceFallbackForLegacyBackend()
      Deprecated.
    • consumedAllXL16USourceOwnedBackendBoundaryNodes

      public boolean consumedAllXL16USourceOwnedBackendBoundaryNodes()
    • consumedAllXL16USourceOwnedLegacyBackendBoundaryNodes

      @Deprecated public boolean consumedAllXL16USourceOwnedLegacyBackendBoundaryNodes()
      Deprecated.
    • xl16uSourceOwnedBackendConsumptionReady

      public boolean xl16uSourceOwnedBackendConsumptionReady()
    • xl16uSourceOwnedLegacyBackendConsumptionReady

      @Deprecated public boolean xl16uSourceOwnedLegacyBackendConsumptionReady()
      Deprecated.
    • hasXL16USourceOwnedCodeGenerationBoundaryWork

      public boolean hasXL16USourceOwnedCodeGenerationBoundaryWork()
    • hasXL16USourceOwnedLegacyCodeGenerationBoundaryWork

      @Deprecated public boolean hasXL16USourceOwnedLegacyCodeGenerationBoundaryWork()
      Deprecated.
    • xl16uSourceOwnedCodeGenerationBoundaryReady

      public boolean xl16uSourceOwnedCodeGenerationBoundaryReady()
    • xl16uSourceOwnedLegacyCodeGenerationBoundaryReady

      @Deprecated public boolean xl16uSourceOwnedLegacyCodeGenerationBoundaryReady()
      Deprecated.
    • xl16uSourceOwnedCodeGenerationRequiresCompatibilitySourceFallback

      public boolean xl16uSourceOwnedCodeGenerationRequiresCompatibilitySourceFallback()
    • xl16uSourceOwnedLegacyCodeGenerationRequiresCompatibilitySourceFallback

      @Deprecated public boolean xl16uSourceOwnedLegacyCodeGenerationRequiresCompatibilitySourceFallback()
      Deprecated.
    • getXL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult

      public XL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult getXL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult()
    • hasXL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult

      public boolean hasXL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult()
    • xl16uBackendRuntimeAstOwnedBridgeCallSiteReplacementReady

      public boolean xl16uBackendRuntimeAstOwnedBridgeCallSiteReplacementReady()
    • xl16uBackendRuntimeAstOwnedBridgeCallSiteReplacementRequiresCompatibilitySourceFallback

      public boolean xl16uBackendRuntimeAstOwnedBridgeCallSiteReplacementRequiresCompatibilitySourceFallback()
    • xl16uSemanticAstBytecodeCallSiteReplacementReady

      public boolean xl16uSemanticAstBytecodeCallSiteReplacementReady()
    • xl16uSemanticAstBytecodeCallSiteReplacementRequiresCompatibilitySourceFallback

      public boolean xl16uSemanticAstBytecodeCallSiteReplacementRequiresCompatibilitySourceFallback()
    • selectXL16USemanticAstBytecodeCallSitePath

      public XL16UBackendCallSitePath selectXL16USemanticAstBytecodeCallSitePath()
    • getSelectedXL16USemanticAstBytecodeCallSiteReplacement

      public XL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult.AstOwnedBridgeCallSiteReplacement getSelectedXL16USemanticAstBytecodeCallSiteReplacement()
    • xl16uSemanticEffectRuntimeCallSiteReplacementReady

      public boolean xl16uSemanticEffectRuntimeCallSiteReplacementReady()
    • xl16uSemanticEffectRuntimeCallSiteReplacementRequiresCompatibilitySourceFallback

      public boolean xl16uSemanticEffectRuntimeCallSiteReplacementRequiresCompatibilitySourceFallback()
    • selectXL16USemanticEffectRuntimeCallSitePath

      public XL16UBackendCallSitePath selectXL16USemanticEffectRuntimeCallSitePath()
    • getSelectedXL16USemanticEffectRuntimeCallSiteReplacement

      public XL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult.AstOwnedBridgeCallSiteReplacement getSelectedXL16USemanticEffectRuntimeCallSiteReplacement()
    • xl16uCommitTailRuntimeCallSiteReplacementReady

      public boolean xl16uCommitTailRuntimeCallSiteReplacementReady()
    • xl16uCommitTailRuntimeCallSiteReplacementRequiresCompatibilitySourceFallback

      public boolean xl16uCommitTailRuntimeCallSiteReplacementRequiresCompatibilitySourceFallback()
    • selectXL16UCommitTailRuntimeCallSitePath

      public XL16UBackendCallSitePath selectXL16UCommitTailRuntimeCallSitePath()
    • getSelectedXL16UCommitTailRuntimeCallSiteReplacement

      public XL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult.AstOwnedBridgeCallSiteReplacement getSelectedXL16UCommitTailRuntimeCallSiteReplacement()
    • getJarBytes

      public byte[] getJarBytes()
    • toString

      public String toString()
      Overrides:
      toString in class Object