sleep.parser
Class ParserConfig

java.lang.Object
  extended by sleep.parser.ParserConfig

public class ParserConfig
extends java.lang.Object


Constructor Summary
ParserConfig()
           
 
Method Summary
static void addKeyword(java.lang.String keyword)
          registers "keyword" as a keyword with the parser.
static java.io.File findJarFile(java.lang.String name)
          Search the sleep classpath for the specified file.
static java.lang.String getSleepClasspath()
          Query the Sleep classpath.
static void installEscapeConstant(char escape, java.lang.String value)
          Installs an escape constant into the sleep parser.
static void setSleepClasspath(java.lang.String path)
          Set the Sleep classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserConfig

public ParserConfig()
Method Detail

installEscapeConstant

public static void installEscapeConstant(char escape,
                                         java.lang.String value)
Installs an escape constant into the sleep parser. Any time the escape constant escape is encountered inside of a parsed literal with a \ backslash before it, sleep will substitute that string with the value specified here.


addKeyword

public static void addKeyword(java.lang.String keyword)
registers "keyword" as a keyword with the parser. This is a necessity if you have environment bridges in sleep


getSleepClasspath

public static java.lang.String getSleepClasspath()
Query the Sleep classpath. This is a semi-colon separated list of paths where sleep should search for jar files that scripts attempt to import


setSleepClasspath

public static void setSleepClasspath(java.lang.String path)
Set the Sleep classpath. A semi-colon separated list of paths where sleep should search for jar files that scripts attempt to import


findJarFile

public static java.io.File findJarFile(java.lang.String name)
Search the sleep classpath for the specified file. Returns a File object reflecting where the file was found. This method does not return null. If the file does not exist then a File object constructed with just the passed in name is returned