com.sun.tlddoc.tagfileparser
Class TagFile

java.lang.Object
  extended by com.sun.tlddoc.tagfileparser.TagFile
All Implemented Interfaces:
TagFileConstants, TagFileTreeConstants

public class TagFile
extends java.lang.Object
implements TagFileTreeConstants, TagFileConstants

Simple parser for tag files that only actually parses the directives. All other content is left unparsed.

Author:
Mark Roth

Field Summary
 java.util.ArrayList directives
          The set of directives in this tag file
 Token jj_nt
          Next token.
protected  JJTTagFileState jjtree
           
 Token token
          Current token.
 TagFileTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface com.sun.tlddoc.tagfileparser.TagFileTreeConstants
JJTCOMMENT, JJTINPUT, JJTJSPATTRIBUTENAME, JJTJSPATTRIBUTEVALUE, JJTJSPDIRECTIVE, JJTJSPDIRECTIVENAME, JJTJSPTAGDEF, jjtNodeName, JJTOTHERCONTENT, JJTXMLATTRIBUTENAME, JJTXMLATTRIBUTEVALUE, JJTXMLDIRECTIVE, JJTXMLDIRECTIVENAME
 
Fields inherited from interface com.sun.tlddoc.tagfileparser.TagFileConstants
BEGIN_QUOTE_DOUBLE, BEGIN_QUOTE_SINGLE, DEFAULT, END_DIRECTIVE, END_QUOTE_DOUBLE, END_QUOTE_SINGLE, EOF, EQ, JSP_ATTRIBUTE_NAME, JSP_ATTRIBUTE_VALUE1, JSP_ATTRIBUTE_VALUE2, JSP_COMMENT, JSP_DIRECTIVE, JSP_DIRECTIVE_NAME, JSPDirectiveAttributeName, JSPDirectiveAttributeValueDouble, JSPDirectiveAttributeValueSingle, JSPDirectiveName, OTHER_CONTENT, tokenImage, WithinComment, WithinOtherContent, X_BEGIN_QUOTE_DOUBLE, X_BEGIN_QUOTE_SINGLE, X_END_DIRECTIVE, X_END_QUOTE_DOUBLE, X_END_QUOTE_SINGLE, X_EQ, XML_ATTRIBUTE_NAME, XML_ATTRIBUTE_VALUE1, XML_ATTRIBUTE_VALUE2, XML_DIRECTIVE, XML_DIRECTIVE_NAME, XMLDirectiveAttributeName, XMLDirectiveAttributeValueDouble, XMLDirectiveAttributeValueSingle, XMLDirectiveName
 
Constructor Summary
TagFile(java.io.InputStream stream)
          Constructor with InputStream.
TagFile(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
TagFile(java.io.Reader stream)
          Constructor.
TagFile(TagFileTokenManager tm)
          Constructor with generated Token Manager.
 
Method Summary
 void Comment()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 ParseException generateParseException()
          Generate ParseException.
 java.util.ArrayList getDirectives()
          Returns the list of directives in this tag file.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 void Input()
           
 java.lang.String JSPAttributeName()
           
 java.lang.String JSPAttributeValue()
           
 void JSPDirective()
           
 java.lang.String JSPDirectiveName()
           
 void JSPTagDef()
           
static void main(java.lang.String[] args)
           
 void OtherContent()
           
static TagFile parse(java.io.InputStream in)
           
 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(TagFileTokenManager tm)
          Reinitialise.
 java.lang.String XMLAttributeName()
           
 java.lang.String XMLAttributeValue()
           
 void XMLDirective()
           
 java.lang.String XMLDirectiveName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTTagFileState jjtree

directives

public java.util.ArrayList directives
The set of directives in this tag file


token_source

public TagFileTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

TagFile

public TagFile(java.io.InputStream stream)
Constructor with InputStream.


TagFile

public TagFile(java.io.InputStream stream,
               java.lang.String encoding)
Constructor with InputStream and supplied encoding


TagFile

public TagFile(java.io.Reader stream)
Constructor.


TagFile

public TagFile(TagFileTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

public static TagFile parse(java.io.InputStream in)
                     throws ParseException
Throws:
ParseException

main

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

getDirectives

public java.util.ArrayList getDirectives()
Returns the list of directives in this tag file.


Input

public final void Input()
                 throws ParseException
Throws:
ParseException

JSPTagDef

public final void JSPTagDef()
                     throws ParseException
Throws:
ParseException

Comment

public final void Comment()
                   throws ParseException
Throws:
ParseException

JSPDirective

public final void JSPDirective()
                        throws ParseException
Throws:
ParseException

JSPDirectiveName

public final java.lang.String JSPDirectiveName()
                                        throws ParseException
Throws:
ParseException

JSPAttributeName

public final java.lang.String JSPAttributeName()
                                        throws ParseException
Throws:
ParseException

JSPAttributeValue

public final java.lang.String JSPAttributeValue()
                                         throws ParseException
Throws:
ParseException

XMLDirective

public final void XMLDirective()
                        throws ParseException
Throws:
ParseException

XMLDirectiveName

public final java.lang.String XMLDirectiveName()
                                        throws ParseException
Throws:
ParseException

XMLAttributeName

public final java.lang.String XMLAttributeName()
                                        throws ParseException
Throws:
ParseException

XMLAttributeValue

public final java.lang.String XMLAttributeValue()
                                         throws ParseException
Throws:
ParseException

OtherContent

public final void OtherContent()
                        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(TagFileTokenManager 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.