cb.petal
Class Location
java.lang.Object
|
+--cb.petal.Literal
|
+--cb.petal.Location
- All Implemented Interfaces:
- java.lang.Cloneable, PetalNode, java.io.Serializable
- public class Location
- extends Literal
Tuple of integer values like (1520, 96). Usually used to define coordinates.
- Version:
- $Id: Location.java,v 1.11 2001/07/09 07:48:52 dahm Exp $
- Author:
- M. Dahm
- See Also:
- Serialized Form
Constructor Summary |
Location(int first,
int second)
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Location
public Location(int first,
int second)
getFirstValue
public int getFirstValue()
setFirstValue
public void setFirstValue(int v)
getSecondValue
public int getSecondValue()
setSecondValue
public void setSecondValue(int v)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getLiteralValue
public java.lang.Object getLiteralValue()
- Overrides:
getLiteralValue
in class Literal
- Following copied from class:
cb.petal.Literal
- Returns:
- object corresponding to the usual Java hierarchy, e.g., an Integer for
an IntegerLiteral.
accept
public void accept(Visitor v)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object