org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.javascript15parser
Class JSParser15

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.javascript15parser.JSParser15
All Implemented Interfaces:
JSParser15Constants

public class JSParser15
extends Object
implements JSParser15Constants


Field Summary
protected  ProgramContextStack _contextStack
           
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 JSParser15TokenManager token_source
           
 
Fields inherited from interface org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.javascript15parser.JSParser15Constants
_DEFAULT, ANDASSIGN, ASSIGN, BANG, BIT_AND, BIT_OR, BREAK, CASE, CATCH, CLASS, COLON, COMMA, CONST, CONTINUE, DEBUGGER, DECIMAL_LITERAL, DECR, DEFAULT, DELETE, DIGIT, DO, DOT, ELSE, ENUM, EOF, EOL, EQ, ESCAPE_SEQUENCE, EXPONENT, EXPORT, EXTENDS, FALSE, FINALLY, FLOATING_POINT_LITERAL, FOR, FUNCTION, FUNCTION_, GE, GT, HEX_LITERAL, HOOK, IDENTIFIER, IDENTITYOPER, IF, IMPORT, IN, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, LBRACE, LBRACKET, LE, LETTER, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NE, NEW, NOTIDENTITYOPER, NULL, OCTAL_LITERAL, ORASSIGN, PLUS, PLUSASSIGN, RBRACE, RBRACKET, REGEX_END_CHAR, REGULAR_EXPRESSION, REGX_BODY_CHAR, REGX_BODY_CHAR_EXCLUSION, REGX_START_CHAR, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STRING_LITERAL, SUPER, SWITCH, THIS, THROW, TILDE, tokenImage, TRUE, TRY, TYPEOF, UNTERMINATED_STRING_LITERAL, VAR, VOID, WHILE, WITH, WS, XOR, XORASSIGN
 
Constructor Summary
JSParser15(InputStream stream)
           
JSParser15(JSParser15TokenManager tm)
           
JSParser15(Reader stream)
           
 
Method Summary
 void AdditiveExpression()
           
 void AddOp()
           
 void AllocationExpression()
           
 void AnonymousFunction()
           
 void ArgumentList()
           
 void Arguments()
           
 void ArrayLiteral()
           
 Token AssignementOperator()
           
 void AssignmentExpression()
           
 void AssignmentExpressionNoIN()
           
 void BitwiseANDExpression()
           
 void BitwiseANDExpressionNoIN()
           
 void BitwiseANDOp()
           
 void BitwiseORExpression()
           
 void BitwiseORExpressionNoIN()
           
 void BitwiseOROp()
           
 void BitwiseXORExpression()
           
 void BitwiseXORExpressionNoIN()
           
 void BitwiseXOROp()
           
 void Block(ProgramContext context)
           
 void BreakStatement()
           
 void CaseGroup()
           
 void CaseGuard()
           
 void ConditionalExpression()
           
 void ConditionalExpressionNoIN()
           
 void ContinueStatement()
           
 void disable_tracing()
           
 void DoStatement()
           
 void ElementList()
           
 void EmptyStatement()
           
 void enable_tracing()
           
 void EqualityExpression()
           
 void EqualityExpressionNoIN()
           
 void EqualOp()
           
 void Expression()
           
 void ExpressionNoIN()
           
 void ExpressionStatement()
           
 void FieldList()
           
 void ForInStatement()
           
 Vector FormalParameterList()
           
 void ForStatement()
           
 void ForVarInStatement()
           
 void ForVarStatement()
           
 void FunctionConstructor()
           
 void FunctionDeclaration()
           
 void FunctionLiteral()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 Token Identifier()
           
 void IfStatement()
           
 Token[] Initializer()
           
 void IterationStatement()
           
 void Literal()
           
 void LiteralArgumentList()
           
 void LiteralElement()
           
 void LiteralField()
           
 void LogicalANDExpression()
           
 void LogicalANDExpressionNoIN()
           
 void LogicalORExpression()
           
 void LogicalORExpressionNoIN()
           
 void MulOp()
           
 void MultiplicativeExpression()
           
 void NamedFunction()
           
 void NestedArrayLiteral()
           
 void NewSuffix()
           
 void ObjectLiteral()
           
 void PostfixExpression()
           
 void PostfixOp()
           
 void PrimaryExpression()
           
 void PrimarySuffix()
           
 Token Program()
           
 void ReInit(InputStream stream)
           
 void ReInit(JSParser15TokenManager tm)
           
 void ReInit(Reader stream)
           
 void RelationalExpression()
           
 void RelationalExpressionNoIN()
           
 void RelOp()
           
 void ReturnStatement()
           
 void ShiftExpression()
           
 void ShiftOp()
           
 void SourceElement()
           
 void Statement()
           
 void StatementList()
           
 void SwitchStatement()
           
 void ThrowStatement()
           
 void TryStatement()
           
 void UnaryExpression()
           
 void UnaryOp()
           
 void VariableDeclaration(Token varToken)
           
 void VariableDeclarationList(Token varToken)
           
 void VariableStatement()
           
 void WhileStatement()
           
 void WithStatement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_contextStack

protected ProgramContextStack _contextStack

token_source

public JSParser15TokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

JSParser15

public JSParser15(InputStream stream)

JSParser15

public JSParser15(Reader stream)

JSParser15

public JSParser15(JSParser15TokenManager tm)
Method Detail

Literal

public final void Literal()
                   throws ParseException
Throws:
ParseException

Identifier

public final Token Identifier()
                       throws ParseException
Throws:
ParseException

PrimaryExpression

public final void PrimaryExpression()
                             throws ParseException
Throws:
ParseException

PrimarySuffix

public final void PrimarySuffix()
                         throws ParseException
Throws:
ParseException

Arguments

public final void Arguments()
                     throws ParseException
Throws:
ParseException

ArgumentList

public final void ArgumentList()
                        throws ParseException
Throws:
ParseException

LiteralArgumentList

public final void LiteralArgumentList()
                               throws ParseException
Throws:
ParseException

NewSuffix

public final void NewSuffix()
                     throws ParseException
Throws:
ParseException

AllocationExpression

public final void AllocationExpression()
                                throws ParseException
Throws:
ParseException

PostfixOp

public final void PostfixOp()
                     throws ParseException
Throws:
ParseException

PostfixExpression

public final void PostfixExpression()
                             throws ParseException
Throws:
ParseException

UnaryOp

public final void UnaryOp()
                   throws ParseException
Throws:
ParseException

UnaryExpression

public final void UnaryExpression()
                           throws ParseException
Throws:
ParseException

MulOp

public final void MulOp()
                 throws ParseException
Throws:
ParseException

MultiplicativeExpression

public final void MultiplicativeExpression()
                                    throws ParseException
Throws:
ParseException

AddOp

public final void AddOp()
                 throws ParseException
Throws:
ParseException

AdditiveExpression

public final void AdditiveExpression()
                              throws ParseException
Throws:
ParseException

ShiftOp

public final void ShiftOp()
                   throws ParseException
Throws:
ParseException

ShiftExpression

public final void ShiftExpression()
                           throws ParseException
Throws:
ParseException

RelOp

public final void RelOp()
                 throws ParseException
Throws:
ParseException

RelationalExpression

public final void RelationalExpression()
                                throws ParseException
Throws:
ParseException

RelationalExpressionNoIN

public final void RelationalExpressionNoIN()
                                    throws ParseException
Throws:
ParseException

EqualOp

public final void EqualOp()
                   throws ParseException
Throws:
ParseException

EqualityExpression

public final void EqualityExpression()
                              throws ParseException
Throws:
ParseException

EqualityExpressionNoIN

public final void EqualityExpressionNoIN()
                                  throws ParseException
Throws:
ParseException

BitwiseANDOp

public final void BitwiseANDOp()
                        throws ParseException
Throws:
ParseException

BitwiseANDExpression

public final void BitwiseANDExpression()
                                throws ParseException
Throws:
ParseException

BitwiseANDExpressionNoIN

public final void BitwiseANDExpressionNoIN()
                                    throws ParseException
Throws:
ParseException

BitwiseXOROp

public final void BitwiseXOROp()
                        throws ParseException
Throws:
ParseException

BitwiseXORExpression

public final void BitwiseXORExpression()
                                throws ParseException
Throws:
ParseException

BitwiseXORExpressionNoIN

public final void BitwiseXORExpressionNoIN()
                                    throws ParseException
Throws:
ParseException

BitwiseOROp

public final void BitwiseOROp()
                       throws ParseException
Throws:
ParseException

BitwiseORExpression

public final void BitwiseORExpression()
                               throws ParseException
Throws:
ParseException

BitwiseORExpressionNoIN

public final void BitwiseORExpressionNoIN()
                                   throws ParseException
Throws:
ParseException

LogicalANDExpression

public final void LogicalANDExpression()
                                throws ParseException
Throws:
ParseException

LogicalANDExpressionNoIN

public final void LogicalANDExpressionNoIN()
                                    throws ParseException
Throws:
ParseException

LogicalORExpression

public final void LogicalORExpression()
                               throws ParseException
Throws:
ParseException

LogicalORExpressionNoIN

public final void LogicalORExpressionNoIN()
                                   throws ParseException
Throws:
ParseException

ConditionalExpression

public final void ConditionalExpression()
                                 throws ParseException
Throws:
ParseException

ConditionalExpressionNoIN

public final void ConditionalExpressionNoIN()
                                     throws ParseException
Throws:
ParseException

AssignementOperator

public final Token AssignementOperator()
                                throws ParseException
Throws:
ParseException

AssignmentExpression

public final void AssignmentExpression()
                                throws ParseException
Throws:
ParseException

AssignmentExpressionNoIN

public final void AssignmentExpressionNoIN()
                                    throws ParseException
Throws:
ParseException

Expression

public final void Expression()
                      throws ParseException
Throws:
ParseException

ExpressionNoIN

public final void ExpressionNoIN()
                          throws ParseException
Throws:
ParseException

Statement

public final void Statement()
                     throws ParseException
Throws:
ParseException

Block

public final void Block(ProgramContext context)
                 throws ParseException
Throws:
ParseException

VariableStatement

public final void VariableStatement()
                             throws ParseException
Throws:
ParseException

VariableDeclarationList

public final void VariableDeclarationList(Token varToken)
                                   throws ParseException
Throws:
ParseException

VariableDeclaration

public final void VariableDeclaration(Token varToken)
                               throws ParseException
Throws:
ParseException

Initializer

public final Token[] Initializer()
                          throws ParseException
Throws:
ParseException

EmptyStatement

public final void EmptyStatement()
                          throws ParseException
Throws:
ParseException

ExpressionStatement

public final void ExpressionStatement()
                               throws ParseException
Throws:
ParseException

IfStatement

public final void IfStatement()
                       throws ParseException
Throws:
ParseException

IterationStatement

public final void IterationStatement()
                              throws ParseException
Throws:
ParseException

DoStatement

public final void DoStatement()
                       throws ParseException
Throws:
ParseException

WhileStatement

public final void WhileStatement()
                          throws ParseException
Throws:
ParseException

ForStatement

public final void ForStatement()
                        throws ParseException
Throws:
ParseException

ForVarStatement

public final void ForVarStatement()
                           throws ParseException
Throws:
ParseException

ForInStatement

public final void ForInStatement()
                          throws ParseException
Throws:
ParseException

ForVarInStatement

public final void ForVarInStatement()
                             throws ParseException
Throws:
ParseException

ContinueStatement

public final void ContinueStatement()
                             throws ParseException
Throws:
ParseException

BreakStatement

public final void BreakStatement()
                          throws ParseException
Throws:
ParseException

ReturnStatement

public final void ReturnStatement()
                           throws ParseException
Throws:
ParseException

WithStatement

public final void WithStatement()
                         throws ParseException
Throws:
ParseException

TryStatement

public final void TryStatement()
                        throws ParseException
Throws:
ParseException

ThrowStatement

public final void ThrowStatement()
                          throws ParseException
Throws:
ParseException

CaseGuard

public final void CaseGuard()
                     throws ParseException
Throws:
ParseException

CaseGroup

public final void CaseGroup()
                     throws ParseException
Throws:
ParseException

SwitchStatement

public final void SwitchStatement()
                           throws ParseException
Throws:
ParseException

NamedFunction

public final void NamedFunction()
                         throws ParseException
Throws:
ParseException

AnonymousFunction

public final void AnonymousFunction()
                             throws ParseException
Throws:
ParseException

FunctionConstructor

public final void FunctionConstructor()
                               throws ParseException
Throws:
ParseException

FunctionDeclaration

public final void FunctionDeclaration()
                               throws ParseException
Throws:
ParseException

FunctionLiteral

public final void FunctionLiteral()
                           throws ParseException
Throws:
ParseException

FormalParameterList

public final Vector FormalParameterList()
                                 throws ParseException
Throws:
ParseException

LiteralElement

public final void LiteralElement()
                          throws ParseException
Throws:
ParseException

ElementList

public final void ElementList()
                       throws ParseException
Throws:
ParseException

ArrayLiteral

public final void ArrayLiteral()
                        throws ParseException
Throws:
ParseException

NestedArrayLiteral

public final void NestedArrayLiteral()
                              throws ParseException
Throws:
ParseException

LiteralField

public final void LiteralField()
                        throws ParseException
Throws:
ParseException

FieldList

public final void FieldList()
                     throws ParseException
Throws:
ParseException

ObjectLiteral

public final void ObjectLiteral()
                         throws ParseException
Throws:
ParseException

Program

public final Token Program()
                    throws ParseException
Throws:
ParseException

SourceElement

public final void SourceElement()
                         throws ParseException
Throws:
ParseException

StatementList

public final void StatementList()
                         throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(JSParser15TokenManager 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()


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.