<li><ahref="../../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect"><spanclass="strong">Next Class</span></a></li>
<divclass="block">Gets an accessible <code>Field</code> by name respecting scope.
Superclasses/interfaces will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>cls</code> - the class to reflect, must not be null</dd><dd><code>fieldName</code> - the field name to obtain</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the Field object</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the class or field name is null</dd></dl>
<divclass="block">Gets an accessible <code>Field</code> by name breaking scope if
requested. Superclasses/interfaces will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>cls</code> - the class to reflect, must not be null</dd><dd><code>fieldName</code> - the field name to obtain</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method. <code>False</code> will
only match public fields.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the Field object</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the class or field name is null</dd></dl>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>field</code> - to read</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the field value</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the field is null or not static</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not made accessible</dd></dl>
<divclass="block">Read the named public static field. Superclasses will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>cls</code> - the class to reflect, must not be null</dd><dd><code>fieldName</code> - the field name to obtain</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the value of the field</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the class or field name is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not accessible</dd></dl>
<divclass="block">Read the named static field. Superclasses will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>cls</code> - the class to reflect, must not be null</dd><dd><code>fieldName</code> - the field name to obtain</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method. <code>False</code> will
only match public fields.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the Field object</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the class or field name is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not made accessible</dd></dl>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>field</code> - the field to use</dd><dd><code>target</code> - the object to call on, may be null for static fields</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the field value</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the field is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not accessible</dd></dl>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>field</code> - the field to use</dd><dd><code>target</code> - the object to call on, may be null for static fields</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the field value</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the field is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not made accessible</dd></dl>
<divclass="block">Read the named public field. Superclasses will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>target</code> - the object to reflect, must not be null</dd><dd><code>fieldName</code> - the field name to obtain</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the value of the field</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the class or field name is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the named field is not public</dd></dl>
<divclass="block">Read the named field. Superclasses will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>target</code> - the object to reflect, must not be null</dd><dd><code>fieldName</code> - the field name to obtain</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method. <code>False</code> will
only match public fields.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the field value</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the class or field name is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the named field is not made accessible</dd></dl>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>field</code> - to write</dd><dd><code>value</code> - to set</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method. <code>False</code> will
only match public fields.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the field is null or not static</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not made accessible or is
<divclass="block">Write a named public static Field. Superclasses will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>cls</code> - Class on which the Field is to be found</dd><dd><code>fieldName</code> - to write</dd><dd><code>value</code> - to set</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the field cannot be located or is not
static</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not public or is final</dd></dl>
<divclass="block">Write a named static Field. Superclasses will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>cls</code> - Class on which the Field is to be found</dd><dd><code>fieldName</code> - to write</dd><dd><code>value</code> - to set</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method. <code>False</code> will
only match public fields.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the field cannot be located or is not
static</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not made accessible or is
<divclass="block">Write an accessible field.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>field</code> - to write</dd><dd><code>target</code> - the object to call on, may be null for static fields</dd><dd><code>value</code> - to set</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the field is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not accessible or is final</dd></dl>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>field</code> - to write</dd><dd><code>target</code> - the object to call on, may be null for static fields</dd><dd><code>value</code> - to set</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method. <code>False</code> will
only match public fields.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the field is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not made accessible or is
<divclass="block">Write a public field. Superclasses will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>target</code> - the object to reflect, must not be null</dd><dd><code>fieldName</code> - the field name to obtain</dd><dd><code>value</code> - to set</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if <code>target</code> or
<code>fieldName</code> is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not accessible</dd></dl>
<divclass="block">Write a field. Superclasses will be considered.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>target</code> - the object to reflect, must not be null</dd><dd><code>fieldName</code> - the field name to obtain</dd><dd><code>value</code> - to set</dd><dd><code>forceAccess</code> - whether to break scope restrictions using the
<code>setAccessible</code> method. <code>False</code> will
only match public fields.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if <code>target</code> or
<code>fieldName</code> is null</dd>
<dd><code>java.lang.IllegalAccessException</code> - if the field is not made accessible</dd></dl>
<li><ahref="../../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect"><spanclass="strong">Next Class</span></a></li>