Package | Description |
---|---|
com.comphenix.protocol.reflect.cloning |
Modifier and Type | Class and Description |
---|---|
class |
AggregateCloner
Implements a cloning procedure by trying multiple methods in turn until one is successful.
|
class |
BukkitCloner
Represents an object that can clone a specific list of Bukkit- and Minecraft-related objects.
|
class |
CollectionCloner
Attempts to clone collection and array classes.
|
class |
FieldCloner
Represents a class capable of cloning objects by deeply copying its fields.
|
class |
ImmutableDetector
Detects classes that are immutable, and thus doesn't require cloning.
|
class |
NullableCloner
Creates a cloner wrapper that accepts and clones NULL values.
|
Modifier and Type | Field and Description |
---|---|
protected Cloner |
FieldCloner.defaultCloner |
protected Cloner |
NullableCloner.wrapped |
Modifier and Type | Method and Description |
---|---|
Cloner |
AggregateCloner.BuilderParameters.getAggregateCloner()
Retrieve the aggregate cloner that is being built.
|
Cloner |
FieldCloner.getDefaultCloner()
Retrieve the default cloner used to clone the content of each field.
|
Cloner |
CollectionCloner.getDefaultCloner()
Retrieve the default cloner used to clone the content of each element in the collection.
|
Cloner |
NullableCloner.getWrapped() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Cloner> |
AggregateCloner.getCloners()
Retrieves a view of the current list of cloners.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FieldCloner.defaultTransform(StructureModifier<java.lang.Object> modifierSource,
StructureModifier<java.lang.Object> modifierDest,
Cloner defaultCloner,
int fieldIndex)
Default implementation of the field transform.
|
Modifier and Type | Method and Description |
---|---|
AggregateCloner.Builder |
AggregateCloner.Builder.andThen(java.lang.Class<? extends Cloner> type)
Add the next cloner that will be considered in turn.
|
AggregateCloner.Builder |
AggregateCloner.Builder.andThen(com.google.common.base.Function<AggregateCloner.BuilderParameters,Cloner> factory)
Add the next cloner that will be considered in turn.
|
Constructor and Description |
---|
CollectionCloner(Cloner defaultCloner)
Constructs a new collection and array cloner with the given inner element cloner.
|
FieldCloner(Cloner defaultCloner,
InstanceProvider instanceProvider)
Constructs a field cloner that copies objects by reading and writing the internal fields directly.
|
NullableCloner(Cloner wrapped) |