openjava.ptree
Class SetExpression

java.lang.Object
  |
  +--openjava.ptree.ParseTreeObject
        |
        +--openjava.ptree.NonLeaf
              |
              +--openjava.ptree.SetExpression
All Implemented Interfaces:
Cloneable, Expression, ParseTree, VariableInitializer
Direct Known Subclasses:
InsertExpression, JoinExpression, QueryExpression

public abstract class SetExpression
extends NonLeaf
implements Expression

A SetExpression is an expression which consists of a set of rows. (Other expressions, such as variable references, may have set types also.)


Field Summary
private  OJClass rowType
           
 
Fields inherited from class openjava.ptree.NonLeaf
 
Fields inherited from class openjava.ptree.ParseTreeObject
debugFlag, debugLevel, LN, out, writerStack
 
Constructor Summary
SetExpression()
           
 
Method Summary
protected abstract  OJClass deriveRowType(Environment env)
           
 Expression[] flatten()
           
static Expression[] flatten(Expression expression)
           
private static void flattenRecurse(Expression expression, Vector v)
           
 OJClass getRowType(Environment env)
           
 OJClass getType(Environment env)
           
 
Methods inherited from class openjava.ptree.NonLeaf
childrenAccept, childrenAreEqual, elementAt, equals, getComment, getContents, getLength, makeRecursiveCopy, replaceChildWith, set, set, set, set, set, set, set, set, set, setComment, setElementAt, writeCode
 
Methods inherited from class openjava.ptree.ParseTreeObject
accept, clone, eq, eq, equal, flushPrintWriter, getDebugFlag, getNest, getObjectID, getParent, getPrintWriter, getTab, hashCode, lastObjectID, makeCopy, popNest, popPrintWriter, pushNest, pushPrintWriter, replace, setDebugFlag, setDebugLevel, setNest, setParent, setPrintStream, setTab, toFlattenString, toString, writeDebug, writeDebugL, writeDebugLln, writeDebugln, writeDebugLR, writeDebugR, writeDebugRln, writeTab
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface openjava.ptree.ParseTree
accept, childrenAccept, eq, equals, getObjectID, makeCopy, makeRecursiveCopy, replace, toFlattenString, toString, writeCode
 

Field Detail

rowType

private OJClass rowType
Constructor Detail

SetExpression

public SetExpression()
Method Detail

getRowType

public OJClass getRowType(Environment env)
Specified by:
getRowType in interface Expression
Overrides:
getRowType in class NonLeaf

deriveRowType

protected abstract OJClass deriveRowType(Environment env)
                                  throws Exception
Exception

getType

public OJClass getType(Environment env)
Specified by:
getType in interface Expression

flatten

public Expression[] flatten()

flatten

public static Expression[] flatten(Expression expression)

flattenRecurse

private static void flattenRecurse(Expression expression,
                                   Vector v)

SourceForge.net_Logo