Class AbstractCompiler

java.lang.Object
org.codehaus.commons.compiler.AbstractCompiler
All Implemented Interfaces:
ICompiler
Direct Known Subclasses:
Compiler, Compiler

public abstract class AbstractCompiler extends Object implements ICompiler
A base class and wrapper for
invalid reference
Compiler
that implements all redundant API methods.
  • Field Details

    • disassembleClassFilesToStdout

      private static final boolean disassembleClassFilesToStdout
    • disassembleClassNames

      private static final Pattern disassembleClassNames
    • sourceFinder

      protected ResourceFinder sourceFinder
      Implements the JAVAC -sourcepath option.
    • classFileFinder

      protected ResourceFinder classFileFinder
      Implements the "read side" of the JAVAC -d option.
    • classFileCreator

      protected ResourceCreator classFileCreator
      Implements the "write side" of the JAVAC -d option.
    • sourceCharset

      public Charset sourceCharset
      Implements the JAVAC -encoding option.
    • debugSource

      protected boolean debugSource
      Implements the JAVAC -g:source option.
    • debugLines

      protected boolean debugLines
      Implements the JAVAC -g:lines option.
    • debugVars

      protected boolean debugVars
      Implements the JAVAC -g:vars option.
    • sourceVersion

      protected int sourceVersion
    • targetVersion

      protected int targetVersion
    • extensionDirectories

      protected File[] extensionDirectories
      The list of extension directories of the currently executing JRE. Empty for Java 9+, because the system property "java.ext.dirs" is not set in JRE 9+.
    • classPath

      protected File[] classPath
      The classpath of the currently executing JRE.
    • bootClassPath

      @Nullable protected File[] bootClassPath
      This is always non-null for JVMs that support BOOTCLASSPATH (1.0-1.8), and this is always null for JVMs that don't (9+).
    • compileErrorHandler

      @Nullable protected ErrorHandler compileErrorHandler
      Stores the value configured with setCompileErrorHandler(ErrorHandler).
    • warningHandler

      @Nullable protected WarningHandler warningHandler
      Stores the value configured with setWarningHandler(WarningHandler).
  • Constructor Details

    • AbstractCompiler

      public AbstractCompiler()
  • Method Details