Class SymbolicChar
- java.lang.Object
-
- it.unive.lisa.util.datastructures.regex.symbolic.SymbolicChar
-
- Direct Known Subclasses:
UnknownSymbolicChar
public class SymbolicChar extends java.lang.ObjectAn symbolic character, that is, an object representing a single and possibly unknown character.
-
-
Constructor Summary
Constructors Constructor Description SymbolicChar(char ch)Builds the symbolic character.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charasChar()Converts this symbolic character to a normal character.booleanequals(java.lang.Object obj)inthashCode()booleanis(char ch)Yieldstrueif and only if this symbolic character represent the given concrete one.java.lang.StringtoString()
-
-
-
Method Detail
-
asChar
public char asChar()
Converts this symbolic character to a normal character.- Returns:
- the character
-
is
public boolean is(char ch)
Yieldstrueif and only if this symbolic character represent the given concrete one.- Parameters:
ch- the character- Returns:
trueif that condition holds
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-