| xtc.parser.Element xtc.parser.Terminal xtc.parser.CharTerminal xtc.parser.CharSwitch
CharSwitch | public class CharSwitch extends CharTerminal implements InternalElement(Code) | | A character switch terminal. This internal element is used to
improve parser performance in recognizing
Terminalterminals .
author: Robert Grimm version: $Revision: 1.8 $ |
Method Summary | |
public boolean | equals(Object o) | public CharCase | hasCase(CharClass klass) Determine whether this character switch has a character case for
the specified character class. | public int | hashCode() | public boolean | overlaps(CharClass klass) Determine whether this character switch has a character case that
overlaps the specified character class. | public Tag | tag() |
CharSwitch | public CharSwitch(List<CharCase> cases)(Code) | | Create a new character switch element.
Parameters: cases - The list of cases. |
CharSwitch | public CharSwitch(List<CharCase> cases, Element base)(Code) | | Create a new character switch element.
Parameters: cases - The list of cases. Parameters: base - The default element. |
CharSwitch | public CharSwitch(CharClass klass, Element element)(Code) | | Create a new character switch element which includes a case for
the specified character class and corresponding element. If the
class is exclusive, the element of the case is left null and the
base is set to the specified element. Furthermore, the specified
class is modified to be non-exclusive.
Parameters: klass - The character class. Parameters: element - The corresponding element. |
hasCase | public CharCase hasCase(CharClass klass)(Code) | | Determine whether this character switch has a character case for
the specified character class. The specified character class
must be non-exclusive.
Parameters: klass - The character class. The corresponding character case or null ifthis character switch does not have a case for the characterclass. |
hashCode | public int hashCode()(Code) | | |
overlaps | public boolean overlaps(CharClass klass)(Code) | | Determine whether this character switch has a character case that
overlaps the specified character class. The specified character
class must be non-exclusive.
See Also: CharClass.overlaps(CharClass) Parameters: klass - The character class. true if this character switch has an overlappingcharacter case. |
Methods inherited from xtc.parser.Element | abstract public Tag tag()(Code)(Java Doc)
|
|
|