|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.orizon.mirage.parser.MirageParser
public class MirageParser
Field Summary | |
---|---|
MirageLexer |
token_source
Generated Lexer. |
Fields inherited from interface org.owasp.orizon.mirage.parser.MirageConstants |
---|
COMMAND, DEFAULT, DUMP, DUMPCOMMAND, EOF, ERRORS, FILENAME, IDENTS, INCLS, INFO, INFOCOMMAND, LIST, LISTCOMMAND, MODEL, MODELCOMMAND, NL, NOCOMMAND, nodeNames, OPEN, OPENCOMMAND, PARSE, QUIT, QUITCOMMAND, SEARCH, SEARCHCOMMAND, SHOW, SHOWCOMMAND, tokenImage, VARS |
Constructor Summary | |
---|---|
MirageParser(MirageLexer tm)
Constructor with generated Token Manager. |
|
MirageParser(java.io.Reader stream)
|
Method Summary | |
---|---|
void |
clearNodeScope()
|
void |
closeNodeScope(Node n,
boolean condition)
A conditional node is constructed if its condition is true. |
void |
closeNodeScope(Node n,
int num)
|
void |
Command()
|
void |
disable_tracing()
Disable tracing. |
void |
DumpCommand()
|
void |
enable_tracing()
Enable tracing. |
ParseException |
generateParseException()
|
boolean |
getBuildTree()
|
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
void |
InfoCommand()
|
void |
ListCommand()
|
void |
ModelCommand()
|
void |
NoCommand()
|
int |
nodeArity()
Returns the number of children on the stack in the current node scope. |
boolean |
nodeCreated()
Determines whether the current node was actually closed and pushed. |
void |
OpenCommand()
|
void |
openNodeScope(Node n)
|
Node |
peekNode()
Returns the node currently on the top of the stack. |
void |
pokeNode(Node n)
Puts the node on the top of the stack. |
void |
pokeNode(Node n,
boolean clearNodeScope)
Puts the node on the top of the stack. |
Node |
popNode()
Returns the node on the top of the stack, and remove it from the stack. |
void |
pushNode(Node n)
push a node onto the top of the node stack |
void |
QuitCommand()
|
Node |
rootNode()
Returns the root node of the AST. |
void |
SearchCommand()
|
void |
setBuildTree(boolean buildTree)
|
void |
setInputSource(java.lang.String inputSource)
|
void |
ShowCommand()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MirageLexer token_source
Constructor Detail |
---|
public MirageParser(java.io.Reader stream)
public MirageParser(MirageLexer tm)
Method Detail |
---|
public boolean nodeCreated()
public Node rootNode()
public void pushNode(Node n)
public Node popNode()
public Node peekNode()
public void pokeNode(Node n)
public void pokeNode(Node n, boolean clearNodeScope)
public int nodeArity()
public void clearNodeScope()
public void openNodeScope(Node n)
public void closeNodeScope(Node n, int num)
public void closeNodeScope(Node n, boolean condition)
public boolean getBuildTree()
public void setBuildTree(boolean buildTree)
public void setInputSource(java.lang.String inputSource)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
public final void Command() throws ParseException
ParseException
public final void ModelCommand() throws ParseException
ParseException
public final void OpenCommand() throws ParseException
ParseException
public final void SearchCommand() throws ParseException
ParseException
public final void QuitCommand() throws ParseException
ParseException
public final void InfoCommand() throws ParseException
ParseException
public final void NoCommand() throws ParseException
ParseException
public final void ShowCommand() throws ParseException
ParseException
public final void DumpCommand() throws ParseException
ParseException
public final void ListCommand() throws ParseException
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |