EndOfTerm
public char EndOfTerm
classes
protected HashMap classes
code
protected String code
comments
protected LinkedList comments
an identifier for the script file.
errors
protected LinkedList errors
a list of all of the comments from the script file
executeMe
protected Block executeMe
a list of all of the statements
imports
protected Map imports
jars
protected HashMap jars
name
protected String name
the actual "code" for the script file.
statements
protected LinkedList statements
tokens
protected TokenList tokens
a list of all of the parser warnings
warnings
protected LinkedList warnings
a list of all of the parser errors
addComment
public void addComment(String text)
addStatement
public void addStatement(Statement state)
findImportedClass
public Class findImportedClass(String name)
getName
public String getName()
returns the identifier representing the source of the script we're parsing
getRunnableBlock
public Block getRunnableBlock()
getStatements
public LinkedList getStatements()
hasErrors
public boolean hasErrors()
hasWarnings
public boolean hasWarnings()
importPackage
public File importPackage(String packagez,
String from)
Used by hoes to import package names...
main
public static void main(args[] )
reportError
public void reportError(String description,
Token responsible)
reportErrorWithMarker
public void reportErrorWithMarker(String description,
Token responsible)
reportWarning
public void reportWarning(String description,
Token responsible)
setEndOfTerm
public void setEndOfTerm(char c)