Class BatchEnvironment

java.lang.Object
org.glassfish.rmic.tools.java.Environment
org.glassfish.rmic.tools.javac.BatchEnvironment
All Implemented Interfaces:
Constants, RuntimeConstants, ErrorConsumer
Direct Known Subclasses:
BatchEnvironment

public class BatchEnvironment extends Environment implements ErrorConsumer
Main environment of the batch version of the Java compiler, this needs more work. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
  • Field Details

    • USE_LEGACY_PARSING_PROPERTY

      private static final String USE_LEGACY_PARSING_PROPERTY
      See Also:
    • JAVA_VERSION_PROPERTY

      private static final String JAVA_VERSION_PROPERTY
      See Also:
    • ASM_ONLY_JAVA_VERSION

      private static final int ASM_ONLY_JAVA_VERSION
      See Also:
    • classDefinitionFactory

      private static final ClassDefinitionFactory classDefinitionFactory
    • out

      private OutputStream out
      The stream where error message are printed.
    • binaryPath

      protected ClassPath binaryPath
      The path we use for finding class (binary) files.
    • packages

      private Hashtable<Identifier,Package> packages
      A hashtable of resource contexts.
    • classesOrdered

      private Vector<ClassDeclaration> classesOrdered
      The classes, in order of appearance.
    • classes

      private Hashtable<Type,ClassDeclaration> classes
      The classes, keyed by ClassDeclaration.
    • flags

      public int flags
      flags
    • majorVersion

      public short majorVersion
      Major and minor versions to use for generated class files. Environments that extend BatchEnvironment (such as javadoc's Env class) get the default values below. javac itself may override these versions with values determined from the command line "-target" option.
    • minorVersion

      public short minorVersion
    • covFile

      private File covFile
      coverage data file
    • nerrors

      public int nerrors
      The number of errors and warnings
    • nwarnings

      public int nwarnings
    • ndeprecations

      private int ndeprecations
    • deprecationFiles

      private Vector<Object> deprecationFiles
      A list of files containing deprecation warnings.
    • errorConsumer

      private ErrorConsumer errorConsumer
      writes out error messages
    • exemptPackages

      private Set<Identifier> exemptPackages
      A set of Identifiers for all packages exempt from the "exists" check in Imports#resolve(). These are the current packages for all classes being compiled as of the first call to isExemptPackage.
    • errorFileName

      private String errorFileName
      The filename where the last errors have occurred
    • errors

      private ErrorMessage errors
      List of outstanding error messages
    • errorsPushed

      private int errorsPushed
    • errorLimit

      private int errorLimit
      Maximum number of errors to print.
    • hitErrorLimit

      private boolean hitErrorLimit
  • Constructor Details

  • Method Details