public final class StringValue extends java.lang.Object implements DataValue
Constructor and Description |
---|
StringValue(java.lang.String value)
Create a value with the specified string content.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ValueVisitor visitor) |
StringValue |
copy() |
boolean |
equals(java.lang.Object o) |
DataType |
getType() |
java.lang.String |
getValue()
Returns the underlying string content.
|
int |
hashCode() |
java.lang.String |
toString() |
public StringValue(java.lang.String value)
value
- stringCoreException
- if the passed string is nullpublic java.lang.String getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void accept(ValueVisitor visitor)
public StringValue copy()