dsql.parser
Class ASTInclude

java.lang.Object
  extended bydsql.parser.SimpleNode
      extended bydsql.parser.DMNode
          extended bydsql.parser.ASTXMLElement
              extended bydsql.parser.ASTDocContext
                  extended bydsql.parser.ASTInclude
All Implemented Interfaces:
java.lang.Cloneable, Node

public class ASTInclude
extends ASTDocContext

An element; e.g. .


Field Summary
 
Fields inherited from class dsql.parser.ASTXMLElement
attrs, tagName
 
Fields inherited from class dsql.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTInclude(ASTXMLElement toCopy)
          Constructor for ASTXMLElement.recast()
ASTInclude(int id)
          Constructor for Parser
ASTInclude(Parser p, int id)
          Constructor for Parser
ASTInclude(java.lang.String fileName, ASTDoc doc)
           
 
Method Summary
 Value execute()
          Execute a Node
static java.io.Reader getFile(java.lang.String fileName)
           
 java.lang.String getFileName()
           
protected  ASTDoc parse()
           
 java.lang.String toString()
           
protected static java.io.BufferedReader tryToOpenFile(java.lang.String path)
           
 
Methods inherited from class dsql.parser.ASTDocContext
getDoc, setDoc
 
Methods inherited from class dsql.parser.ASTXMLElement
attributesToString, executeXML, getAttributeValue, getElement, getElement, getElements, getStartTag, getTagName, getXMLText, print, setAttribute, setAttribute, setTagName
 
Methods inherited from class dsql.parser.DMNode
executeArgument, executeArgumentAsClass, executeArgumentColumnHolder, executeArgumentNonNull, executeArgumentRecordHolder, executeArgumentTable, executeWithCatch, getArgument, getCaller, getDsqlParent, getLine, getRoot, getString, hasArgument, jjtInsertFirstChild, jjtSetChild, setCaller, setLine
 
Methods inherited from class dsql.parser.SimpleNode
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTInclude

public ASTInclude(int id)
Constructor for Parser


ASTInclude

public ASTInclude(Parser p,
                  int id)
Constructor for Parser


ASTInclude

public ASTInclude(ASTXMLElement toCopy)
Constructor for ASTXMLElement.recast()


ASTInclude

public ASTInclude(java.lang.String fileName,
                  ASTDoc doc)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class ASTXMLElement

getFileName

public java.lang.String getFileName()
                             throws ExecuteException
Throws:
ExecuteException

execute

public Value execute()
              throws ExecuteException
Description copied from class: DMNode
Execute a Node

Overrides:
execute in class ASTXMLElement
Throws:
ExecuteException

getFile

public static java.io.Reader getFile(java.lang.String fileName)
                              throws ExecuteException
Throws:
ExecuteException

tryToOpenFile

protected static java.io.BufferedReader tryToOpenFile(java.lang.String path)
                                               throws ExecuteException
Throws:
ExecuteException

parse

protected ASTDoc parse()
                throws ExecuteException
Throws:
ExecuteException