com.caucho.quercus.env
Class JavaMethod

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.Callback
          extended by com.caucho.quercus.function.AbstractFunction
              extended by com.caucho.quercus.env.AbstractJavaMethod
                  extended by com.caucho.quercus.env.JavaInvoker
                      extended by com.caucho.quercus.env.JavaMethod
All Implemented Interfaces:
Callable, java.io.Serializable

public class JavaMethod
extends JavaInvoker

Represents a function created from a java method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.quercus.env.JavaInvoker
_method
 
Fields inherited from class com.caucho.quercus.function.AbstractFunction
_bindingClass, _declaringClassName, _isClosure, _isConstructor, _isFinal, _isStatic, _parseIndex, _visibility
 
Fields inherited from class com.caucho.quercus.env.Value
NULL_VALUE_ARRAY
 
Constructor Summary
JavaMethod(ModuleContext moduleContext, JavaClassDef classDef, java.lang.reflect.Method method)
          Creates a function from an introspected java method.
 
Method Summary
 java.lang.String getDeclaringClassName()
           
 java.lang.Class<?> getJavaDeclaringClass()
           
 java.lang.Class<?>[] getJavaParameterTypes()
           
 java.lang.Object invoke(java.lang.Object obj, java.lang.Object[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.env.JavaInvoker
call, callMethod, callMethodRef, callNew, evalArguments, getDeclaringClass, getDefaultExprs, getFunctionName, getHasEnv, getHasRestArgs, getMarshalArgs, getMarshalingCost, getMarshalingCost, getMaxArgLength, getMethodAnn, getMinArgLength, getName, getParamAnn, getUnmarshalReturn, init, isBoolean, isCallUsesSymbolTable, isCallUsesVariableArgs, isDouble, isLong, isRestReference, isString
 
Methods inherited from class com.caucho.quercus.env.AbstractJavaMethod
call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, isJavaMethod, overload
 
Methods inherited from class com.caucho.quercus.function.AbstractFunction
callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, errorPrivateAccess, errorProtectedAccess, getActualFunction, getArgs, getBindingClass, getBindingClassName, getCallbackName, getComment, getCompilationName, getLocation, getType, isAbstract, isCallable, isClosure, isConstructor, isFinal, isGlobal, isInternal, isObject, isPrivate, isProtected, isPublic, isReturnsReference, isStatic, isValid, setBindingClass, setClosure, setConstructor, setDeclaringClassName, setFinal, setGlobal, setParseIndex, setStatic, setVisibility, toFun
 
Methods inherited from class com.caucho.quercus.env.Callback
callArray, callArray, callArray, toCallable
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, add, addOne, append, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, charValueAt, checkPrivate, checkProtected, clone, cmp, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eq, eql, eqValue, findFunction, generate, geq, get, get, getArg, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getQuercusClass, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, isA, isA, isArray, isBinary, isDefault, isDoubleConvertible, isEmpty, isFieldExists, isFieldInit, isLongConvertible, isNull, isNumberConvertible, isNumeric, isResource, isset, isset, issetField, issetThisField, isUnicode, isVar, jsonEncode, key, keyExists, length, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, print, print, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, putVar, remove, reset, rshift, serialize, serialize, set, setCharValueAt, setFieldInit, setJavaObject, shuffle, sub_rev, sub, sub, subOne, toArgRef, toArray, toArrayValue, toAutoArray, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBoolean, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLongMarshalCost, toLongValue, toObject, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, valuesToArray, varDump, varDumpImpl, varExport, varExportImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaMethod

public JavaMethod(ModuleContext moduleContext,
                  JavaClassDef classDef,
                  java.lang.reflect.Method method)
Creates a function from an introspected java method.

Parameters:
method - the introspected method.
Method Detail

getDeclaringClassName

public java.lang.String getDeclaringClassName()
Overrides:
getDeclaringClassName in class AbstractFunction

getJavaParameterTypes

public java.lang.Class<?>[] getJavaParameterTypes()
Overrides:
getJavaParameterTypes in class AbstractJavaMethod

getJavaDeclaringClass

public java.lang.Class<?> getJavaDeclaringClass()
Overrides:
getJavaDeclaringClass in class JavaInvoker

invoke

public java.lang.Object invoke(java.lang.Object obj,
                               java.lang.Object[] args)
Specified by:
invoke in class JavaInvoker

toString

public java.lang.String toString()
Overrides:
toString in class AbstractFunction