se.cambio.cds.gdl.parser
Class ExpressionParser

Package class diagram package ExpressionParser
java.lang.Object
  extended by se.cambio.cds.gdl.parser.ExpressionParser
All Implemented Interfaces:
ExpressionParserConstants

public class ExpressionParser
extends Object
implements ExpressionParserConstants


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 ExpressionParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface se.cambio.cds.gdl.parser.ExpressionParserConstants
DATE_TIME, DEFAULT, DIG, EOF, HOUR_MINUTE, LET_DIG, LET_DIG_DD, LET_DIG_DU, LET_DIG_DUDS, LET_DIG_DUDSLR, LET_DIG_U, MILLI_SECOND, PATH_SEGMENT, SECOND, SINGLE_LINE_COMMENT, SYM_AND, SYM_ASSIGNMENT, SYM_CARET, SYM_COLON, SYM_COMMA, SYM_CURRENT_DATETIME, SYM_DIV, SYM_DOLLAR, SYM_DOT, SYM_ELLIPSIS, SYM_EQ, SYM_EXCLAMATION, SYM_FALSE, SYM_FOR_ALL, SYM_GE, SYM_GT, SYM_INTERVAL_DELIM, SYM_IS_A, SYM_IS_NOT_A, SYM_L_BRACKET, SYM_L_PARENTHESIS, SYM_LE, SYM_LIST_CONTINUE, SYM_LT, SYM_MINUS, SYM_MODULO, SYM_NE, SYM_NOT, SYM_NULL, SYM_OR, SYM_PLUS, SYM_QUESTION, SYM_R_BRACKET, SYM_R_PARENTHESIS, SYM_SEMICOLON, SYM_SLASH, SYM_STAR, SYM_TRUE, SYM_TWO_COLONS, TIME_ZONE, tokenImage, V_ABSOLUTE_PATH, V_ATTRIBUTE_IDENTIFIER, V_CODE_PHRASE, V_CODE_PHRASE_RAW, V_DATE, V_DATE_TIME, V_DATE_TIME_MS, V_DATE_TIME_MSZ, V_DATE_TIME_Z, V_HHMM_TIME, V_HHMMSS_TIME, V_HHMMSSss_TIME, V_HHMMSSssZ_TIME, V_HHMMSSZ_TIME, V_INTEGER, V_ISO8601_DURATION, V_ISO8601_DURATION_CONSTRAINT_PATTERN, V_LABEL, V_LOCAL_CODE, V_LOCAL_CODE_CORE, V_LOCAL_TERM_CODE_REF, V_ORDINAL, V_PROPORTION, V_QUANTITY, V_REAL, V_STRING, V_TIME
 
Constructor Summary
ExpressionParser(ExpressionParserTokenManager tm)
          Constructor with generated Token Manager.
ExpressionParser(InputStream stream)
          Constructor with InputStream.
ExpressionParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
ExpressionParser(Reader stream)
          Constructor.
 
Method Summary
 org.openehr.rm.datatypes.text.CodePhrase code_phrase_raw()
           
 org.openehr.rm.datatypes.text.CodePhrase code_phrase()
           
 ConstantExpression constant_expression()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 ExpressionItem expression_item()
           
 ExpressionItem expression_leaf()
           
 ExpressionItem expression_node()
           
 List<ExpressionItem> expressions()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 int integer()
           
 String label()
           
static void main(String[] args)
           
 ExpressionItem parse()
           
 List<ExpressionItem> parseArithmeticExpressions()
           
 List<ExpressionItem> parseBooleanExpressions()
           
 double real()
           
 void ReInit(ExpressionParserTokenManager tm)
          Reinitialise.
 void reInit(File file)
           
 void reInit(InputStream input)
           
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 Variable variable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ExpressionParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

ExpressionParser

public ExpressionParser(InputStream stream)
Constructor with InputStream.


ExpressionParser

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


ExpressionParser

public ExpressionParser(Reader stream)
Constructor.


ExpressionParser

public ExpressionParser(ExpressionParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parseBooleanExpressions

public List<ExpressionItem> parseBooleanExpressions()
                                             throws ParseException
Throws:
ParseException

parseArithmeticExpressions

public List<ExpressionItem> parseArithmeticExpressions()
                                                throws ParseException
Throws:
ParseException

parse

public ExpressionItem parse()
                     throws ParseException
Throws:
ParseException

reInit

public void reInit(File file)
            throws IOException
Throws:
IOException

reInit

public void reInit(InputStream input)
            throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws ParseException
Throws:
ParseException

expressions

public final List<ExpressionItem> expressions()
                                       throws ParseException
Throws:
ParseException

expression_item

public final ExpressionItem expression_item()
                                     throws ParseException
Throws:
ParseException

code_phrase

public final org.openehr.rm.datatypes.text.CodePhrase code_phrase()
                                                           throws ParseException
Throws:
ParseException

code_phrase_raw

public final org.openehr.rm.datatypes.text.CodePhrase code_phrase_raw()
                                                               throws ParseException
Throws:
ParseException

expression_node

public final ExpressionItem expression_node()
                                     throws ParseException
Throws:
ParseException

expression_leaf

public final ExpressionItem expression_leaf()
                                     throws ParseException
Throws:
ParseException

constant_expression

public final ConstantExpression constant_expression()
                                             throws ParseException
Throws:
ParseException

variable

public final Variable variable()
                        throws ParseException
Throws:
ParseException

label

public final String label()
                   throws ParseException
Throws:
ParseException

real

public final double real()
                  throws ParseException
Throws:
ParseException

integer

public final int integer()
                  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(ExpressionParserTokenManager 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 Cambio. All Rights Reserved.