Definition at line 28 of file BNFTestableObject.java.
Public Member Functions | |
BNFTestableObject (Object data) | |
Creates a new BNFTestableObject object. | |
boolean | equals (Object obj) |
A method to determine if this object is equivalent to another. | |
Object | getData () |
Returns the underlying data object. | |
abstract int | getToken () |
An abstract method to retrieve a token from the underlying data object. | |
int | hashCode () |
Returns a unique hashCode for the object. | |
void | setData (Object obj) |
Sets the underlying data. | |
String | toString () |
Returns a text representation of this object. |
|
Creates a new BNFTestableObject object.
Definition at line 37 of file BNFTestableObject.java. 00037 {this.data = data;}
|
|
A method to determine if this object is equivalent to another.
Definition at line 54 of file BNFTestableObject.java. References BNFTestableObject.getData(). 00054 { 00055 if(!(obj instanceof BNFTestableObject)){return false;} 00056 else{return data.equals(((BNFTestableObject)obj).getData());} 00057 }
|
|
Returns the underlying data object.
Definition at line 64 of file BNFTestableObject.java. Referenced by BNFTestableObject.equals(). 00064 {return this.data;}
|
|
An abstract method to retrieve a token from the underlying data object.
Referenced by BNFNoFallthruTest.test(). |
|
Returns a unique hashCode for the object.
Definition at line 71 of file BNFTestableObject.java. 00071 {return data.hashCode();}
|
|
Sets the underlying data.
Definition at line 78 of file BNFTestableObject.java. 00078 {this.data = obj;}
|
|
Returns a text representation of this object.
Definition at line 85 of file BNFTestableObject.java. 00085 {return data.toString();}
|