Class DynamicMethod.NativeCall

java.lang.Object
org.jruby.internal.runtime.methods.DynamicMethod.NativeCall
Enclosing class:
DynamicMethod

public static class DynamicMethod.NativeCall extends Object
  • Constructor Details

    • NativeCall

      public NativeCall(Class nativeTarget, String nativeName, Class nativeReturn, Class[] nativeSignature, boolean statik)
    • NativeCall

      public NativeCall(Class nativeTarget, String nativeName, Class nativeReturn, Class[] nativeSignature, boolean statik, boolean java)
  • Method Details

    • getNativeTarget

      public Class getNativeTarget()
    • getNativeName

      public String getNativeName()
    • getNativeReturn

      public Class getNativeReturn()
    • getNativeSignature

      public Class[] getNativeSignature()
    • isStatic

      public boolean isStatic()
    • isJava

      public boolean isJava()
    • hasContext

      public boolean hasContext()
    • hasBlock

      public boolean hasBlock()
    • getMethod

      public Method getMethod()
      Get the java.lang.reflect.Method for this NativeCall
      Returns:
      the reflected method corresponding to this NativeCall
    • getMethodQuiet

      public Method getMethodQuiet()
      Get the java.lang.reflect.Method for this NativeCall quietly. If an error is raised, this method will return null;
      Returns:
      the reflected method corresponding to this NativeCall, or null if it could not be found
    • getHandleQuiet

      public MethodHandle getHandleQuiet(MethodHandles.Lookup lookup)
      Get the java.lang.reflect.Method for this NativeCall quietly. If an error is raised, this method will return null;
      Returns:
      the reflected method corresponding to this NativeCall, or null if it could not be found
    • toString

      public String toString()
      Overrides:
      toString in class Object