openjava.ptree
Class ExpressionObject

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

public abstract class ExpressionObject
extends NonLeaf
implements Expression

The Expression interface presents common interface to access Expression node of parse tree this interface is implements by

   UnaryExpression
   BinaryExpression
   ConditionalExpression
   AssignmentExpression
   CastExpression
   AllocationExpression
   ArrayAllocationExpression
   Variable
   MethodCall
   SpecialName
   Literal
   ClassLiteral
   ArrayAccess
   FieldAccess
 

See Also:
ParseTree, 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(java.lang.Object[] ptrees)
          Makes this ptree a list presenting for [ p ]
 
Methods inherited from class openjava.ptree.NonLeaf
childrenAccept, elementAt, equals, getComment, getContents, getLength, 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.ParseTree
accept, childrenAccept, eq, equals, getObjectID, makeCopy, makeRecursiveCopy, replace, toFlattenString, toString, writeCode
 

Constructor Detail

ExpressionObject

public ExpressionObject()
Method Detail

getCachedType

public OJClass getCachedType(Environment env)
                      throws java.lang.Exception
dirty implementation

getType

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

getType

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

set

protected void set(java.lang.Object[] ptrees)
Makes this ptree a list presenting for [ p ]
Overrides:
set in class NonLeaf
Parameters:
p - list's element