Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.script.gsp
Class GSP  view GSP download GSP.java

java.lang.Object
  extended bycom.arranger.jarl.script.gsp.GSP

public class GSP
extends java.lang.Object

GSP General Script Parser.


Field Summary
protected static int BUF_MAX
           
protected static int BUF_SIZE
           
protected static int LL
           
protected static int STATE_BODY
           
protected static int STATE_CODE
           
protected static int STATE_COMM
           
protected static int STATE_DECL
           
protected static int STATE_DIRV
           
protected static int STATE_EXPR
           
protected static int STATE_TAG_ATTR
           
protected static int STATE_TAG_END
           
protected static int STATE_TAG_START
           
 
Constructor Summary
GSP()
           
 
Method Summary
protected  int append(char[] buf, int cur, IGSPLanguage lang, int state, char ch)
          Appends the specified character to the buffer.
protected  boolean handleDirective(java.lang.String d, java.util.Map p, IGSPLanguage l, IGSPCompiler c)
          Handles the specified directive.
 void parse(java.io.Reader in, IGSPLanguage lang, IGSPCompiler compiler)
          Processes the specified the input stream with the specified language and compiler.
protected  void parseDirective(char[] buf, int start, int length, IGSPLanguage lang, IGSPCompiler compiler)
          Passes the specified directive to the specified language.
protected  java.util.Map parseParameters(char[] buf, int start, int length, java.util.Map params)
          Parses attribute name="value" pairs out of the specified buffer.
protected  void parseStartTag(char[] buf, int start, int length, IGSPLanguage lang, java.lang.String prefix)
          Passes the specified start tag to the specified language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LL

protected static final int LL
See Also:
Constant Field Values

BUF_SIZE

protected static final int BUF_SIZE
See Also:
Constant Field Values

BUF_MAX

protected static final int BUF_MAX
See Also:
Constant Field Values

STATE_BODY

protected static final int STATE_BODY
See Also:
Constant Field Values

STATE_CODE

protected static final int STATE_CODE
See Also:
Constant Field Values

STATE_EXPR

protected static final int STATE_EXPR
See Also:
Constant Field Values

STATE_DECL

protected static final int STATE_DECL
See Also:
Constant Field Values

STATE_DIRV

protected static final int STATE_DIRV
See Also:
Constant Field Values

STATE_COMM

protected static final int STATE_COMM
See Also:
Constant Field Values

STATE_TAG_START

protected static final int STATE_TAG_START
See Also:
Constant Field Values

STATE_TAG_END

protected static final int STATE_TAG_END
See Also:
Constant Field Values

STATE_TAG_ATTR

protected static final int STATE_TAG_ATTR
See Also:
Constant Field Values
Constructor Detail

GSP

public GSP()
Method Detail

parse

public void parse(java.io.Reader in,
                  IGSPLanguage lang,
                  IGSPCompiler compiler)
           throws GSPException
Processes the specified the input stream with the specified language and compiler.


append

protected int append(char[] buf,
                     int cur,
                     IGSPLanguage lang,
                     int state,
                     char ch)
              throws GSPException
Appends the specified character to the buffer. Flushes the buffer if it's almost full.


parseDirective

protected void parseDirective(char[] buf,
                              int start,
                              int length,
                              IGSPLanguage lang,
                              IGSPCompiler compiler)
                       throws GSPException
Passes the specified directive to the specified language.


handleDirective

protected boolean handleDirective(java.lang.String d,
                                  java.util.Map p,
                                  IGSPLanguage l,
                                  IGSPCompiler c)
                           throws GSPException
Handles the specified directive.


parseStartTag

protected void parseStartTag(char[] buf,
                             int start,
                             int length,
                             IGSPLanguage lang,
                             java.lang.String prefix)
                      throws GSPException
Passes the specified start tag to the specified language.


parseParameters

protected java.util.Map parseParameters(char[] buf,
                                        int start,
                                        int length,
                                        java.util.Map params)
Parses attribute name="value" pairs out of the specified buffer.