Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel
Class ChiselEngine  view ChiselEngine download ChiselEngine.java

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.trapezium.chisel.ChiselEngine
All Implemented Interfaces:
java.lang.Runnable

public class ChiselEngine
extends java.lang.Thread

Main class for command line version of Chisel.

Since:
1.0
Version:
1.0, 4 Dec 1998

Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  ChiselCommandList chiselCommandList
           
(package private)  boolean doGzip
           
(package private)  java.util.Vector filesToProcess
          files being viewed or processed
(package private)  java.lang.String outputDir
           
(package private)  boolean preserveNames
           
(package private)  boolean reformat
           
(package private)  ChiselSet[] sets
           
(package private)  boolean stripComments
           
(package private)  EngineRunner theDriver
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ChiselEngine(java.util.Vector filesToProcess, ChiselCommandList chiselCommandList, boolean doGzip, java.lang.String outputDir, boolean preserveNames, boolean stripComments, boolean reformat)
          Class constructor
 
Method Summary
(package private)  void doneCallback()
           
(package private)  void fixOutputDir()
          if outputDir exists, make sure it ends with a '/'
(package private)  java.lang.String getOutdirName(java.lang.String fileName)
          Get the name of a file by prepending output directory name, if any
 int getResult()
          result, exit with this
(package private)  void processFile(java.lang.String fileName, ChiselCommandList chiselCommandList)
          Process a single file
(package private)  void processUsing(ProcessedFile p, Optimizer chisel)
          Process a file with a single chisel
 void run()
          running thread
(package private)  void stripAndReformat(ProcessedFile p)
          Strip out all comments and/or reformat
(package private)  void waitTilDone()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filesToProcess

java.util.Vector filesToProcess
files being viewed or processed


sets

ChiselSet[] sets

chiselCommandList

ChiselCommandList chiselCommandList

theDriver

EngineRunner theDriver

doGzip

boolean doGzip

preserveNames

boolean preserveNames

outputDir

java.lang.String outputDir

stripComments

boolean stripComments

reformat

boolean reformat
Constructor Detail

ChiselEngine

public ChiselEngine(java.util.Vector filesToProcess,
                    ChiselCommandList chiselCommandList,
                    boolean doGzip,
                    java.lang.String outputDir,
                    boolean preserveNames,
                    boolean stripComments,
                    boolean reformat)
Class constructor

Method Detail

fixOutputDir

void fixOutputDir()
if outputDir exists, make sure it ends with a '/'


stripAndReformat

void stripAndReformat(ProcessedFile p)
Strip out all comments and/or reformat


run

public void run()
running thread


getResult

public int getResult()
result, exit with this


processFile

void processFile(java.lang.String fileName,
                 ChiselCommandList chiselCommandList)
Process a single file


getOutdirName

java.lang.String getOutdirName(java.lang.String fileName)
Get the name of a file by prepending output directory name, if any


waitTilDone

void waitTilDone()

doneCallback

void doneCallback()

processUsing

void processUsing(ProcessedFile p,
                  Optimizer chisel)
Process a file with a single chisel