|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.weaving.aspectinfo.VarBox
public class VarBox
A wrapper class for an optional Var value. A VarBox object is eithet SET, in which case it contains a Var, or UNSET.
Constructor Summary | |
---|---|
VarBox()
Constructs a new VarBox object, intially unset |
|
VarBox(Var var)
Constructs a new VarBox object, initially set |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Test for equality. |
boolean |
equalsvar(Var v)
Tests whether the variable stored in this VarBox is equal to another Var object. |
Var |
getVar()
Returns the Var stored in this VarBox if any, undefined otherwise (if the VarBox is not set) |
boolean |
hasVar()
Tests whether this VarBox is set |
void |
set(Var v)
Set this VarBox. |
java.lang.String |
toString()
Print this VarBox as a string. |
void |
unset()
Unset this VarBox. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VarBox()
public VarBox(Var var)
var
- the variable to be stored in the VarBoxMethod Detail |
---|
public boolean hasVar()
public Var getVar()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equalsvar(Var v)
v
- a Var object to test for equality with
public void unset()
public void set(Var v)
v
- the variable to store inside this VarBoxpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |