openjava.ptree
Class ExpressionObject
java.lang.Object
|
+--openjava.ptree.ParseTreeObject
|
+--openjava.ptree.NonLeaf
|
+--openjava.ptree.ExpressionObject
- 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
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 |
ExpressionObject
public ExpressionObject()
getCachedType
public OJClass getCachedType(Environment env)
- 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