<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>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html#getConstructor(com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMatcher)">getConstructor</a></strong>(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><<ahref="../../../../com/comphenix/protocol/reflect/MethodInfo.html"title="class in com.comphenix.protocol.reflect">MethodInfo</a>> matcher)</code>
<divclass="block">Retrieve the first constructor that matches.</div>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html#getConstructorList(com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMatcher)">getConstructorList</a></strong>(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><<ahref="../../../../com/comphenix/protocol/reflect/MethodInfo.html"title="class in com.comphenix.protocol.reflect">MethodInfo</a>> matcher)</code>
<divclass="block">Retrieve a list of every constructor that matches the given matcher.</div>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html#getField(com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMatcher)">getField</a></strong>(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><java.lang.reflect.Field> matcher)</code>
<divclass="block">Retrieve the first field that matches.</div>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html#getFieldList(com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMatcher)">getFieldList</a></strong>(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><java.lang.reflect.Field> matcher)</code>
<divclass="block">Retrieve a list of every field that matches the given matcher.</div>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html#getMethod(com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMatcher)">getMethod</a></strong>(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><<ahref="../../../../com/comphenix/protocol/reflect/MethodInfo.html"title="class in com.comphenix.protocol.reflect">MethodInfo</a>> matcher)</code>
<divclass="block">Retrieve the first method that matches.</div>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/reflect/FuzzyReflection.html#getMethodList(com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMatcher)">getMethodList</a></strong>(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><<ahref="../../../../com/comphenix/protocol/reflect/MethodInfo.html"title="class in com.comphenix.protocol.reflect">MethodInfo</a>> matcher)</code>
<divclass="block">Retrieve a list of every method that matches the given matcher.</div>
<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>
<pre>public java.lang.reflect.Method getMethod(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><<ahref="../../../../com/comphenix/protocol/reflect/MethodInfo.html"title="class in com.comphenix.protocol.reflect">MethodInfo</a>> matcher)</pre>
<divclass="block">Retrieve the first method that matches.
<p>
ForceAccess must be TRUE in order for this method to access private, protected and package level method.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>matcher</code> - - the matcher to use.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The first method that satisfies the given matcher.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the method cannot be found.</dd></dl>
<pre>public java.util.List<java.lang.reflect.Method> getMethodList(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><<ahref="../../../../com/comphenix/protocol/reflect/MethodInfo.html"title="class in com.comphenix.protocol.reflect">MethodInfo</a>> matcher)</pre>
<divclass="block">Retrieve a list of every method that matches the given matcher.
<p>
ForceAccess must be TRUE in order for this method to access private, protected and package level methods.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>matcher</code> - - the matcher to apply.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>List of found methods.</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>
<pre>public java.lang.reflect.Field getField(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><java.lang.reflect.Field> matcher)</pre>
<divclass="block">Retrieve the first field that matches.
<p>
ForceAccess must be TRUE in order for this method to access private, protected and package level fields.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>matcher</code> - - the matcher to use.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The first method that satisfies the given matcher.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the method cannot be found.</dd></dl>
<pre>public java.util.List<java.lang.reflect.Field> getFieldList(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><java.lang.reflect.Field> matcher)</pre>
<divclass="block">Retrieve a list of every field that matches the given matcher.
<p>
ForceAccess must be TRUE in order for this method to access private, protected and package level fields.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>matcher</code> - - the matcher to apply.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>List of found fields.</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>
<pre>public java.lang.reflect.Constructor<?> getConstructor(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><<ahref="../../../../com/comphenix/protocol/reflect/MethodInfo.html"title="class in com.comphenix.protocol.reflect">MethodInfo</a>> matcher)</pre>
<divclass="block">Retrieve the first constructor that matches.
<p>
ForceAccess must be TRUE in order for this method to access private, protected and package level constructors.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>matcher</code> - - the matcher to use.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The first constructor that satisfies the given matcher.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the constructor cannot be found.</dd></dl>
<pre>public java.util.List<java.lang.reflect.Constructor<?>> getConstructorList(<ahref="../../../../com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher.html"title="class in com.comphenix.protocol.reflect.fuzzy">AbstractFuzzyMatcher</a><<ahref="../../../../com/comphenix/protocol/reflect/MethodInfo.html"title="class in com.comphenix.protocol.reflect">MethodInfo</a>> matcher)</pre>
<divclass="block">Retrieve a list of every constructor that matches the given matcher.
<p>
ForceAccess must be TRUE in order for this method to access private, protected and package level constructors.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>matcher</code> - - the matcher to apply.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>List of found constructors.</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>