public static class DynFields.UnboundField<T>
extends java.lang.Object
Field
.
Allows callers to invoke the wrapped method with all Exceptions wrapped by
RuntimeException, or with a single Exception catch block.Modifier and Type | Method and Description |
---|---|
DynFields.StaticField<T> |
asStatic()
Returns this field as a StaticField.
|
DynFields.BoundField<T> |
bind(java.lang.Object target)
Returns this method as a BoundMethod for the given receiver.
|
T |
get(java.lang.Object target) |
boolean |
isAlwaysNull()
Returns whether the field is always null.
|
boolean |
isStatic()
Returns whether the field is a static field.
|
void |
set(java.lang.Object target,
T value) |
java.lang.String |
toString() |
public T get(java.lang.Object target)
public void set(java.lang.Object target, T value)
public java.lang.String toString()
toString
in class java.lang.Object
public DynFields.BoundField<T> bind(java.lang.Object target)
target
- an Object on which to get or set this fieldDynFields.BoundField
for this field and the targetjava.lang.IllegalStateException
- if the method is staticjava.lang.IllegalArgumentException
- if the receiver's class is incompatiblepublic DynFields.StaticField<T> asStatic()
DynFields.StaticField
for this fieldjava.lang.IllegalStateException
- if the method is not staticpublic boolean isStatic()
public boolean isAlwaysNull()