Class TableReference

All Implemented Interfaces:
Cloneable, Expression, ParseTree, VariableInitializer

public class TableReference
extends FieldAccess

TableReference specialized FieldAccess to hold information about the table being accessed.

Field Summary
Fields inherited from class openjava.ptree.NonLeaf
Fields inherited from class openjava.ptree.ParseTreeObject
debugFlag, debugLevel, LN, out, writerStack
Constructor Summary
TableReference(Expression expr, String schemaName, String tableName)
          An access to the specified table.
Method Summary
 boolean equals(ParseTree o)
          Tests if this parse-tree-node's value equals to the specified ptree-node's.
 String getQualifier()
 OJClass getType(Environment env)
Methods inherited from class openjava.ptree.FieldAccess
accept, getName, getReference, getReferenceExpr, getReferenceType, isTypeReference, setName, setReferenceExpr, setReferenceType, writeCode
Methods inherited from class openjava.ptree.NonLeaf
childrenAccept, childrenAreEqual, elementAt, getComment, getContents, getLength, getRowType, makeRecursiveCopy, replaceChildWith, set, set, set, set, set, set, set, set, set, setComment, setElementAt
Methods inherited from class openjava.ptree.ParseTreeObject
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.Expression
Methods inherited from interface openjava.ptree.ParseTree
childrenAccept, eq, getObjectID, makeCopy, makeRecursiveCopy, replace, toFlattenString, toString

Constructor Detail


public TableReference(Expression expr,
                      String schemaName,
                      String tableName)
An access to the specified table.

Method Detail


public String getQualifier()


public boolean equals(ParseTree o)
Description copied from interface: ParseTree
Tests if this parse-tree-node's value equals to the specified ptree-node's.

Specified by:
equals in interface ParseTree
equals in class FieldAccess
true if two values are same.


public OJClass getType(Environment env)
                throws Exception
Specified by:
getType in interface Expression
getType in class FieldAccess