com.aptana.ide.regex.inputs
Class CharacterClassInput

java.lang.Object
  extended by com.aptana.ide.regex.inputs.Input
      extended by com.aptana.ide.regex.inputs.CharacterClassInput
Direct Known Subclasses:
AnyInput, DigitInput, WhiteSpaceInput, WordInput

public class CharacterClassInput
extends Input

Author:
Kevin Lindsey

Field Summary
protected  boolean locked
          A flag determining if this character class can receive new entries
 
Fields inherited from class com.aptana.ide.regex.inputs.Input
allCharacters, complement
 
Constructor Summary
CharacterClassInput()
          Create a new instance of CharacterClassInput
 
Method Summary
 void addInput(char input)
          Add the specified character to the character class
 void addInputs(char start, char end)
          Add the specified range of characters to the character class
 void addInputs(java.lang.String inputs)
          Add the characters from the specified string to the character class
 java.lang.String getCharacters()
          (non-Javadoc)
 boolean hasInput(char input)
          Determines if the specified input character is in the character class
 java.lang.String toString()
          Return a string representation of this input
 
Methods inherited from class com.aptana.ide.regex.inputs.Input
getAllCharacters, getComplement, setComplement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

locked

protected boolean locked
A flag determining if this character class can receive new entries

Constructor Detail

CharacterClassInput

public CharacterClassInput()
Create a new instance of CharacterClassInput

Method Detail

getCharacters

public java.lang.String getCharacters()
(non-Javadoc)

Overrides:
getCharacters in class Input
Returns:
Returns all characters for this Input as a string
See Also:
Input.getCharacters()

addInput

public void addInput(char input)
Add the specified character to the character class

Parameters:
input - The input character to add to this Input

addInputs

public void addInputs(char start,
                      char end)
Add the specified range of characters to the character class

Parameters:
start - The starting character to add to the character class
end - The ending character to add to the character class

addInputs

public void addInputs(java.lang.String inputs)
Add the characters from the specified string to the character class

Parameters:
inputs - A string of characters to add to the character class

hasInput

public boolean hasInput(char input)
Determines if the specified input character is in the character class

Overrides:
hasInput in class Input
Parameters:
input - The character to test for membership within this Input
Returns:
Returns true if the specified character is in the character class

toString

public java.lang.String toString()
Return a string representation of this input

Overrides:
toString in class Input
Returns:
Returns a string representation of this input