public final class PandaMethod extends AbstractExecutableProperty<TypeMethod> implements TypeMethod
| Modifier and Type | Class and Description |
|---|---|
static class |
PandaMethod.PandaMethodBuilder |
AbstractExecutableProperty.PandaParametrizedExecutableBuilder<E extends ExecutableProperty,T extends AbstractExecutableProperty.PandaParametrizedExecutableBuilder<E,?>>| Modifier | Constructor and Description |
|---|---|
protected |
PandaMethod(PandaMethod.PandaMethodBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
static PandaMethod.PandaMethodBuilder |
builder() |
String |
getName()
Get property name
|
Object |
invoke(ProcessStack stack,
Object instance,
Object... parameters)
Invoke the executable
|
boolean |
isAbstract()
Check if method is abstract
|
boolean |
isNative()
Check if refers to the native context
|
boolean |
isStatic()
Check if method is static
|
getParameters, getParameterTypes, getReturnType, getType, toStringgetLocation, getSimpleName, getVisibilityclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetJavaParameterTypes, getParameters, getParameterTypes, getReturnTypegetLocation, getModule, getSimpleName, getType, getVisibilityprotected PandaMethod(PandaMethod.PandaMethodBuilder builder)
public Object invoke(ProcessStack stack, Object instance, Object... parameters) throws Exception
ExecutablePropertyinvoke in interface ExecutablePropertyinvoke in class AbstractExecutableProperty<TypeMethod>stack - the current process stackinstance - the current instanceparameters - arguments to useException - if something happenpublic boolean isAbstract()
TypeMethodisAbstract in interface TypeMethodpublic boolean isNative()
PropertyisNative in interface PropertyisNative in interface TypeMethodisNative in class AbstractPropertypublic boolean isStatic()
TypeMethodisStatic in interface TypeMethodpublic String getName()
PropertygetName in interface ExecutablePropertygetName in interface Propertypublic static PandaMethod.PandaMethodBuilder builder()
Copyright © 2020. All rights reserved.