Package org.eclipse.birt.core.template
Class Parser
- java.lang.Object
-
- org.eclipse.birt.core.template.Parser
-
- All Implemented Interfaces:
ParserConstants
,ParserTreeConstants
public class Parser extends java.lang.Object implements ParserTreeConstants, ParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.protected JJTParserState
jjtree
Token
token
Current token.ParserTokenManager
token_source
Generated Token Manager.-
Fields inherited from interface org.eclipse.birt.core.template.ParserConstants
A_EQ, A_NAME, ALPHA, ALPHANUM, ATTLIST, ATTRVAL, CDATA, DEFAULT, ELEMENTC, END_IMAGE, END_VALUEOF, END_VIEWTIMEVALUEOF, EOF, NUM, START_IMAGE, START_VALUEOF, START_VIEWTIMEVALUEOF, TAGC, TEXT, tokenImage
-
Fields inherited from interface org.eclipse.birt.core.template.ParserTreeConstants
JJTATTRIBUTE, JJTEBODY_CONTENT, JJTIMAGE, jjtNodeName, JJTTEMPLATE, JJTTEXT, JJTVALUEOF, JJTVIEWTIMEVALUEOF
-
-
Constructor Summary
Constructors Constructor Description Parser()
Parser(java.io.InputStream stream)
Constructor with InputStream.Parser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encodingParser(java.io.Reader stream)
Constructor.Parser(ParserTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Attribute()
void
disable_tracing()
Disable tracing.void
Ebody_content()
void
enable_tracing()
Enable tracing.ParseException
generateParseException()
Generate ParseException.Token
getNextToken()
Get the next Token.Token
getToken(int index)
Get the specific Token.void
Image()
ASTTemplate
parse(java.io.Reader reader)
void
ReInit(java.io.InputStream stream)
Reinitialise.void
ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.void
ReInit(java.io.Reader stream)
Reinitialise.void
ReInit(ParserTokenManager tm)
Reinitialise.void
Template()
void
Text()
void
ValueOf()
void
ViewTimeValueOf()
-
-
-
Field Detail
-
jjtree
protected JJTParserState jjtree
-
token_source
public ParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
Parser
public Parser()
-
Parser
public Parser(java.io.InputStream stream)
Constructor with InputStream.
-
Parser
public Parser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encoding
-
Parser
public Parser(java.io.Reader stream)
Constructor.
-
Parser
public Parser(ParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
parse
public ASTTemplate parse(java.io.Reader reader) throws ParseException
- Throws:
ParseException
-
Attribute
public final void Attribute() throws ParseException
- Throws:
ParseException
-
Ebody_content
public final void Ebody_content() throws ParseException
- Throws:
ParseException
-
Image
public final void Image() throws ParseException
- Throws:
ParseException
-
ValueOf
public final void ValueOf() throws ParseException
- Throws:
ParseException
-
ViewTimeValueOf
public final void ViewTimeValueOf() throws ParseException
- Throws:
ParseException
-
Text
public final void Text() throws ParseException
- Throws:
ParseException
-
Template
public final void Template() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.
-
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
-
ReInit
public void ReInit(ParserTokenManager 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.
-
-