<li><ahref="../../../../../com/comphenix/protocol/reflect/cloning/CollectionCloner.html"title="class in com.comphenix.protocol.reflect.cloning"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../../com/comphenix/protocol/reflect/cloning/ImmutableDetector.html"title="class in com.comphenix.protocol.reflect.cloning"><spanclass="strong">Next Class</span></a></li>
<dd><ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">FieldCloner</span>
extends java.lang.Object
implements <ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a></pre>
<divclass="block">Represents a class capable of cloning objects by deeply copying its fields.</div>
<dl><dt><spanclass="strong">Author:</span></dt>
<dd>Kristian</dd></dl>
</li>
</ul>
</div>
<divclass="summary">
<ulclass="blockList">
<liclass="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="field_summary">
<!---->
</a>
<h3>Field Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Field Summary table, listing fields, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a></code></td>
<tdclass="colFirst"><code>protected <ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a></code></td>
<tdclass="colFirst"><code>protected <ahref="../../../../../com/comphenix/protocol/reflect/ObjectWriter.html"title="class in com.comphenix.protocol.reflect">ObjectWriter</a></code></td>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../../../com/comphenix/protocol/reflect/cloning/FieldCloner.html#FieldCloner(com.comphenix.protocol.reflect.cloning.Cloner, com.comphenix.protocol.reflect.instances.InstanceProvider)">FieldCloner</a></strong>(<ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a> defaultCloner,
<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a> instanceProvider)</code>
<divclass="block">Constructs a field cloner that copies objects by reading and writing the internal fields directly.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/reflect/cloning/FieldCloner.html#defaultTransform(com.comphenix.protocol.reflect.StructureModifier, com.comphenix.protocol.reflect.StructureModifier, com.comphenix.protocol.reflect.cloning.Cloner, int)">defaultTransform</a></strong>(<ahref="../../../../../com/comphenix/protocol/reflect/StructureModifier.html"title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object> modifierSource,
<ahref="../../../../../com/comphenix/protocol/reflect/StructureModifier.html"title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object> modifierDest,
<ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a> defaultCloner,
int fieldIndex)</code>
<divclass="block">Default implementation of the field transform.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a></code></td>
<divclass="block">Retrieve the default cloner used to clone the content of each field.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a></code></td>
<pre>protected <ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a> defaultCloner</pre>
</li>
</ul>
<aname="instanceProvider">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>instanceProvider</h4>
<pre>protected <ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a> instanceProvider</pre>
</li>
</ul>
<aname="writer">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>writer</h4>
<pre>protected <ahref="../../../../../com/comphenix/protocol/reflect/ObjectWriter.html"title="class in com.comphenix.protocol.reflect">ObjectWriter</a> writer</pre>
<pre>public FieldCloner(<ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a> defaultCloner,
<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a> instanceProvider)</pre>
<divclass="block">Constructs a field cloner that copies objects by reading and writing the internal fields directly.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>defaultCloner</code> - - the default cloner used while copying fields.</dd><dd><code>instanceProvider</code> - - used to construct new, empty copies of a given type.</dd></dl>
<pre>protected void defaultTransform(<ahref="../../../../../com/comphenix/protocol/reflect/StructureModifier.html"title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object> modifierSource,
<ahref="../../../../../com/comphenix/protocol/reflect/StructureModifier.html"title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object> modifierDest,
<ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a> defaultCloner,
int fieldIndex)</pre>
<divclass="block">Default implementation of the field transform. Applies a clone operation before a field value is written.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>modifierSource</code> - - modifier for the original object.</dd><dd><code>modifierDest</code> - - modifier for the new cloned object.</dd><dd><code>defaultCloner</code> - - cloner to use.</dd><dd><code>fieldIndex</code> - - the current field index.</dd></dl>
<divclass="block"><strong>Description copied from interface: <code><ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html#canClone(java.lang.Object)">Cloner</a></code></strong></div>
<divclass="block">Determine whether or not the current cloner can clone the given object.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html#canClone(java.lang.Object)">canClone</a></code> in interface <code><ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>source</code> - - the object that is being considered.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>TRUE if this cloner can actually clone the given object, FALSE otherwise.</dd></dl>
<divclass="block"><strong>Description copied from interface: <code><ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html#clone(java.lang.Object)">Cloner</a></code></strong></div>
<divclass="block">Perform the clone.
<p>
This method should never be called unless a corresponding <ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html#canClone(java.lang.Object)"><code>Cloner.canClone(Object)</code></a> returns TRUE.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html#clone(java.lang.Object)">clone</a></code> in interface <code><ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>source</code> - - the value to clone.</dd>
<pre>public <ahref="../../../../../com/comphenix/protocol/reflect/cloning/Cloner.html"title="interface in com.comphenix.protocol.reflect.cloning">Cloner</a> getDefaultCloner()</pre>
<divclass="block">Retrieve the default cloner used to clone the content of each field.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Cloner used to clone fields.</dd></dl>
</li>
</ul>
<aname="getInstanceProvider()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>getInstanceProvider</h4>
<pre>public <ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a> getInstanceProvider()</pre>
<divclass="block">Retrieve the instance provider this cloner is using to create new, empty classes.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The instance provider in use.</dd></dl>
<li><ahref="../../../../../com/comphenix/protocol/reflect/cloning/CollectionCloner.html"title="class in com.comphenix.protocol.reflect.cloning"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../../com/comphenix/protocol/reflect/cloning/ImmutableDetector.html"title="class in com.comphenix.protocol.reflect.cloning"><spanclass="strong">Next Class</span></a></li>