public abstract class StringTrait extends AbstractTrait
Modifier and Type | Class and Description |
---|---|
static class |
StringTrait.Provider<T extends StringTrait>
Trait provider that expects a string value.
|
Constructor and Description |
---|
StringTrait(ShapeId id,
java.lang.String value,
FromSourceLocation sourceLocation) |
Modifier and Type | Method and Description |
---|---|
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.lang.String |
getValue() |
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public StringTrait(ShapeId id, java.lang.String value, FromSourceLocation sourceLocation)
id
- The ID of the trait being created.value
- The string value of the trait.sourceLocation
- Where the trait was defined.public java.lang.String getValue()
protected final Node createNode()
AbstractTrait
createNode
in class AbstractTrait