net.sf.parser4j.parser.entity.data
Class TerminalCharRange

java.lang.Object
  extended by net.sf.parser4j.parser.entity.data.TerminalCharRange
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TerminalCharRange>

public class TerminalCharRange
extends java.lang.Object
implements java.lang.Comparable<TerminalCharRange>, java.io.Serializable

terminal character range:
[ firstTerminalValue , * lastTerminalValue ]

Author:
luc peuvrier
See Also:
Serialized Form

Constructor Summary
TerminalCharRange(int firstTerminalValue, int lastTerminalValue)
           
 
Method Summary
 int compareTo(TerminalCharRange terminalCharRange)
           
 boolean contains(int characterValue)
           
 boolean equals(java.lang.Object obj)
           
 int getFirstTerminalValue()
           
 int getLastTerminalValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TerminalCharRange

public TerminalCharRange(int firstTerminalValue,
                         int lastTerminalValue)
Method Detail

getFirstTerminalValue

public int getFirstTerminalValue()

getLastTerminalValue

public int getLastTerminalValue()

contains

public boolean contains(int characterValue)

compareTo

public int compareTo(TerminalCharRange terminalCharRange)
Specified by:
compareTo in interface java.lang.Comparable<TerminalCharRange>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.