com.akiban.sql.parser
Class BooleanConstantNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.ValueNode
          extended by com.akiban.sql.parser.ConstantNode
              extended by com.akiban.sql.parser.BooleanConstantNode
All Implemented Interfaces:
Visitable

public class BooleanConstantNode
extends ConstantNode


Field Summary
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
BooleanConstantNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 boolean getBooleanValue()
           
 void init(Object arg1)
          Initializer for a BooleanConstantNode.
 boolean isBooleanFalse()
          Does this represent a false constant.
 boolean isBooleanTrue()
          Does this represent a true constant.
 void setBooleanValue(boolean booleanValue)
           
 
Methods inherited from class com.akiban.sql.parser.ConstantNode
getValue, init, isConstantExpression, isEquivalent, setValue, toString
 
Methods inherited from class com.akiban.sql.parser.ValueNode
getColumnName, getSchemaName, getSourceResultColumn, getTableName, getType, getTypeId, init, isBinaryEqualsOperatorNode, isInListProbeNode, isParameterNode, isRelationalOperator, isSameNodeType, setNullability, setType
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNode
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanConstantNode

public BooleanConstantNode()
Method Detail

init

public void init(Object arg1)
          throws StandardException
Initializer for a BooleanConstantNode.

Overrides:
init in class QueryTreeNode
Parameters:
arg1 - A boolean containing the value of the constant OR The TypeId for the type of the node
Throws:
StandardException

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class ConstantNode
Throws:
StandardException

getBooleanValue

public boolean getBooleanValue()

setBooleanValue

public void setBooleanValue(boolean booleanValue)

isBooleanTrue

public boolean isBooleanTrue()
Does this represent a true constant.

Overrides:
isBooleanTrue in class ValueNode
Returns:
Whether or not this node represents a true constant.

isBooleanFalse

public boolean isBooleanFalse()
Does this represent a false constant.

Overrides:
isBooleanFalse in class ValueNode
Returns:
Whether or not this node represents a false constant.


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.