edu.neu.ccs.demeter
Class Ident
java.lang.Object
|
+--edu.neu.ccs.demeter.Ident
- All Implemented Interfaces:
- Serializable
- public final class Ident
- extends Object
- implements Serializable
A terminal class for parsing an identifier (a sequence of letters,
digits, and underscores not starting with a digit). Put Ident in a
class dictionary to represent an identifier in an input sentence.
- See Also:
- Serialized Form
|
Constructor Summary |
Ident(Object obj)
Construct an Ident from an Object by converting it to a String
with Object.toString(). |
Ident(String s)
Construct an Ident from a String. |
Ident
public Ident(String s)
- Construct an Ident from a String. Note that an Ident created
outside of the parser is not constrained to be an identifier.
Ident
public Ident(Object obj)
- Construct an Ident from an Object by converting it to a String
with
Object.toString(). Note that an Ident created outside of
the parser is not constrained to be an identifier.
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object id)
- Overrides:
equals in class Object