Package org.nineml.coffeegrinder.tokens
Class TokenUndefined
java.lang.Object
org.nineml.coffeegrinder.util.Decoratable
org.nineml.coffeegrinder.tokens.Token
org.nineml.coffeegrinder.tokens.TokenUndefined
A token that can match nothing.
This is used to provide a "right hand side" for undefined tokens. They can't match anything.
-
Field Summary
Fields -
Method Summary
Methods inherited from class org.nineml.coffeegrinder.util.Decoratable
addAttribute, addAttributes, getAttribute, getAttributes, getAttributesMap, getAttributeValue, hasAttribute
-
Field Details
-
undefined
-
-
Method Details
-
getValue
Return the string value of this token. -
matches
Does this token match the input?No, it does not.
-
equals
Test tokens for equality.The singleton
TokenUndefinedis only equal to itself. -
hashCode
public int hashCode()Assure that equal tokens return the same hash code. -
toString
Pretty print a token.
-