mjc

org.multijava.mjc
Class CTopLevel.CTopLevel$1

java.lang.Object
  extended byorg.multijava.util.Utils
      extended byorg.multijava.util.compiler.Compiler
          extended byorg.multijava.mjc.Main
              extended byorg.multijava.mjc.CTopLevel.CTopLevel$1
All Implemented Interfaces:
Cloneable, TroubleReporter
Enclosing class:
CTopLevel

static class CTopLevel.CTopLevel$1
extends Main


Nested Class Summary
 
Nested classes inherited from class org.multijava.mjc.Main
Main.CheckInitializerTask, Main.CheckInterfaceTask, Main.ContextBehavior, Main.DFilter, Main.ExpectedGF, Main.ExpectedIndifferent, Main.ExpectedResult, Main.ExpectedType, Main.Filter, Main.ParseTask, Main.PreprocessTask, Main.PrettyPrintTask, Main.ResolveSpecializerTask, Main.ResolveTopMethodTask, Main.Task, Main.TaskTimes, Main.TranslateMJTask, Main.TreeProcessingTask, Main.Trees, Main.TypecheckTask
 
Field Summary
 
Fields inherited from class org.multijava.mjc.Main
activeSequenceID, activeTaskPriority, allowUniverseAnnotations, allowUniverseBytecode, allowUniverseChecks, allowUniverseDynChecks, allowUniverseKeywords, allowUniversePurity, appName, classes, codeGenNeeded, contextsCreated, destination, errorFound, errorLimit, filesFound, mostSevereWarningIssued, options, parseJavadoc, PRI_CHECK_INITIALIZER, PRI_CHECK_INTERFACE, PRI_PARSE, PRI_PREPROCESS, PRI_PRETTY_PRINT, PRI_RESOLVE_SPECIALIZER, PRI_TOP_METHODS, PRI_TRANSLATE_MJ, PRI_TYPECHECK, taskQueue, uncheckedWarningsIssued, UNIVERSE_ANNOTATIONS, UNIVERSE_BYTECODE, UNIVERSE_CHECKS, UNIVERSE_DYNCHECKS, UNIVERSE_FULL, UNIVERSE_NO, UNIVERSE_PARSE, UNIVERSE_PURITY, universeVersion
 
Fields inherited from class org.multijava.util.compiler.Compiler
PRINT_TO_ERR, PRINT_TO_OUT
 
Fields inherited from class org.multijava.util.Utils
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO
 
Constructor Summary
(package private) CTopLevel.CTopLevel$1()
           
 
Method Summary
 void catchUp(File file)
          Compiles the named file (using the options of the current compilation session) up to the same compilation pass as the currently active task in the task queue.
 void catchUp(JTypeDeclarationType decl)
          Compiles the given AST (using the options of the current compilation session) up to the same compilation pass as the currently active task in the task queue.
 boolean parseComments()
          Returns true iff comments should be parsed (false if to be skipped)
 void reportTrouble(Exception a)
          Reports a trouble (error or warning).
 boolean run(String[] args)
          Runs a compilation session
 boolean verboseMode()
           
 
Methods inherited from class org.multijava.mjc.Main
activeSequenceID, adoptCompilationUnitContext, bugReportBoilerplate, bugReportProperty, bugReportRequest, catchUpGF, catchUpType, checkPackageName, classToGenerate, compile, compile, contextBehavior, createCompilationUnitContext, createTaskAfter, currentlyParsingFor, expandAtFiles, experimentalArrayHandling, failedParsing, filenameFilter, firstCheckingTask, firstTask, firstTask, genCode, Generic, Generic, getClasses, getDefaultFilter, getFilter, getOptionsInstance, getWarningFilterNameFromOptions, handleDirectories, handleNonOptions, handlePackageName, handlePackages, hasAlreadyFailedToParseFor, hasAlreadySuccessfullyParsed, initialize, initSession, initSession, interruptCompilation, isAnExpectedResult, isCurrentlyParsingFor, main, mainSequenceID, makeOptionsInstance, nonNullTypes, noteError, optimizeCode, options, parseArguments, parseAtFile, prettyPrint, processTaskQueue, quietMode, RecommendedWarning, reportTroubleFiltered, RMJ, run, runCompilation, runInitialization, runParser, runSetInitialTasks, safeMath, setAllowUniverses, setContextBehavior, setMainSequenceID, setUniverseChecks, setUniversePurity, subdirectoryFilter, successfullyParsed, suppressWarning, taskQueueEmptied, universeBytecode, universeBytecodeAnnotations, universeChecks, universeDynChecks, universeKeywords, universePurity, universeVersion, validPackageName
 
Methods inherited from class org.multijava.util.compiler.Compiler
getTimestamp, inform, inform, inform, inform, inform, inform, inform, inform, inform, modUtil, run, setOutputStream, verifyFiles, verifyFiles
 
Methods inherited from class org.multijava.util.Utils
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CTopLevel.CTopLevel$1

CTopLevel.CTopLevel$1()
Method Detail

run

public boolean run(String[] args)
Description copied from class: Main
Runs a compilation session

Overrides:
run in class Main

reportTrouble

public void reportTrouble(Exception a)
Description copied from class: Main
Reports a trouble (error or warning). All error and warning output should go through this method so that subclasses can handle such output as they see fit (it is best if all output other than the progress output that is shut off by -quiet go through here - no direct uses of System.out).

Specified by:
reportTrouble in interface TroubleReporter
Overrides:
reportTrouble in class Main
Parameters:
a - a description of the trouble to report.

parseComments

public boolean parseComments()
Description copied from class: Main
Returns true iff comments should be parsed (false if to be skipped)

Overrides:
parseComments in class Main

verboseMode

public boolean verboseMode()
Description copied from class: Compiler
Returns true iff compilation runs in verbose mode.

Overrides:
verboseMode in class Main

catchUp

public void catchUp(File file)
Description copied from class: Main
Compiles the named file (using the options of the current compilation session) up to the same compilation pass as the currently active task in the task queue. Adds the result to the set of compilation units to be processed to completion.

Overrides:
catchUp in class Main

catchUp

public void catchUp(JTypeDeclarationType decl)
Description copied from class: Main

Compiles the given AST (using the options of the current compilation session) up to the same compilation pass as the currently active task in the task queue. Adds the result to the set of compilation units to be processed to completion.

Since in this statically overloaded method the argument is an AST for a type declaration some of the initial passes are skipped.

This entry point is accessed for compiling type declaration statements and anonymous class instantiation expressions.

Overrides:
catchUp in class Main

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.