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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitflatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteNamepublic 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()
AbstractTraitcreateNode in class AbstractTrait