openjava.ptree
Class TableReference

java.lang.Object
  |
  +--openjava.ptree.ParseTreeObject
        |
        +--openjava.ptree.NonLeaf
              |
              +--openjava.ptree.FieldAccess
                    |
                    +--openjava.ptree.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
getRowType
 
Methods inherited from interface openjava.ptree.ParseTree
childrenAccept, eq, getObjectID, makeCopy, makeRecursiveCopy, replace, toFlattenString, toString
 

Constructor Detail

TableReference

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

Method Detail

getQualifier

public String getQualifier()

equals

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
Overrides:
equals in class FieldAccess
Returns:
true if two values are same.

getType

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

SourceForge.net_Logo