public class ReflectionMethod extends ReflectionFunctionAbstract implements Reflector
Modifier and Type | Field and Description |
---|---|
static int |
IS_ABSTRACT |
static int |
IS_FINAL |
static int |
IS_PRIVATE |
static int |
IS_PROTECTED |
static int |
IS_PUBLIC |
static int |
IS_STATIC |
Modifier | Constructor and Description |
---|---|
protected |
ReflectionMethod(AbstractFunction method) |
protected |
ReflectionMethod(java.lang.String clsName,
AbstractFunction method) |
Modifier and Type | Method and Description |
---|---|
static ReflectionMethod |
__construct(Env env,
Value obj,
StringValue name) |
static java.lang.String |
export(Env env,
Value cls,
java.lang.String name,
boolean isReturn) |
ReflectionClass |
getDeclaringClass(Env env) |
int |
getModifiers() |
ArrayValue |
getParameters(Env env) |
Value |
invoke(Env env,
ObjectValue object,
Value[] args) |
Value |
invokeArgs(Env env,
ObjectValue object,
ArrayValue args) |
boolean |
isAbstract() |
boolean |
isConstructor() |
boolean |
isDestructor() |
boolean |
isFinal() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
void |
setAccessible(boolean isAccessible) |
java.lang.String |
toString() |
getCallable, getDocComment, getEndLine, getFileName, getName, getNumberOfParameters, getNumberOfRequiredParameters, getStartLine, getStaticVariables, isInternal, isUserDefined, returnsReference
public static final int IS_STATIC
public static final int IS_ABSTRACT
public static final int IS_FINAL
public static final int IS_PUBLIC
public static final int IS_PROTECTED
public static final int IS_PRIVATE
protected ReflectionMethod(AbstractFunction method)
protected ReflectionMethod(java.lang.String clsName, AbstractFunction method)
public static ReflectionMethod __construct(Env env, Value obj, StringValue name)
public static java.lang.String export(Env env, Value cls, java.lang.String name, boolean isReturn)
public Value invoke(Env env, ObjectValue object, Value[] args)
public Value invokeArgs(Env env, ObjectValue object, ArrayValue args)
public boolean isFinal()
public boolean isAbstract()
public boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean isStatic()
public boolean isConstructor()
public boolean isDestructor()
public int getModifiers()
public ReflectionClass getDeclaringClass(Env env)
public ArrayValue getParameters(Env env)
getParameters
in class ReflectionFunctionAbstract
public void setAccessible(boolean isAccessible)
public java.lang.String toString()
toString
in class java.lang.Object