pnuts.compiler
Class CompileContext

java.lang.Object
  |
  +--pnuts.lang.Context
        |
        +--pnuts.compiler.CompileContext
All Implemented Interfaces:
java.lang.Cloneable

public class CompileContext
extends Context

This class is used with pnuts.compiler.Compiler class to compile Pnuts scripts.

See Also:
Compiler, Context

Fields inherited from class pnuts.lang.Context
autoloadTable, beginLine, defaultErrorStream, defaultOutputStream, defaultTerminalStream, depth, endLine, environment, importedFunctions, importEnv, loadingResource, provideTable, unitTable, usedPackage
 
Constructor Summary
CompileContext()
           
 
Method Summary
 java.lang.Object clone()
          Make a clone of the context
 ClassFile getClassFile()
          Get the primary class file
 java.util.Enumeration getClassFiles()
          Enumerate related class files.
 void write(java.io.DataOutputStream out)
           
 
Methods inherited from class pnuts.lang.Context
autoload, autoload, clone, close, defined, get, getClassLoader, getCurrentPackage, getErrorStream, getId, getName, getOutputStream, getPnutsImpl, getScriptSource, getTerminalStream, keys, onError, onExit, open, registerQuantityFactory, set, setClassLoader, setCurrentPackage, setErrorStream, setErrorStream, setName, setOutputStream, setOutputStream, setPnutsImpl, setTerminalStream, setTerminalStream, setValue, undefinedHook, updateLine, updateLine, usedPackages, usePackage
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompileContext

public CompileContext()
Method Detail

getClassFile

public ClassFile getClassFile()
Get the primary class file

getClassFiles

public java.util.Enumeration getClassFiles()
Enumerate related class files.

write

public void write(java.io.DataOutputStream out)
           throws java.io.IOException

clone

public java.lang.Object clone()
Description copied from class: Context
Make a clone of the context
Overrides:
clone in class Context