anvil.script
Class ModuleEnvelope

java.lang.Object
  |
  +--anvil.script.ModuleEnvelope

public class ModuleEnvelope
extends java.lang.Object

class ModuleEnvelope


Field Summary
protected  Address _address
           
protected  ModuleCache _cache
           
protected  java.lang.String _descriptor
           
protected  boolean _initialized
           
protected  long _lastModified
           
protected  ModuleStatement _script1
           
protected  CompiledModule _script2
           
protected  java.net.URL _url
           
protected  int _version
           
 
Constructor Summary
  ModuleEnvelope(ModuleCache cache, Address address, InputSource source)
           
protected ModuleEnvelope(ModuleCache cache, Address address, InputSource source, int version, boolean forceParsing)
           
 
Method Summary
protected  java.lang.String addTimestamp(java.lang.String mangled, long lastModified)
           
protected static void appendWithPrefix(java.lang.StringBuffer buffer, int i)
           
 void check(ErrorListener context)
           
 void compile(Smith smith)
           
 ModuleEnvelope forge()
           
 Address getAddress()
           
 java.lang.String getClassname()
           
 java.lang.String getDescriptor()
           
 long getLastModified()
           
 Module getModule()
           
 java.net.URL getURL()
           
 int getVersion()
           
 void importExternals(ErrorListener listener)
           
 void init(ErrorListener listener)
           
 boolean isCompiled()
           
 boolean loadClass()
           
 void parse(InputSource source)
           
 void resolve(Resolver resolver)
           
 void verifyPassOne(Verifier verifier)
           
 void verifyPassTwo(Verifier verifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cache

protected ModuleCache _cache

_url

protected java.net.URL _url

_address

protected Address _address

_lastModified

protected long _lastModified

_descriptor

protected java.lang.String _descriptor

_script1

protected ModuleStatement _script1

_script2

protected CompiledModule _script2

_version

protected int _version

_initialized

protected boolean _initialized
Constructor Detail

ModuleEnvelope

public ModuleEnvelope(ModuleCache cache,
                      Address address,
                      InputSource source)
               throws java.io.IOException,
                      ForgingException

ModuleEnvelope

protected ModuleEnvelope(ModuleCache cache,
                         Address address,
                         InputSource source,
                         int version,
                         boolean forceParsing)
                  throws java.io.IOException,
                         ForgingException
Method Detail

getLastModified

public long getLastModified()

getURL

public java.net.URL getURL()

getAddress

public Address getAddress()

getClassname

public java.lang.String getClassname()

getDescriptor

public java.lang.String getDescriptor()

getVersion

public int getVersion()

getModule

public Module getModule()

isCompiled

public boolean isCompiled()

parse

public void parse(InputSource source)
           throws java.io.IOException,
                  ForgingException
java.io.IOException
ForgingException

forge

public ModuleEnvelope forge()
                     throws java.io.IOException,
                            ForgingException
java.io.IOException
ForgingException

importExternals

public void importExternals(ErrorListener listener)

resolve

public void resolve(Resolver resolver)

verifyPassOne

public void verifyPassOne(Verifier verifier)

verifyPassTwo

public void verifyPassTwo(Verifier verifier)

check

public void check(ErrorListener context)

compile

public void compile(Smith smith)

loadClass

public boolean loadClass()

init

public void init(ErrorListener listener)

appendWithPrefix

protected static void appendWithPrefix(java.lang.StringBuffer buffer,
                                       int i)

addTimestamp

protected java.lang.String addTimestamp(java.lang.String mangled,
                                        long lastModified)