JTools

org.jtools.tmpl.compiler.parser
Class SimpleNodeParser

java.lang.Object
  extended by org.jtools.tmpl.compiler.parser.SimpleNodeParser
All Implemented Interfaces:
NodeParser

public class SimpleNodeParser
extends Object
implements NodeParser


Field Summary
protected  int col
           
protected  char[][] image
           
protected  int line
           
 
Constructor Summary
SimpleNodeParser(Parser parser, char[][] image)
           
SimpleNodeParser(Parser parser, char[][] image, int lineOffs, int colOffs)
           
 
Method Summary
 int getCol()
           
 char[][] getImage()
           
 InfoSupport getInfoSupport()
           
 int getLine()
           
 Parser getParser()
           
 Template getTemplate()
           
protected  Tag onChildFound(NodeHandler parent, Node child, int taglen)
           
 Tag parseNode(NodeHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

col

protected int col

image

protected char[][] image

line

protected int line
Constructor Detail

SimpleNodeParser

public SimpleNodeParser(Parser parser,
                        char[][] image)

SimpleNodeParser

public SimpleNodeParser(Parser parser,
                        char[][] image,
                        int lineOffs,
                        int colOffs)
Method Detail

getCol

public int getCol()
Specified by:
getCol in interface NodeParser

getImage

public char[][] getImage()
Specified by:
getImage in interface NodeParser

getLine

public int getLine()
Specified by:
getLine in interface NodeParser

getParser

public Parser getParser()
Specified by:
getParser in interface NodeParser

getInfoSupport

public InfoSupport getInfoSupport()
Specified by:
getInfoSupport in interface NodeParser

getTemplate

public Template getTemplate()

onChildFound

protected Tag onChildFound(NodeHandler parent,
                           Node child,
                           int taglen)
                    throws IOException,
                           CompilerException
Throws:
IOException
CompilerException

parseNode

public Tag parseNode(NodeHandler handler)
              throws IOException,
                     CompilerException
Specified by:
parseNode in interface NodeParser
Throws:
IOException
CompilerException

JTools

© 2000-2006, JTools.org.