Package | Description |
---|---|
com.comphenix.protocol.reflect | |
com.comphenix.protocol.reflect.accessors | |
com.comphenix.protocol.wrappers |
Constructor and Description |
---|
VolatileField(FieldAccessor accessor,
java.lang.Object container)
Initializes a volatile field with the given accessor and associated object.
|
Modifier and Type | Class and Description |
---|---|
static class |
Accessors.SynchronizedFieldAccessor
Represents a field accessor that synchronizes access to the underlying field.
|
class |
ReadOnlyFieldAccessor |
Modifier and Type | Method and Description |
---|---|
static FieldAccessor |
Accessors.getCached(FieldAccessor inner)
Retrieve a field accessor that will cache the content of the field.
|
static FieldAccessor |
Accessors.getFieldAcccessorOrNull(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.Class<?> fieldType)
Retrieve a field accessor for a field with the given name and equivalent type, or NULL.
|
static FieldAccessor |
Accessors.getFieldAccessor(java.lang.Class<?> instanceClass,
java.lang.Class<?> fieldClass,
boolean forceAccess)
Retrieve an accessor for the first field of the given type.
|
static FieldAccessor |
Accessors.getFieldAccessor(java.lang.Class<?> instanceClass,
java.lang.String fieldName,
boolean forceAccess)
Retrieve an accessor for the first field of the given type.
|
static FieldAccessor |
Accessors.getFieldAccessor(java.lang.reflect.Field field)
Retrieve a field accessor from a given field that uses unchecked exceptions.
|
static FieldAccessor |
Accessors.getFieldAccessor(java.lang.reflect.Field field,
boolean forceAccess)
Retrieve a field accessor from a given field that uses unchecked exceptions.
|
static FieldAccessor[] |
Accessors.getFieldAccessorArray(java.lang.Class<?> instanceClass,
java.lang.Class<?> fieldClass,
boolean forceAccess)
Retrieve an accessor (in declared order) for every field of the givne type.
|
static FieldAccessor |
Accessors.getSynchronized(FieldAccessor accessor)
Retrieve a field accessor where the write operation is synchronized on the current field value.
|
Modifier and Type | Method and Description |
---|---|
static FieldAccessor |
Accessors.getCached(FieldAccessor inner)
Retrieve a field accessor that will cache the content of the field.
|
static FieldAccessor |
Accessors.getSynchronized(FieldAccessor accessor)
Retrieve a field accessor where the write operation is synchronized on the current field value.
|
Modifier and Type | Method and Description |
---|---|
static ReadOnlyFieldAccessor |
TroveWrapper.wrapListField(FieldAccessor accessor)
Retrieve a read-only field accessor that automatically wraps the underlying Trove instance.
|
static ReadOnlyFieldAccessor |
TroveWrapper.wrapMapField(FieldAccessor accessor)
Retrieve a read-only field accessor that automatically wraps the underlying Trove instance.
|
static ReadOnlyFieldAccessor |
TroveWrapper.wrapMapField(FieldAccessor accessor,
com.google.common.base.Function<java.lang.Integer,java.lang.Integer> noEntryTransform)
Retrieve a read-only field accessor that automatically wraps the underlying Trove instance.
|
static ReadOnlyFieldAccessor |
TroveWrapper.wrapSetField(FieldAccessor accessor)
Retrieve a read-only field accessor that automatically wraps the underlying Trove instance.
|