openjava.ptree
Class ExpressionObject

java.lang.Object
  |
  +--openjava.ptree.ParseTreeObject
        |
        +--openjava.ptree.NonLeaf
              |
              +--openjava.ptree.ExpressionObject
All Implemented Interfaces:
Cloneable, Expression, ParseTree, VariableInitializer

public abstract class ExpressionObject
extends NonLeaf
implements Expression

Abstract implementation of Expression.

See Also:
ParseTree, NonLeaf

Field Summary
private  OJClass cachedType
           
 
Fields inherited from class openjava.ptree.NonLeaf
 
Fields inherited from class openjava.ptree.ParseTreeObject
debugFlag, debugLevel, LN, out, writerStack
 
Constructor Summary
ExpressionObject()
           
 
Method Summary
 OJClass getCachedType(Environment env)
          dirty implementation
abstract  OJClass getType(Environment env)
           
abstract  OJClass getType(Environment env, boolean using_cache)
           
protected  void set(Object[] ptrees)
          Makes this ptree a list presenting for [ p ]
(package private)  void soilCache()
           
 
Methods inherited from class openjava.ptree.NonLeaf
childrenAccept, childrenAreEqual, elementAt, equals, getComment, getContents, getLength, getRowType, makeRecursiveCopy, replaceChildWith, 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.Expression
getRowType
 
Methods inherited from interface openjava.ptree.ParseTree
accept, childrenAccept, eq, equals, getObjectID, makeCopy, makeRecursiveCopy, replace, toFlattenString, toString, writeCode
 

Field Detail

cachedType

private OJClass cachedType
Constructor Detail

ExpressionObject

public ExpressionObject()
Method Detail

soilCache

void soilCache()

getCachedType

public OJClass getCachedType(Environment env)
                      throws Exception
dirty implementation

Exception

getType

public abstract OJClass getType(Environment env,
                                boolean using_cache)
                         throws Exception
Exception

getType

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

set

protected void set(Object[] ptrees)
Makes this ptree a list presenting for [ p ]

Overrides:
set in class NonLeaf
Parameters:
ptrees - list's element

SourceForge.net_Logo