<li><ahref="../../../../com/comphenix/protocol/reflect/FieldUtils.html"title="class in com.comphenix.protocol.reflect"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/reflect/IntEnum.html"title="class in com.comphenix.protocol.reflect"><spanclass="strong">Next Class</span></a></li>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect">FuzzyReflection</a></code></td>
<divclass="block">Retrieves a fuzzy reflection instance from a given class.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect">FuzzyReflection</a></code></td>
<divclass="block">Retrieves a fuzzy reflection instance from a given class.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect">FuzzyReflection</a></code></td>
<divclass="block">Retrieves a fuzzy reflection instance from an object.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect">FuzzyReflection</a></code></td>
<pre>public static <ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect">FuzzyReflection</a> fromClass(java.lang.Class<?> source)</pre>
<divclass="block">Retrieves a fuzzy reflection instance from a given class.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>source</code> - - the class we'll use.</dd>
<pre>public static <ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect">FuzzyReflection</a> fromClass(java.lang.Class<?> source,
boolean forceAccess)</pre>
<divclass="block">Retrieves a fuzzy reflection instance from a given class.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>source</code> - - the class we'll use.</dd><dd><code>forceAccess</code> - - whether or not to override scope restrictions.</dd>
<pre>public static <ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect">FuzzyReflection</a> fromObject(java.lang.Object reference)</pre>
<divclass="block">Retrieves a fuzzy reflection instance from an object.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>reference</code> - - the object we'll use.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>A fuzzy reflection instance that uses the class of the given object.</dd></dl>
</li>
</ul>
<aname="fromObject(java.lang.Object, boolean)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>fromObject</h4>
<pre>public static <ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html"title="class in com.comphenix.protocol.reflect">FuzzyReflection</a> fromObject(java.lang.Object reference,
boolean forceAccess)</pre>
<divclass="block">Retrieves a fuzzy reflection instance from an object.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>reference</code> - - the object we'll use.</dd><dd><code>forceAccess</code> - - whether or not to override scope restrictions.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>A fuzzy reflection instance that uses the class of the given object.</dd></dl>
<divclass="block">Retrieves a method by looking at the parameter types only.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>name</code> - - potential name of the method. Only used by the error mechanism.</dd><dd><code>args</code> - - parameter types of the method to find.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The first method that satisfies the parameter types.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the method cannot be found.</dd></dl>
<divclass="block">Retrieves a method by looking at the parameter types and return type only.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>name</code> - - potential name of the method. Only used by the error mechanism.</dd><dd><code>returnType</code> - - return type of the method to find.</dd><dd><code>args</code> - - parameter types of the method to find.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The first method that satisfies the parameter types.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the method cannot be found.</dd></dl>
<divclass="block">Retrieves a method by looking at the parameter types and return type only.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>name</code> - - potential name of the method. Only used by the error mechanism.</dd><dd><code>returnTypeRegex</code> - - regular expression matching the return type of the method to find.</dd><dd><code>argsRegex</code> - - regular expressions of the matching parameter types.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The first method that satisfies the parameter types.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the method cannot be found.</dd></dl>
<divclass="block">Retrieves every method that has the given parameter types and return type.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>returnType</code> - - return type of the method to find.</dd><dd><code>args</code> - - parameter types of the method to find.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Every method that satisfies the given constraints.</dd></dl>
<divclass="block">Retrieves the first field with a type equal to or more specific to the given type.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>name</code> - - name the field probably is given. This will only be used in the error message.</dd><dd><code>type</code> - - type of the field to find.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The first field with a type that is an instance of the given type.</dd></dl>
Note that the type is matched using the full canonical representation, i.e.:
<ul>
<li>java.util.List</li>
<li>net.comphenix.xp.ExperienceMod</li>
</ul></div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>typeRegex</code> - - regular expression that will match the field type.</dd><dd><code>ignored</code> - - types to ignore.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The first field with a type that matches the given regular expression.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the field cannot be found.</dd></dl>
<li><ahref="../../../../com/comphenix/protocol/reflect/FieldUtils.html"title="class in com.comphenix.protocol.reflect"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/reflect/IntEnum.html"title="class in com.comphenix.protocol.reflect"><spanclass="strong">Next Class</span></a></li>