fri.patterns.interpreter.parsergenerator
Class Token.Range
java.lang.Object
|
+--fri.patterns.interpreter.parsergenerator.Token.Range
- All Implemented Interfaces:
- java.lang.Comparable
- Enclosing class:
- Token
- public static class Token.Range
- extends java.lang.Object
- implements java.lang.Comparable
Range stores start and end Address of a token.
Field Summary |
Token.Address |
end
The end Address of this Token, one after the last character/byte. |
Token.Address |
start
The start Address of this Token, pointing to the first character/byte. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
start
public final Token.Address start
- The start Address of this Token, pointing to the first character/byte.
end
public final Token.Address end
- The end Address of this Token, one after the last character/byte.
Token.Range
public Token.Range(Token.Address start,
Token.Address end)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable