org.jruby.javasupport.proxy
Interface JavaProxyMethod
- All Superinterfaces:
- IRubyObject
- All Known Implementing Classes:
- JavaProxyClass.ProxyMethodImpl
- public interface JavaProxyMethod
- extends IRubyObject
Methods inherited from interface org.jruby.runtime.builtin.IRubyObject |
addFinalizer, anyToString, asString, asSymbol, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToTypeWithCheck, dataGetStruct, dataWrapStruct, dup, eql, eqlInternal, equal, equalInternal, evalSimple, evalWithBinding, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getType, id, infectBy, inspect, instanceVariableNames, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, rbClone, removeFinalizers, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, setFrozen, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint |
getSuperMethod
public java.lang.reflect.Method getSuperMethod()
getState
public java.lang.Object getState()
- get state (cache target callable?) in the proxy method
setState
public void setState(java.lang.Object state)
- store state (cache target callable?) in the proxy method
hasSuperImplementation
public boolean hasSuperImplementation()
- is it possible to call the super method?
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.Object[] args)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException
- Parameters:
proxy
- args
-
- Returns:
-
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
- if this ProxyMethod has no super implementation
defaultResult
public java.lang.Object defaultResult()
getName
public java.lang.String getName()
getParameterTypes
public java.lang.Class[] getParameterTypes()
getExceptionTypes
public java.lang.Class[] getExceptionTypes()
getReturnType
public java.lang.Class getReturnType()
getDeclaringClass
public JavaProxyClass getDeclaringClass()
getModifiers
public int getModifiers()
Copyright © 2002-2007 JRuby Team. All Rights Reserved.