edu.upc.dama.dex.script
Class ScriptParser
java.lang.Object
edu.upc.dama.dex.script.ScriptParser
- All Implemented Interfaces:
- ScriptParserConstants
public class ScriptParser
- extends java.lang.Object
- implements ScriptParserConstants
- Author:
- Sparsity Technologies
| Fields inherited from interface edu.upc.dama.dex.script.ScriptParserConstants |
ALLOWMULTILINES, ASTERISK, ATTRIBUTE, BASIC, BOOL, CHAR_QUOTED, CLOSE, COLUMNS, COMA, CREATE, DBGRAPH, DEFAULT, DIGIT, DOUBLE, DROP, EDGE, EDGES, ELEM, EOF, FIELDS, FORMAT, FROM, HEAD, IGNORE, IN_COMMENT, INDEX, INDEXED, INT, INTO, LETTER, LOAD, LOCALE, LONG, MATERIALIZE, MAX, MODE, NAME, NEIGHBORS, NODE, NODES, NUMBER, OPEN, PARTITIONS, QUOTECHAR, RELATIONSHIP, ROWS, SEPARATOR, SET, SPLIT, STR, STRING, TAIL, TEXT, TIMESTAMP, TO, tokenImage, UNDIRECTED, UNIQUE, UPDATE, USE, VIRTUAL, WHERE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public ScriptParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
ScriptParser
public ScriptParser(DEX dex,
java.io.Reader reader)
ScriptParser
public ScriptParser(java.io.InputStream stream)
ScriptParser
public ScriptParser(java.io.InputStream stream,
java.lang.String encoding)
ScriptParser
public ScriptParser(java.io.Reader stream)
ScriptParser
public ScriptParser(ScriptParserTokenManager tm)
close
public void close()
main
public static void main(java.lang.String[] args)
parse
public void parse(boolean execution)
throws java.lang.Exception
- Parses a script from the reader
- Parameters:
execution - If true the script is parsed and
execute, otherwise just a validation of the sintax is performed.
- Throws:
java.lang.Exception
Script
public final void Script(boolean execution)
throws ParseException,
java.lang.Exception
- Throws:
ParseException
java.lang.Exception
Drop
public final void Drop(boolean execution)
throws ParseException
- Throws:
ParseException
Index
public final void Index(boolean execution)
throws ParseException
- Throws:
ParseException
Load
public final void Load(boolean execution)
throws ParseException,
java.io.IOException
- Throws:
ParseException
java.io.IOException
Attributes
public final void Attributes(ScriptParser.Attributes attrs)
throws ParseException
- Throws:
ParseException
AttributeKind
public final java.lang.Short AttributeKind()
throws ParseException
- Throws:
ParseException
Attribute
public final void Attribute(ScriptParser.Attributes attrs)
throws ParseException
- Throws:
ParseException
CreateNode
public final ScriptParser.Element CreateNode(boolean execution)
throws ParseException
- Throws:
ParseException
CreateEdge
public final ScriptParser.Element CreateEdge(boolean execution)
throws ParseException
- Throws:
ParseException
Number
public final java.lang.String Number()
throws ParseException
- Throws:
ParseException
Char
public final char Char()
throws ParseException
- Throws:
ParseException
Identifier
public final java.lang.String Identifier()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(ScriptParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()