com.aptana.ide.regex.inputs
Class Input

java.lang.Object
  extended by com.aptana.ide.regex.inputs.Input
Direct Known Subclasses:
CharacterClassInput, CharacterInput

public class Input
extends java.lang.Object

Author:
Kevin Lindsey

Field Summary
protected static char[] allCharacters
          All characters in this Input
protected  boolean complement
          A flag that determines if the characters in this set are inclusive or exclusive
 
Constructor Summary
Input()
          Create a new instance of Input
 
Method Summary
protected  char[] getAllCharacters()
          Get all characters for this Input
 java.lang.String getCharacters()
          Get all character for this Input
 boolean getComplement()
          Determines if the set of characters in this input should be included or excluded
 boolean hasInput(char input)
          Determines if this Input type includes the specified character
 void setComplement(boolean value)
          Sets the complement state for this input
 java.lang.String toString()
          Return a string representation of this Input
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

allCharacters

protected static char[] allCharacters
All characters in this Input


complement

protected boolean complement
A flag that determines if the characters in this set are inclusive or exclusive

Constructor Detail

Input

public Input()
Create a new instance of Input

Method Detail

getAllCharacters

protected char[] getAllCharacters()
Get all characters for this Input

Returns:
Returns all characters for this Input as a character array

getCharacters

public java.lang.String getCharacters()
Get all character for this Input

Returns:
Returns all characters for this Input as a string

getComplement

public boolean getComplement()
Determines if the set of characters in this input should be included or excluded

Returns:
Returns true if this input should be complemented

setComplement

public void setComplement(boolean value)
Sets the complement state for this input

Parameters:
value - The new complement state

hasInput

public boolean hasInput(char input)
Determines if this Input type includes the specified character

Parameters:
input - The character to test for membership within this Input
Returns:
Returns true if this Input contains the specified character

toString

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

Overrides:
toString in class java.lang.Object
Returns:
Returns a string representation of this Input