Saber-Factions/javadoc/com/massivecraft/factions/util/Particles/ReflectionUtils.html

952 lines
57 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_191) on Thu Dec 06 16:05:49 CST 2018 -->
<title>ReflectionUtils</title>
<meta content="2018-12-06" name="date">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ReflectionUtils";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/massivecraft/factions/util/Particles/ParticleEffect.ParticleProperty.html" title="enum in com.massivecraft.factions.util.Particles"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html" title="enum in com.massivecraft.factions.util.Particles"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/massivecraft/factions/util/Particles/ReflectionUtils.html" target="_top">Frames</a></li>
<li><a href="ReflectionUtils.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.massivecraft.factions.util.Particles</div>
<h2 title="Class ReflectionUtils" class="title">Class ReflectionUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.massivecraft.factions.util.Particles.ReflectionUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="typeNameLabel">ReflectionUtils</span>
extends java.lang.Object</pre>
<div class="block"><b>ReflectionUtils</b>
This class provides useful methods which makes dealing with reflection much easier, especially when working with
Bukkit
You are welcome to use it, modify it and redistribute it under the following conditions:
<ul>
<li>Don't claim this class as your own
<li>Don't remove this disclaimer
</ul>
<i>It would be nice if you provide credit to me if you use this class in a published project</i></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.DataType</a></span></code>
<div class="block">Represents an enumeration of Java data types with corresponding classes
This class is part of the <b>ReflectionUtils</b> and follows the same usage conditions
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a></span></code>
<div class="block">Represents an enumeration of dynamic packages of NMS and CraftBukkit
This class is part of the <b>ReflectionUtils</b> and follows the same usage conditions
</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static java.lang.reflect.Constructor&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getConstructor-java.lang.Class-java.lang.Class...-">getConstructor</a></span>(java.lang.Class&lt;?&gt;&nbsp;clazz,
java.lang.Class&lt;?&gt;...&nbsp;parameterTypes)</code>
<div class="block">Returns the constructor of a given class with the given parameter types</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static java.lang.reflect.Constructor&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getConstructor-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-java.lang.Class...-">getConstructor</a></span>(java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
java.lang.Class&lt;?&gt;...&nbsp;parameterTypes)</code>
<div class="block">Returns the constructor of a desired class with the given parameter types</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static java.lang.reflect.Field</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getField-java.lang.Class-boolean-java.lang.String-">getField</a></span>(java.lang.Class&lt;?&gt;&nbsp;clazz,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)</code>
<div class="block">Returns a field of the target class with the given name</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static java.lang.reflect.Field</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getField-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-boolean-java.lang.String-">getField</a></span>(java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)</code>
<div class="block">Returns a field of a desired class with the given name</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static java.lang.reflect.Method</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getMethod-java.lang.Class-java.lang.String-java.lang.Class...-">getMethod</a></span>(java.lang.Class&lt;?&gt;&nbsp;clazz,
java.lang.String&nbsp;methodName,
java.lang.Class&lt;?&gt;...&nbsp;parameterTypes)</code>
<div class="block">Returns a method of a class with the given parameter types</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static java.lang.reflect.Method</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getMethod-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-java.lang.String-java.lang.Class...-">getMethod</a></span>(java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
java.lang.String&nbsp;methodName,
java.lang.Class&lt;?&gt;...&nbsp;parameterTypes)</code>
<div class="block">Returns a method of a desired class with the given parameter types</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getValue-java.lang.Object-boolean-java.lang.String-">getValue</a></span>(java.lang.Object&nbsp;instance,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)</code>
<div class="block">Returns the value of a field with the given name of an object</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getValue-java.lang.Object-java.lang.Class-boolean-java.lang.String-">getValue</a></span>(java.lang.Object&nbsp;instance,
java.lang.Class&lt;?&gt;&nbsp;clazz,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)</code>
<div class="block">Returns the value of a field of the given class of an object</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getValue-java.lang.Object-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-boolean-java.lang.String-">getValue</a></span>(java.lang.Object&nbsp;instance,
java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)</code>
<div class="block">Returns the value of a field of a desired class of an object</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#instantiateObject-java.lang.Class-java.lang.Object...-">instantiateObject</a></span>(java.lang.Class&lt;?&gt;&nbsp;clazz,
java.lang.Object...&nbsp;arguments)</code>
<div class="block">Returns an instance of a class with the given arguments</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#instantiateObject-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-java.lang.Object...-">instantiateObject</a></span>(java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
java.lang.Object...&nbsp;arguments)</code>
<div class="block">Returns an instance of a desired class with the given arguments</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#invokeMethod-java.lang.Object-java.lang.Class-java.lang.String-java.lang.Object...-">invokeMethod</a></span>(java.lang.Object&nbsp;instance,
java.lang.Class&lt;?&gt;&nbsp;clazz,
java.lang.String&nbsp;methodName,
java.lang.Object...&nbsp;arguments)</code>
<div class="block">Invokes a method of the target class on an object with the given arguments</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#invokeMethod-java.lang.Object-java.lang.String-java.lang.Object...-">invokeMethod</a></span>(java.lang.Object&nbsp;instance,
java.lang.String&nbsp;methodName,
java.lang.Object...&nbsp;arguments)</code>
<div class="block">Invokes a method on an object with the given arguments</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#invokeMethod-java.lang.Object-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-java.lang.String-java.lang.Object...-">invokeMethod</a></span>(java.lang.Object&nbsp;instance,
java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
java.lang.String&nbsp;methodName,
java.lang.Object...&nbsp;arguments)</code>
<div class="block">Invokes a method of a desired class on an object with the given arguments</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#setValue-java.lang.Object-boolean-java.lang.String-java.lang.Object-">setValue</a></span>(java.lang.Object&nbsp;instance,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName,
java.lang.Object&nbsp;value)</code>
<div class="block">Sets the value of a field with the given name of an object</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#setValue-java.lang.Object-java.lang.Class-boolean-java.lang.String-java.lang.Object-">setValue</a></span>(java.lang.Object&nbsp;instance,
java.lang.Class&lt;?&gt;&nbsp;clazz,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName,
java.lang.Object&nbsp;value)</code>
<div class="block">Sets the value of a field of the given class of an object</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#setValue-java.lang.Object-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-boolean-java.lang.String-java.lang.Object-">setValue</a></span>(java.lang.Object&nbsp;instance,
java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName,
java.lang.Object&nbsp;value)</code>
<div class="block">Sets the value of a field of a desired class of an object</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getConstructor-java.lang.Class-java.lang.Class...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getConstructor</h4>
<pre>public static&nbsp;java.lang.reflect.Constructor&lt;?&gt;&nbsp;getConstructor(java.lang.Class&lt;?&gt;&nbsp;clazz,
java.lang.Class&lt;?&gt;...&nbsp;parameterTypes)
throws java.lang.NoSuchMethodException</pre>
<div class="block">Returns the constructor of a given class with the given parameter types</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clazz</code> - Target class</dd>
<dd><code>parameterTypes</code> - Parameter types of the desired constructor</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The constructor of the target class with the specified parameter types</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired constructor with the specified parameter types cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html" title="enum in com.massivecraft.factions.util.Particles"><code>ReflectionUtils.DataType</code></a>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html#getPrimitive-java.lang.Class:A-"><code>ReflectionUtils.DataType.getPrimitive(Class[])</code></a>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html#compare-java.lang.Class:A-java.lang.Class:A-"><code>ReflectionUtils.DataType.compare(Class[], Class[])</code></a></dd>
</dl>
</li>
</ul>
<a name="getConstructor-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-java.lang.Class...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getConstructor</h4>
<pre>public static&nbsp;java.lang.reflect.Constructor&lt;?&gt;&nbsp;getConstructor(java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
java.lang.Class&lt;?&gt;...&nbsp;parameterTypes)
throws java.lang.NoSuchMethodException,
java.lang.ClassNotFoundException</pre>
<div class="block">Returns the constructor of a desired class with the given parameter types</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>className</code> - Name of the desired target class</dd>
<dd><code>packageType</code> - Package where the desired target class is located</dd>
<dd><code>parameterTypes</code> - Parameter types of the desired constructor</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The constructor of the desired target class with the specified parameter types</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired constructor with the specified parameter types cannot be found</dd>
<dd><code>java.lang.ClassNotFoundException</code> - ClassNotFoundException If the desired target class with the specified name and package cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>(String, PackageType)</code>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getConstructor-java.lang.Class-java.lang.Class...-"><code>getConstructor(Class, Class...)</code></a></dd>
</dl>
</li>
</ul>
<a name="instantiateObject-java.lang.Class-java.lang.Object...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>instantiateObject</h4>
<pre>public static&nbsp;java.lang.Object&nbsp;instantiateObject(java.lang.Class&lt;?&gt;&nbsp;clazz,
java.lang.Object...&nbsp;arguments)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException</pre>
<div class="block">Returns an instance of a class with the given arguments</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clazz</code> - Target class</dd>
<dd><code>arguments</code> - Arguments which are used to construct an object of the target class</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The instance of the target class with the specified arguments</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.InstantiationException</code> - If you cannot create an instance of the target class due to certain circumstances</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the desired constructor cannot be accessed due to certain circumstances</dd>
<dd><code>java.lang.IllegalArgumentException</code> - If the types of the arguments do not match the parameter types of the constructor (this should not occur since it searches for a constructor with the types of the arguments)</dd>
<dd><code>java.lang.reflect.InvocationTargetException</code> - If the desired constructor cannot be invoked</dd>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired constructor with the specified arguments cannot be found</dd>
</dl>
</li>
</ul>
<a name="instantiateObject-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-java.lang.Object...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>instantiateObject</h4>
<pre>public static&nbsp;java.lang.Object&nbsp;instantiateObject(java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
java.lang.Object...&nbsp;arguments)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException,
java.lang.ClassNotFoundException</pre>
<div class="block">Returns an instance of a desired class with the given arguments</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>className</code> - Name of the desired target class</dd>
<dd><code>packageType</code> - Package where the desired target class is located</dd>
<dd><code>arguments</code> - Arguments which are used to construct an object of the desired target class</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The instance of the desired target class with the specified arguments</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.InstantiationException</code> - If you cannot create an instance of the desired target class due to certain circumstances</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the desired constructor cannot be accessed due to certain circumstances</dd>
<dd><code>java.lang.IllegalArgumentException</code> - If the types of the arguments do not match the parameter types of the constructor (this should not occur since it searches for a constructor with the types of the arguments)</dd>
<dd><code>java.lang.reflect.InvocationTargetException</code> - If the desired constructor cannot be invoked</dd>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired constructor with the specified arguments cannot be found</dd>
<dd><code>java.lang.ClassNotFoundException</code> - If the desired target class with the specified name and package cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>(String, PackageType)</code>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#instantiateObject-java.lang.Class-java.lang.Object...-"><code>instantiateObject(Class, Object...)</code></a></dd>
</dl>
</li>
</ul>
<a name="getMethod-java.lang.Class-java.lang.String-java.lang.Class...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMethod</h4>
<pre>public static&nbsp;java.lang.reflect.Method&nbsp;getMethod(java.lang.Class&lt;?&gt;&nbsp;clazz,
java.lang.String&nbsp;methodName,
java.lang.Class&lt;?&gt;...&nbsp;parameterTypes)
throws java.lang.NoSuchMethodException</pre>
<div class="block">Returns a method of a class with the given parameter types</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clazz</code> - Target class</dd>
<dd><code>methodName</code> - Name of the desired method</dd>
<dd><code>parameterTypes</code> - Parameter types of the desired method</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The method of the target class with the specified name and parameter types</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired method of the target class with the specified name and parameter types cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html#getPrimitive-java.lang.Class:A-"><code>ReflectionUtils.DataType.getPrimitive(Class[])</code></a>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html#compare-java.lang.Class:A-java.lang.Class:A-"><code>ReflectionUtils.DataType.compare(Class[], Class[])</code></a></dd>
</dl>
</li>
</ul>
<a name="getMethod-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-java.lang.String-java.lang.Class...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMethod</h4>
<pre>public static&nbsp;java.lang.reflect.Method&nbsp;getMethod(java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
java.lang.String&nbsp;methodName,
java.lang.Class&lt;?&gt;...&nbsp;parameterTypes)
throws java.lang.NoSuchMethodException,
java.lang.ClassNotFoundException</pre>
<div class="block">Returns a method of a desired class with the given parameter types</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>className</code> - Name of the desired target class</dd>
<dd><code>packageType</code> - Package where the desired target class is located</dd>
<dd><code>methodName</code> - Name of the desired method</dd>
<dd><code>parameterTypes</code> - Parameter types of the desired method</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The method of the desired target class with the specified name and parameter types</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired method of the desired target class with the specified name and parameter types cannot be found</dd>
<dd><code>java.lang.ClassNotFoundException</code> - If the desired target class with the specified name and package cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>(String, PackageType)</code>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getMethod-java.lang.Class-java.lang.String-java.lang.Class...-"><code>getMethod(Class, String, Class...)</code></a></dd>
</dl>
</li>
</ul>
<a name="invokeMethod-java.lang.Object-java.lang.String-java.lang.Object...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>invokeMethod</h4>
<pre>public static&nbsp;java.lang.Object&nbsp;invokeMethod(java.lang.Object&nbsp;instance,
java.lang.String&nbsp;methodName,
java.lang.Object...&nbsp;arguments)
throws java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException</pre>
<div class="block">Invokes a method on an object with the given arguments</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>methodName</code> - Name of the desired method</dd>
<dd><code>arguments</code> - Arguments which are used to invoke the desired method</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The result of invoking the desired method on the target object</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalAccessException</code> - If the desired method cannot be accessed due to certain circumstances</dd>
<dd><code>java.lang.IllegalArgumentException</code> - If the types of the arguments do not match the parameter types of the method (this should not occur since it searches for a method with the types of the arguments)</dd>
<dd><code>java.lang.reflect.InvocationTargetException</code> - If the desired method cannot be invoked on the target object</dd>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired method of the class of the target object with the specified name and arguments cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getMethod-java.lang.Class-java.lang.String-java.lang.Class...-"><code>getMethod(Class, String, Class...)</code></a>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html#getPrimitive-java.lang.Object:A-"><code>ReflectionUtils.DataType.getPrimitive(Object[])</code></a></dd>
</dl>
</li>
</ul>
<a name="invokeMethod-java.lang.Object-java.lang.Class-java.lang.String-java.lang.Object...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>invokeMethod</h4>
<pre>public static&nbsp;java.lang.Object&nbsp;invokeMethod(java.lang.Object&nbsp;instance,
java.lang.Class&lt;?&gt;&nbsp;clazz,
java.lang.String&nbsp;methodName,
java.lang.Object...&nbsp;arguments)
throws java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException</pre>
<div class="block">Invokes a method of the target class on an object with the given arguments</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>clazz</code> - Target class</dd>
<dd><code>methodName</code> - Name of the desired method</dd>
<dd><code>arguments</code> - Arguments which are used to invoke the desired method</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The result of invoking the desired method on the target object</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalAccessException</code> - If the desired method cannot be accessed due to certain circumstances</dd>
<dd><code>java.lang.IllegalArgumentException</code> - If the types of the arguments do not match the parameter types of the method (this should not occur since it searches for a method with the types of the arguments)</dd>
<dd><code>java.lang.reflect.InvocationTargetException</code> - If the desired method cannot be invoked on the target object</dd>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired method of the target class with the specified name and arguments cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getMethod-java.lang.Class-java.lang.String-java.lang.Class...-"><code>getMethod(Class, String, Class...)</code></a>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html#getPrimitive-java.lang.Object:A-"><code>ReflectionUtils.DataType.getPrimitive(Object[])</code></a></dd>
</dl>
</li>
</ul>
<a name="invokeMethod-java.lang.Object-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-java.lang.String-java.lang.Object...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>invokeMethod</h4>
<pre>public static&nbsp;java.lang.Object&nbsp;invokeMethod(java.lang.Object&nbsp;instance,
java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
java.lang.String&nbsp;methodName,
java.lang.Object...&nbsp;arguments)
throws java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException,
java.lang.ClassNotFoundException</pre>
<div class="block">Invokes a method of a desired class on an object with the given arguments</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>className</code> - Name of the desired target class</dd>
<dd><code>packageType</code> - Package where the desired target class is located</dd>
<dd><code>methodName</code> - Name of the desired method</dd>
<dd><code>arguments</code> - Arguments which are used to invoke the desired method</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The result of invoking the desired method on the target object</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalAccessException</code> - If the desired method cannot be accessed due to certain circumstances</dd>
<dd><code>java.lang.IllegalArgumentException</code> - If the types of the arguments do not match the parameter types of the method (this should not occur since it searches for a method with the types of the arguments)</dd>
<dd><code>java.lang.reflect.InvocationTargetException</code> - If the desired method cannot be invoked on the target object</dd>
<dd><code>java.lang.NoSuchMethodException</code> - If the desired method of the desired target class with the specified name and arguments cannot be found</dd>
<dd><code>java.lang.ClassNotFoundException</code> - If the desired target class with the specified name and package cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>(String, PackageType)</code>,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#invokeMethod-java.lang.Object-java.lang.Class-java.lang.String-java.lang.Object...-"><code>invokeMethod(Object, Class, String, Object...)</code></a></dd>
</dl>
</li>
</ul>
<a name="getField-java.lang.Class-boolean-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getField</h4>
<pre>public static&nbsp;java.lang.reflect.Field&nbsp;getField(java.lang.Class&lt;?&gt;&nbsp;clazz,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)
throws java.lang.NoSuchFieldException,
java.lang.SecurityException</pre>
<div class="block">Returns a field of the target class with the given name</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clazz</code> - Target class</dd>
<dd><code>declared</code> - Whether the desired field is declared or not</dd>
<dd><code>fieldName</code> - Name of the desired field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The field of the target class with the specified name</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NoSuchFieldException</code> - If the desired field of the given class cannot be found</dd>
<dd><code>java.lang.SecurityException</code> - If the desired field cannot be made accessible</dd>
</dl>
</li>
</ul>
<a name="getField-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-boolean-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getField</h4>
<pre>public static&nbsp;java.lang.reflect.Field&nbsp;getField(java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)
throws java.lang.NoSuchFieldException,
java.lang.SecurityException,
java.lang.ClassNotFoundException</pre>
<div class="block">Returns a field of a desired class with the given name</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>className</code> - Name of the desired target class</dd>
<dd><code>packageType</code> - Package where the desired target class is located</dd>
<dd><code>declared</code> - Whether the desired field is declared or not</dd>
<dd><code>fieldName</code> - Name of the desired field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The field of the desired target class with the specified name</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NoSuchFieldException</code> - If the desired field of the desired class cannot be found</dd>
<dd><code>java.lang.SecurityException</code> - If the desired field cannot be made accessible</dd>
<dd><code>java.lang.ClassNotFoundException</code> - If the desired target class with the specified name and package cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getField-java.lang.Class-boolean-java.lang.String-"><code>getField(Class, boolean, String)</code></a></dd>
</dl>
</li>
</ul>
<a name="getValue-java.lang.Object-java.lang.Class-boolean-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>public static&nbsp;java.lang.Object&nbsp;getValue(java.lang.Object&nbsp;instance,
java.lang.Class&lt;?&gt;&nbsp;clazz,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException,
java.lang.SecurityException</pre>
<div class="block">Returns the value of a field of the given class of an object</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>clazz</code> - Target class</dd>
<dd><code>declared</code> - Whether the desired field is declared or not</dd>
<dd><code>fieldName</code> - Name of the desired field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The value of field of the target object</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the target object does not feature the desired field</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the desired field cannot be accessed</dd>
<dd><code>java.lang.NoSuchFieldException</code> - If the desired field of the target class cannot be found</dd>
<dd><code>java.lang.SecurityException</code> - If the desired field cannot be made accessible</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getField-java.lang.Class-boolean-java.lang.String-"><code>getField(Class, boolean, String)</code></a></dd>
</dl>
</li>
</ul>
<a name="getValue-java.lang.Object-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-boolean-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>public static&nbsp;java.lang.Object&nbsp;getValue(java.lang.Object&nbsp;instance,
java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException,
java.lang.SecurityException,
java.lang.ClassNotFoundException</pre>
<div class="block">Returns the value of a field of a desired class of an object</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>className</code> - Name of the desired target class</dd>
<dd><code>packageType</code> - Package where the desired target class is located</dd>
<dd><code>declared</code> - Whether the desired field is declared or not</dd>
<dd><code>fieldName</code> - Name of the desired field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The value of field of the target object</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the target object does not feature the desired field</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the desired field cannot be accessed</dd>
<dd><code>java.lang.NoSuchFieldException</code> - If the desired field of the desired class cannot be found</dd>
<dd><code>java.lang.SecurityException</code> - If the desired field cannot be made accessible</dd>
<dd><code>java.lang.ClassNotFoundException</code> - If the desired target class with the specified name and package cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getValue-java.lang.Object-java.lang.Class-boolean-java.lang.String-"><code>getValue(Object, Class, boolean, String)</code></a></dd>
</dl>
</li>
</ul>
<a name="getValue-java.lang.Object-boolean-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>public static&nbsp;java.lang.Object&nbsp;getValue(java.lang.Object&nbsp;instance,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException,
java.lang.SecurityException</pre>
<div class="block">Returns the value of a field with the given name of an object</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>declared</code> - Whether the desired field is declared or not</dd>
<dd><code>fieldName</code> - Name of the desired field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The value of field of the target object</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the target object does not feature the desired field (should not occur since it searches for a field with the given name in the class of the object)</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the desired field cannot be accessed</dd>
<dd><code>java.lang.NoSuchFieldException</code> - If the desired field of the target object cannot be found</dd>
<dd><code>java.lang.SecurityException</code> - If the desired field cannot be made accessible</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getValue-java.lang.Object-java.lang.Class-boolean-java.lang.String-"><code>getValue(Object, Class, boolean, String)</code></a></dd>
</dl>
</li>
</ul>
<a name="setValue-java.lang.Object-java.lang.Class-boolean-java.lang.String-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre>public static&nbsp;void&nbsp;setValue(java.lang.Object&nbsp;instance,
java.lang.Class&lt;?&gt;&nbsp;clazz,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName,
java.lang.Object&nbsp;value)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException,
java.lang.SecurityException</pre>
<div class="block">Sets the value of a field of the given class of an object</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>clazz</code> - Target class</dd>
<dd><code>declared</code> - Whether the desired field is declared or not</dd>
<dd><code>fieldName</code> - Name of the desired field</dd>
<dd><code>value</code> - New value</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the type of the value does not match the type of the desired field</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the desired field cannot be accessed</dd>
<dd><code>java.lang.NoSuchFieldException</code> - If the desired field of the target class cannot be found</dd>
<dd><code>java.lang.SecurityException</code> - If the desired field cannot be made accessible</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#getField-java.lang.Class-boolean-java.lang.String-"><code>getField(Class, boolean, String)</code></a></dd>
</dl>
</li>
</ul>
<a name="setValue-java.lang.Object-java.lang.String-com.massivecraft.factions.util.Particles.ReflectionUtils.PackageType-boolean-java.lang.String-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre>public static&nbsp;void&nbsp;setValue(java.lang.Object&nbsp;instance,
java.lang.String&nbsp;className,
<a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.PackageType.html" title="enum in com.massivecraft.factions.util.Particles">ReflectionUtils.PackageType</a>&nbsp;packageType,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName,
java.lang.Object&nbsp;value)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException,
java.lang.SecurityException,
java.lang.ClassNotFoundException</pre>
<div class="block">Sets the value of a field of a desired class of an object</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>className</code> - Name of the desired target class</dd>
<dd><code>packageType</code> - Package where the desired target class is located</dd>
<dd><code>declared</code> - Whether the desired field is declared or not</dd>
<dd><code>fieldName</code> - Name of the desired field</dd>
<dd><code>value</code> - New value</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the type of the value does not match the type of the desired field</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the desired field cannot be accessed</dd>
<dd><code>java.lang.NoSuchFieldException</code> - If the desired field of the desired class cannot be found</dd>
<dd><code>java.lang.SecurityException</code> - If the desired field cannot be made accessible</dd>
<dd><code>java.lang.ClassNotFoundException</code> - If the desired target class with the specified name and package cannot be found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#setValue-java.lang.Object-java.lang.Class-boolean-java.lang.String-java.lang.Object-"><code>setValue(Object, Class, boolean, String, Object)</code></a></dd>
</dl>
</li>
</ul>
<a name="setValue-java.lang.Object-boolean-java.lang.String-java.lang.Object-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setValue</h4>
<pre>public static&nbsp;void&nbsp;setValue(java.lang.Object&nbsp;instance,
boolean&nbsp;declared,
java.lang.String&nbsp;fieldName,
java.lang.Object&nbsp;value)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException,
java.lang.SecurityException</pre>
<div class="block">Sets the value of a field with the given name of an object</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - Target object</dd>
<dd><code>declared</code> - Whether the desired field is declared or not</dd>
<dd><code>fieldName</code> - Name of the desired field</dd>
<dd><code>value</code> - New value</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the type of the value does not match the type of the desired field</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the desired field cannot be accessed</dd>
<dd><code>java.lang.NoSuchFieldException</code> - If the desired field of the target object cannot be found</dd>
<dd><code>java.lang.SecurityException</code> - If the desired field cannot be made accessible</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.html#setValue-java.lang.Object-java.lang.Class-boolean-java.lang.String-java.lang.Object-"><code>setValue(Object, Class, boolean, String, Object)</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/massivecraft/factions/util/Particles/ParticleEffect.ParticleProperty.html" title="enum in com.massivecraft.factions.util.Particles"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/massivecraft/factions/util/Particles/ReflectionUtils.DataType.html" title="enum in com.massivecraft.factions.util.Particles"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/massivecraft/factions/util/Particles/ReflectionUtils.html" target="_top">Frames</a></li>
<li><a href="ReflectionUtils.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>