- java.lang.Object
-
- swim.structure.Form<T>
-
- swim.structure.form.FieldForm<T>
-
- swim.structure.form.AttrForm<T>
-
public final class AttrForm<T> extends FieldForm<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
cast(Item item, T object)
Converts a structurally typeditem
into a nominally typed Java object based on the provided prototypeobject
.Field
field()
Text
key()
Item
mold(T object)
Converts a nominally typed Javaobject
into its structurally typed equivalent.Item
mold(T object, Item item)
Converts a nominally typed Javaobject
into its structurally typed equivalent based on the provided prototypeitem
.Class<?>
type()
Returns the reifiedClass
of typeT
.-
Methods inherited from class swim.structure.Form
forArray, forBigInteger, forBoolean, forBuiltin, forByte, forByteBuffer, forCharacter, forClass, forClass, forCollection, forDouble, forFloat, forInteger, forItem, forList, forLong, forMap, forMap, forNumber, forSet, forShort, forString, forValue, isBuiltin, tag, tag, unit, unit
-
-
-
-
Method Detail
-
type
public Class<?> type()
Description copied from class:Form
Returns the reifiedClass
of typeT
.
-
mold
public Item mold(T object, Item item)
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent based on the provided prototypeitem
. The passed-initem
is assumed to be non-null
. The returnedItem
must never benull
.
-
mold
public Item mold(T object)
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent. The returnedItem
must never benull
.
-
-