|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.grammars.ReturnValue
public class ReturnValue
This object represents a value in a parse tree. It is a wrapper
for several fields: an Object, a Vector of arguments (in case the
parser picked up some arguments following the serialization of the
object), and the Class of the object.
This class was made necessary a the design requirement where
arguments must sometimes sometimes be parsed long before they are
used during parsing; they must travel atomically with the ID they
follow.
Constructor Summary | |
---|---|
ReturnValue()
Constructor with nothing |
|
ReturnValue(java.lang.Object value)
Constructor without arguments |
|
ReturnValue(java.lang.Object value,
ArgumentVector arguments)
Constructor with arguments |
Method Summary | |
---|---|
ArgumentVector |
arguments()
Return the arguments of the value. |
boolean |
argumentsPresent()
Return true iff there are arguments for the value. |
java.lang.Object |
value()
Return the value. |
java.lang.Class |
valueClass()
Return the class of the value |
java.lang.String |
valueClassString()
Return the class of the value as a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReturnValue(java.lang.Object value)
public ReturnValue(java.lang.Object value, ArgumentVector arguments)
public ReturnValue()
Method Detail |
---|
public java.lang.String valueClassString()
public java.lang.Class valueClass()
public java.lang.Object value()
public ArgumentVector arguments()
public boolean argumentsPresent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |