public static enum ReflectionHandler.PackageType extends java.lang.Enum<ReflectionHandler.PackageType>
This class is part of the ReflectionUtils and follows the same usage conditions
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getClass(java.lang.String className)
Returns the class with the given name
|
java.lang.String |
getPath()
Returns the path of this package type
|
static java.lang.String |
getServerVersion()
Returns the version of your server
|
java.lang.String |
toString() |
static ReflectionHandler.PackageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReflectionHandler.PackageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReflectionHandler.PackageType MINECRAFT_SERVER
public static final ReflectionHandler.PackageType CRAFTBUKKIT
public static final ReflectionHandler.PackageType CRAFTBUKKIT_BLOCK
public static final ReflectionHandler.PackageType CRAFTBUKKIT_CHUNKIO
public static final ReflectionHandler.PackageType CRAFTBUKKIT_COMMAND
public static final ReflectionHandler.PackageType CRAFTBUKKIT_CONVERSATIONS
public static final ReflectionHandler.PackageType CRAFTBUKKIT_ENCHANTMENS
public static final ReflectionHandler.PackageType CRAFTBUKKIT_ENTITY
public static final ReflectionHandler.PackageType CRAFTBUKKIT_EVENT
public static final ReflectionHandler.PackageType CRAFTBUKKIT_GENERATOR
public static final ReflectionHandler.PackageType CRAFTBUKKIT_HELP
public static final ReflectionHandler.PackageType CRAFTBUKKIT_INVENTORY
public static final ReflectionHandler.PackageType CRAFTBUKKIT_MAP
public static final ReflectionHandler.PackageType CRAFTBUKKIT_METADATA
public static final ReflectionHandler.PackageType CRAFTBUKKIT_POTION
public static final ReflectionHandler.PackageType CRAFTBUKKIT_PROJECTILES
public static final ReflectionHandler.PackageType CRAFTBUKKIT_SCHEDULER
public static final ReflectionHandler.PackageType CRAFTBUKKIT_SCOREBOARD
public static final ReflectionHandler.PackageType CRAFTBUKKIT_UPDATER
public static final ReflectionHandler.PackageType CRAFTBUKKIT_UTIL
public static ReflectionHandler.PackageType[] values()
for (ReflectionHandler.PackageType c : ReflectionHandler.PackageType.values()) System.out.println(c);
public static ReflectionHandler.PackageType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getPath()
public java.lang.Class<?> getClass(java.lang.String className) throws java.lang.ClassNotFoundException
className
- Name of the desired classjava.lang.ClassNotFoundException
- If the desired class with the specified name and package
cannot be foundpublic java.lang.String toString()
toString
in class java.lang.Enum<ReflectionHandler.PackageType>
public static java.lang.String getServerVersion()