org.jactr.io
Class IOUtilities

java.lang.Object
  extended by org.jactr.io.IOUtilities

public class IOUtilities
extends java.lang.Object

convenience utilities for the lazy

Author:
developer

Constructor Summary
IOUtilities()
           
 
Method Summary
static boolean compileModelDescriptor(org.antlr.runtime.tree.CommonTree modelDescriptor, java.util.Collection<java.lang.Exception> warnings, java.util.Collection<java.lang.Exception> errors)
          attempt to compile the model
static org.jactr.core.model.IModel constructModel(org.antlr.runtime.tree.CommonTree modelDescriptor, java.util.Collection<java.lang.Exception> warnings, java.util.Collection<java.lang.Exception> errors)
          construct the described model
static org.antlr.runtime.tree.CommonTree createModelDescriptor(java.lang.String modelName)
           
static org.antlr.runtime.tree.CommonTree createModelDescriptor(java.lang.String modelName, boolean installModules)
           
static org.antlr.runtime.tree.CommonTree loadModelFile(java.lang.String modelFile, java.util.Collection<java.lang.Exception> warnings, java.util.Collection<java.lang.Exception> errors)
           
static org.antlr.runtime.tree.CommonTree loadModelFile(java.net.URL modelFileLocation, java.util.Collection<java.lang.Exception> warnings, java.util.Collection<java.lang.Exception> errors)
          load the specified model file and store any and all warnings and exceptions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtilities

public IOUtilities()
Method Detail

createModelDescriptor

public static org.antlr.runtime.tree.CommonTree createModelDescriptor(java.lang.String modelName)

createModelDescriptor

public static org.antlr.runtime.tree.CommonTree createModelDescriptor(java.lang.String modelName,
                                                                      boolean installModules)

loadModelFile

public static org.antlr.runtime.tree.CommonTree loadModelFile(java.lang.String modelFile,
                                                              java.util.Collection<java.lang.Exception> warnings,
                                                              java.util.Collection<java.lang.Exception> errors)
                                                       throws java.io.IOException
Throws:
java.io.IOException

loadModelFile

public static org.antlr.runtime.tree.CommonTree loadModelFile(java.net.URL modelFileLocation,
                                                              java.util.Collection<java.lang.Exception> warnings,
                                                              java.util.Collection<java.lang.Exception> errors)
                                                       throws java.io.IOException
load the specified model file and store any and all warnings and exceptions

Parameters:
modelFileLocation -
warnings -
errors -
Returns:
null if a critical error occured
Throws:
java.io.IOException

compileModelDescriptor

public static boolean compileModelDescriptor(org.antlr.runtime.tree.CommonTree modelDescriptor,
                                             java.util.Collection<java.lang.Exception> warnings,
                                             java.util.Collection<java.lang.Exception> errors)
attempt to compile the model

Parameters:
modelDescriptor -
warnings -
errors -
Returns:
true if there are no compilation errors

constructModel

public static org.jactr.core.model.IModel constructModel(org.antlr.runtime.tree.CommonTree modelDescriptor,
                                                         java.util.Collection<java.lang.Exception> warnings,
                                                         java.util.Collection<java.lang.Exception> errors)
construct the described model

Parameters:
modelDescriptor -
Returns:
Throws:
BuilderException