dsql.parser
Class ASTDoc
java.lang.Object
dsql.parser.SimpleNode
dsql.parser.DMNode
dsql.parser.ASTXMLElement
dsql.parser.ASTDsql
dsql.parser.ASTDoc
- All Implemented Interfaces:
- java.lang.Cloneable, Node
- public class ASTDoc
- extends ASTDsql
A document element
Constructor Summary |
ASTDoc(int id)
Constructor for Parser |
ASTDoc(Parser p,
int id)
Constructor for Parser |
Methods inherited from class dsql.parser.ASTXMLElement |
attributesToString, executeXML, getAttributeValue, getElement, getElement, getElements, getStartTag, getTagName, print, setAttribute, setAttribute, setDoc, 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASTDoc
public ASTDoc(int id)
- Constructor for Parser
ASTDoc
public ASTDoc(Parser p,
int id)
- Constructor for Parser
setFileName
public void setFileName(java.lang.String name)
getFileName
public java.lang.String getFileName()
setIncluded
public void setIncluded()
isIncluded
public boolean isIncluded()
toString
public java.lang.String toString()
- Overrides:
toString
in class ASTXMLElement
setArgs
public void setArgs(java.lang.String[] _args)
execute
public Value execute()
throws ExecuteException
- Description copied from class:
DMNode
- Execute a Node
- Overrides:
execute
in class ASTDsql
- Throws:
ExecuteException
getVariable
public Variable getVariable(java.lang.String name)
throws ExecuteException
- Throws:
ExecuteException
addVariable
public void addVariable(Variable var)
- Adds a variable to the current context
setVariable
public void setVariable(java.lang.String name,
Value value)
- Sets a variable: in the closest context if it exists, or adds
otherwise
pushVariableContext
public void pushVariableContext()
popVariableContext
public void popVariableContext()
throws ExecuteException
- Throws:
ExecuteException
addDBMS
public void addDBMS(ASTDBMS adbms)
getDBMS
public ASTDBMS getDBMS(java.lang.String dName)
throws ExecuteException
- Throws:
ExecuteException
addConnect
public void addConnect(Connect connect)
getConnect
public Connect getConnect(java.lang.String cName)
throws ExecuteException
- Returns:
- the <connect> element with the corresponding
name
- Throws:
ExecuteException
addSub
public void addSub(ASTSub sub)
throws ExecuteException
- Throws:
ExecuteException
getSub
public ASTSub getSub(java.lang.String name)