dsql.parser
Class ASTQuote

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

public class ASTQuote
extends ASTDsql

A quote expression


Field Summary
 
Fields inherited from class dsql.parser.ASTXMLElement
attrs, tagName
 
Fields inherited from class dsql.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTQuote(ASTXMLElement toCopy)
          Constructor for ASTXMLElement.recast()
ASTQuote(int id)
          Constructor for Parser
ASTQuote(Parser p, int id)
          Constructor for Parser
 
Method Summary
 java.lang.String escape(java.lang.String s, java.lang.String quote, java.lang.String escQuote)
           
 Value execute()
          Execute a Node
 Value execute(boolean allowsExp)
           
 java.lang.String getEscapeQuote(java.lang.String quoteChar)
           
 java.lang.String getQuote()
           
 
Methods inherited from class dsql.parser.ASTDsql
getOut, getXMLText, setOut
 
Methods inherited from class dsql.parser.ASTXMLElement
attributesToString, executeXML, getAttributeValue, getElement, getElement, getElements, getStartTag, getTagName, print, setAttribute, setAttribute, setDoc, setTagName, toString
 
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

ASTQuote

public ASTQuote(int id)
Constructor for Parser


ASTQuote

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


ASTQuote

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

Method Detail

execute

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

Overrides:
execute in class ASTDsql
Throws:
ExecuteException

execute

public Value execute(boolean allowsExp)
              throws ExecuteException
Overrides:
execute in class ASTDsql
Throws:
ExecuteException

getQuote

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

getEscapeQuote

public java.lang.String getEscapeQuote(java.lang.String quoteChar)
                                throws ExecuteException
Throws:
ExecuteException

escape

public java.lang.String escape(java.lang.String s,
                               java.lang.String quote,
                               java.lang.String escQuote)