Class StringRepresentation
- java.lang.Object
-
- it.unive.lisa.analysis.representation.DomainRepresentation
-
- it.unive.lisa.analysis.representation.StringRepresentation
-
- All Implemented Interfaces:
java.lang.Comparable<DomainRepresentation>
public class StringRepresentation extends DomainRepresentation
ADomainRepresentationin the form of a single string element.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringrepresentationThe textual representation.
-
Constructor Summary
Constructors Constructor Description StringRepresentation(java.lang.Object obj)Builds a new representation starting from the given object.StringRepresentation(java.lang.String representation)Builds a new representation containing the given string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()SerializableValuetoSerializableValue()Produces a serializable version of this representation.java.lang.StringtoString()-
Methods inherited from class it.unive.lisa.analysis.representation.DomainRepresentation
compareTo, getProperties, setProperty
-
-
-
-
Constructor Detail
-
StringRepresentation
public StringRepresentation(java.lang.String representation)
Builds a new representation containing the given string.- Parameters:
representation- the string
-
StringRepresentation
public StringRepresentation(java.lang.Object obj)
Builds a new representation starting from the given object.String.valueOf(Object)is used to extract its string representation.- Parameters:
obj- the object
-
-
Method Detail
-
toSerializableValue
public SerializableValue toSerializableValue()
Description copied from class:DomainRepresentationProduces a serializable version of this representation.- Specified by:
toSerializableValuein classDomainRepresentation- Returns:
- an instance of
SerializableValuecontaining representing the same information as this representation
-
toString
public java.lang.String toString()
- Specified by:
toStringin classDomainRepresentation
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainRepresentation
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classDomainRepresentation
-
-