|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.orizon.mirage.php.parser.PhpParser
public class PhpParser
Field Summary | |
---|---|
PhpLexer |
token_source
Generated Lexer. |
Constructor Summary | |
---|---|
PhpParser(PhpLexer tm)
Constructor with generated Token Manager. |
|
PhpParser(java.io.Reader stream)
|
Method Summary | |
---|---|
void |
AdditiveExpression()
|
void |
ArgumentExpressionList()
|
void |
ArrayLiteral()
|
void |
AssignmentExpression()
|
void |
AssignmentOperator()
|
void |
BitwiseAndExpression()
|
void |
BitwiseOrExpression()
|
void |
BitwiseXorExpression()
|
void |
CastExpression()
|
void |
ClassDeclaration()
|
void |
ClassInstantiation()
|
void |
ClassMembers()
|
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 |
CompoundStatement()
|
void |
ConditionalExpression()
|
void |
Constant()
|
void |
DefineStatement()
|
void |
disable_tracing()
Disable tracing. |
void |
DoubleStringLiteral()
|
void |
EchoStatement()
|
void |
EmbeddedHtml()
|
void |
enable_tracing()
Enable tracing. |
void |
EndOfStatement()
|
void |
EqualityExpression()
|
void |
Expression()
|
void |
ExpressionStatement()
|
ParseException |
generateParseException()
|
boolean |
getBuildTree()
|
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
void |
HtmlBlock()
|
void |
IncludeStatement()
|
void |
IncludeStatementEx()
|
void |
InstanceOfExpression()
|
void |
InterfaceDeclaration()
|
void |
InterfaceMember()
|
void |
InterfaceMembers()
|
void |
IterationStatement()
|
void |
JumpStatement()
|
void |
LabeledStatement()
|
void |
Logical_And_Expression()
|
void |
Logical_Or_Expression()
|
void |
LogicalTextAndExpression()
|
void |
LogicalTextOrExpression()
|
void |
LogicalTextXorExpression()
|
void |
MemberDeclaration()
|
void |
MultiplicativeExpression()
|
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 |
openNodeScope(Node n)
|
void |
Parameter()
|
void |
ParameterList()
|
Node |
peekNode()
Returns the node currently on the top of the stack. |
void |
PhpPage()
|
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 |
PostfixExpression()
|
void |
PostfixIncDecExpression()
|
void |
PrefixIncDecExpression()
|
void |
PrimaryExpression()
|
void |
pushNode(Node n)
push a node onto the top of the node stack |
void |
RelationalExpression()
|
void |
ReturnStatement()
|
Node |
rootNode()
Returns the root node of the AST. |
void |
SelectionStatement()
|
void |
setBuildTree(boolean buildTree)
|
void |
setInputSource(java.lang.String inputSource)
|
void |
ShiftExpression()
|
void |
Statement()
|
void |
StringLiteral()
|
void |
ThrowStatement()
|
void |
TryBlock()
|
void |
UnaryExpression()
|
void |
Variable()
|
void |
Visibility()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public PhpLexer token_source
Constructor Detail |
---|
public PhpParser(java.io.Reader stream)
public PhpParser(PhpLexer 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 PhpPage() throws ParseException
ParseException
public final void HtmlBlock() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void ThrowStatement() throws ParseException
ParseException
public final void TryBlock() throws ParseException
ParseException
public final void EndOfStatement() throws ParseException
ParseException
public final void EmbeddedHtml() throws ParseException
ParseException
public final void DefineStatement() throws ParseException
ParseException
public final void LabeledStatement() throws ParseException
ParseException
public final void ExpressionStatement() throws ParseException
ParseException
public final void CompoundStatement() throws ParseException
ParseException
public final void SelectionStatement() throws ParseException
ParseException
public final void IterationStatement() throws ParseException
ParseException
public final void JumpStatement() throws ParseException
ParseException
public final void ParameterList() throws ParseException
ParseException
public final void Parameter() throws ParseException
ParseException
public final void ClassDeclaration() throws ParseException
ParseException
public final void ClassMembers() throws ParseException
ParseException
public final void MemberDeclaration() throws ParseException
ParseException
public final void InterfaceDeclaration() throws ParseException
ParseException
public final void InterfaceMembers() throws ParseException
ParseException
public final void InterfaceMember() throws ParseException
ParseException
public final void IncludeStatement() throws ParseException
ParseException
public final void IncludeStatementEx() throws ParseException
ParseException
public final void ReturnStatement() throws ParseException
ParseException
public final void EchoStatement() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void LogicalTextOrExpression() throws ParseException
ParseException
public final void LogicalTextXorExpression() throws ParseException
ParseException
public final void LogicalTextAndExpression() throws ParseException
ParseException
public final void AssignmentExpression() throws ParseException
ParseException
public final void AssignmentOperator() throws ParseException
ParseException
public final void ConditionalExpression() throws ParseException
ParseException
public final void Logical_Or_Expression() throws ParseException
ParseException
public final void Logical_And_Expression() throws ParseException
ParseException
public final void BitwiseOrExpression() throws ParseException
ParseException
public final void BitwiseXorExpression() throws ParseException
ParseException
public final void BitwiseAndExpression() throws ParseException
ParseException
public final void EqualityExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void ShiftExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void CastExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void PrefixIncDecExpression() throws ParseException
ParseException
public final void PostfixIncDecExpression() throws ParseException
ParseException
public final void InstanceOfExpression() throws ParseException
ParseException
public final void PostfixExpression() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void ArrayLiteral() throws ParseException
ParseException
public final void ClassInstantiation() throws ParseException
ParseException
public final void Variable() throws ParseException
ParseException
public final void ArgumentExpressionList() throws ParseException
ParseException
public final void Constant() throws ParseException
ParseException
public final void StringLiteral() throws ParseException
ParseException
public final void DoubleStringLiteral() throws ParseException
ParseException
public final void Visibility() throws ParseException
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |