|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.chaperon.model.extended.Pattern
net.sourceforge.chaperon.model.extended.CharacterClass
public class CharacterClass
This class describes a pattern for a character class, which means the a character matches against a element of this class.
Field Summary |
---|
Fields inherited from class net.sourceforge.chaperon.model.extended.Pattern |
---|
index |
Constructor Summary | |
---|---|
CharacterClass()
Creates a pattern for a character class. |
Method Summary | |
---|---|
void |
addCharacterInterval(CharacterInterval interval)
|
void |
addSingleCharacter(SingleCharacter character)
|
java.lang.Object |
clone()
Create a clone of this pattern. |
boolean |
contains(char c)
|
boolean |
contains(char minimum,
char maximum)
|
CharacterInterval |
getCharacterInterval(int index)
|
int |
getCharacterIntervalCount()
|
CharacterInterval[] |
getCharacterIntervals()
|
PatternSet |
getFirstSet()
|
PatternSet |
getLastSet()
|
char[] |
getLimits()
|
SingleCharacter |
getSingleCharacter(int index)
|
int |
getSingleCharacterCount()
|
SingleCharacter[] |
getSingleCharacters()
|
java.lang.String |
getSymbol()
|
boolean |
isExclusive()
If this character class is exclusive |
boolean |
isNullable()
|
void |
setExclusive(boolean exclusive)
If the comparing character must match to the elements, or should not match to the elements. |
java.lang.String |
toString()
Create a clone of this pattern. |
Violations |
validate()
Validates this pattern. |
Methods inherited from class net.sourceforge.chaperon.model.extended.Pattern |
---|
addAscendingSuccessor, addDescendingSuccessor, addSuccessor, getAllPattern, getAncestors, getAscendingAncestors, getAscendingSuccessors, getDefinition, getDescendingAncestors, getDescendingSuccessors, getLocation, getSuccessors, hasAncestor, hasAscendingAncestor, hasAscendingSuccessor, hasDescendingAncestor, hasDescendingSuccessor, hasSuccessor, setDefinition, setLocation, toString, update |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CharacterClass()
Method Detail |
---|
public void addSingleCharacter(SingleCharacter character)
public SingleCharacter getSingleCharacter(int index)
public SingleCharacter[] getSingleCharacters()
public int getSingleCharacterCount()
public void addCharacterInterval(CharacterInterval interval)
public CharacterInterval getCharacterInterval(int index)
public CharacterInterval[] getCharacterIntervals()
public int getCharacterIntervalCount()
public void setExclusive(boolean exclusive)
exclusive
- If the character class should be exclusive.public boolean isExclusive()
public boolean isNullable()
isNullable
in class Pattern
public PatternSet getFirstSet()
getFirstSet
in class Pattern
public PatternSet getLastSet()
getLastSet
in class Pattern
public char[] getLimits()
getLimits
in class Pattern
public boolean contains(char minimum, char maximum)
contains
in class Pattern
public boolean contains(char c)
contains
in class Pattern
public java.lang.String getSymbol()
getSymbol
in class Pattern
public java.lang.String toString()
toString
in class java.lang.Object
java.lang.CloneNotSupportedException
- If an exception occurs during the cloning.public java.lang.Object clone()
clone
in class Pattern
java.lang.CloneNotSupportedException
- If an exception occurs during the cloning.public Violations validate()
validate
in class Pattern
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |