public static enum JavaMethod.ForUnavailableMethod extends Enum<JavaMethod.ForUnavailableMethod> implements JavaMethod
JavaMethod.ForLoadedConstructor, JavaMethod.ForLoadedMethod, JavaMethod.ForUnavailableMethod
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
invoke(Object instance,
Object... argument)
Invokes this method.
|
Object |
invokeStatic(Object... argument)
Invokes a static method.
|
boolean |
isInvokable()
Checks if this method is invokable on the current version of the Java virtual machine.
|
String |
toString() |
static JavaMethod.ForUnavailableMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaMethod.ForUnavailableMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaMethod.ForUnavailableMethod INSTANCE
public static JavaMethod.ForUnavailableMethod[] values()
for (JavaMethod.ForUnavailableMethod c : JavaMethod.ForUnavailableMethod.values()) System.out.println(c);
public static JavaMethod.ForUnavailableMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isInvokable()
JavaMethod
isInvokable
in interface JavaMethod
true
if this method is invokable.public Object invoke(Object instance, Object... argument)
JavaMethod
invoke
in interface JavaMethod
instance
- The instance on which the method is to be invoked.argument
- The arguments for this method.public Object invokeStatic(Object... argument)
JavaMethod
invokeStatic
in interface JavaMethod
argument
- The arguments for the method.public String toString()
toString
in class Enum<JavaMethod.ForUnavailableMethod>
Copyright © 2014–2015. All rights reserved.