com.wewebu.expression.parser
Class OwExprParser

java.lang.Object
  extended by com.wewebu.expression.parser.OwExprParser
All Implemented Interfaces:
OwExprParserConstants

public class OwExprParser
extends Object
implements OwExprParserConstants

Expression Language Parser.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc. All Rights Reserved.


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 OwExprParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface com.wewebu.expression.parser.OwExprParserConstants
AND, DECIMAL_EXPONENT, DECIMAL_LITERAL, DEFAULT, EOF, EQ, FALSE, FLOATING_POINT_LITERAL, FORMAL_COMMENT, GE, HEX_LITERAL, IDENTIFIER, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, INTEGER_LITERAL, LBRACKET, LE, LETTER, LPAREN, LT, MINUS, MULTI_LINE_COMMENT, NE, NOT, NULL, OCTAL_LITERAL, OR, PART_LETTER, PLUS, RBRACKET, REM, RPAREN, SINGLE_LINE_COMMENT, SLASH, STAR, STRING_LITERAL, tokenImage, TRUE, XOR
 
Constructor Summary
OwExprParser(InputStream stream)
          Constructor with InputStream.
OwExprParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
OwExprParser(OwExprParserTokenManager tm)
          Constructor with generated Token Manager.
OwExprParser(Reader stream)
          Constructor.
 
Method Summary
 OwExprExpression AdditiveExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 List ArgumentList(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprArgumentsSuffix Arguments(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p, OwExprPrimaryPrefix prefix_p)
           
 OwExprBooleanLiteral BooleanLiteral(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression ConditionalAndExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression ConditionalExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression ConditionalOrExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 OwExprExpression EqualityExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression ExclusiveOrExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression Expression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression ExprExpression()
          THE EXPRESSION LANGUAGE GRAMMAR STARTS HERE *
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 OwExprLiteral Literal(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression MultiplicativeExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprNullLiteral NullLiteral(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
static OwExprExpression parse(String expressionString_p)
           
 OwExprExpression PrimaryExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprPrimaryPrefix PrimaryPrefix(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprPrimaryPrefix PrimarySuffix(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p, OwExprPrimaryPrefix prefix_p)
           
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(OwExprParserTokenManager tm)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 OwExprExpression RelationalExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprScopeSelector ScopeSelector(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p, OwExprPrimaryPrefix prefix_p)
           
 OwExprStaticArray StaticArray(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression UnaryExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 OwExprExpression UnaryExpressionNotPlusMinus(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public OwExprParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

OwExprParser

public OwExprParser(InputStream stream)
Constructor with InputStream.


OwExprParser

public OwExprParser(InputStream stream,
                    String encoding)
Constructor with InputStream and supplied encoding


OwExprParser

public OwExprParser(Reader stream)
Constructor.


OwExprParser

public OwExprParser(OwExprParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

public static OwExprExpression parse(String expressionString_p)
                              throws ParseException
Throws:
ParseException

ExprExpression

public final OwExprExpression ExprExpression()
                                      throws ParseException
THE EXPRESSION LANGUAGE GRAMMAR STARTS HERE *

Throws:
ParseException

Expression

public final OwExprExpression Expression(OwExprSymbolTable symTable_p,
                                         OwExprErrorTable errorTable_p)
                                  throws ParseException
Throws:
ParseException

ConditionalExpression

public final OwExprExpression ConditionalExpression(OwExprSymbolTable symTable_p,
                                                    OwExprErrorTable errorTable_p)
                                             throws ParseException
Throws:
ParseException

ConditionalOrExpression

public final OwExprExpression ConditionalOrExpression(OwExprSymbolTable symTable_p,
                                                      OwExprErrorTable errorTable_p)
                                               throws ParseException
Throws:
ParseException

ConditionalAndExpression

public final OwExprExpression ConditionalAndExpression(OwExprSymbolTable symTable_p,
                                                       OwExprErrorTable errorTable_p)
                                                throws ParseException
Throws:
ParseException

ExclusiveOrExpression

public final OwExprExpression ExclusiveOrExpression(OwExprSymbolTable symTable_p,
                                                    OwExprErrorTable errorTable_p)
                                             throws ParseException
Throws:
ParseException

EqualityExpression

public final OwExprExpression EqualityExpression(OwExprSymbolTable symTable_p,
                                                 OwExprErrorTable errorTable_p)
                                          throws ParseException
Throws:
ParseException

RelationalExpression

public final OwExprExpression RelationalExpression(OwExprSymbolTable symTable_p,
                                                   OwExprErrorTable errorTable_p)
                                            throws ParseException
Throws:
ParseException

AdditiveExpression

public final OwExprExpression AdditiveExpression(OwExprSymbolTable symTable_p,
                                                 OwExprErrorTable errorTable_p)
                                          throws ParseException
Throws:
ParseException

MultiplicativeExpression

public final OwExprExpression MultiplicativeExpression(OwExprSymbolTable symTable_p,
                                                       OwExprErrorTable errorTable_p)
                                                throws ParseException
Throws:
ParseException

UnaryExpression

public final OwExprExpression UnaryExpression(OwExprSymbolTable symTable_p,
                                              OwExprErrorTable errorTable_p)
                                       throws ParseException
Throws:
ParseException

UnaryExpressionNotPlusMinus

public final OwExprExpression UnaryExpressionNotPlusMinus(OwExprSymbolTable symTable_p,
                                                          OwExprErrorTable errorTable_p)
                                                   throws ParseException
Throws:
ParseException

PrimaryExpression

public final OwExprExpression PrimaryExpression(OwExprSymbolTable symTable_p,
                                                OwExprErrorTable errorTable_p)
                                         throws ParseException
Throws:
ParseException

ScopeSelector

public final OwExprScopeSelector ScopeSelector(OwExprSymbolTable symTable_p,
                                               OwExprErrorTable errorTable_p,
                                               OwExprPrimaryPrefix prefix_p)
                                        throws ParseException
Throws:
ParseException

PrimaryPrefix

public final OwExprPrimaryPrefix PrimaryPrefix(OwExprSymbolTable symTable_p,
                                               OwExprErrorTable errorTable_p)
                                        throws ParseException
Throws:
ParseException

PrimarySuffix

public final OwExprPrimaryPrefix PrimarySuffix(OwExprSymbolTable symTable_p,
                                               OwExprErrorTable errorTable_p,
                                               OwExprPrimaryPrefix prefix_p)
                                        throws ParseException
Throws:
ParseException

StaticArray

public final OwExprStaticArray StaticArray(OwExprSymbolTable symTable_p,
                                           OwExprErrorTable errorTable_p)
                                    throws ParseException
Throws:
ParseException

Literal

public final OwExprLiteral Literal(OwExprSymbolTable symTable_p,
                                   OwExprErrorTable errorTable_p)
                            throws ParseException
Throws:
ParseException

BooleanLiteral

public final OwExprBooleanLiteral BooleanLiteral(OwExprSymbolTable symTable_p,
                                                 OwExprErrorTable errorTable_p)
                                          throws ParseException
Throws:
ParseException

NullLiteral

public final OwExprNullLiteral NullLiteral(OwExprSymbolTable symTable_p,
                                           OwExprErrorTable errorTable_p)
                                    throws ParseException
Throws:
ParseException

Arguments

public final OwExprArgumentsSuffix Arguments(OwExprSymbolTable symTable_p,
                                             OwExprErrorTable errorTable_p,
                                             OwExprPrimaryPrefix prefix_p)
                                      throws ParseException
Throws:
ParseException

ArgumentList

public final List ArgumentList(OwExprSymbolTable symTable_p,
                               OwExprErrorTable errorTable_p)
                        throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(OwExprParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.