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.)
Fields inherited from class openjava.ptree.NonLeaf |
|
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 interface openjava.ptree.ParseTree |
accept, childrenAccept, eq, equals, getObjectID, makeCopy, makeRecursiveCopy, replace, toFlattenString, toString, writeCode |
rowType
private OJClass rowType
SetExpression
public SetExpression()
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)