Package org.jruby.javasupport
Class JavaConstructor
java.lang.Object
org.jruby.javasupport.JavaCallable
org.jruby.javasupport.JavaConstructor
- All Implemented Interfaces:
ParameterTypes
-
Field Summary
Fields inherited from class org.jruby.javasupport.JavaCallable
parameterTypes
-
Method Summary
Modifier and TypeMethodDescriptionstatic JavaConstructor
create
(Ruby runtime, Constructor<?> constructor) Deprecated.final boolean
Class
<?> final Class<?>[]
Type[]
Type[]
static JavaConstructor
getMatchingConstructor
(Ruby runtime, Class<?> javaClass, Class<?>[] argumentTypes) final int
Annotation[][]
final Constructor
getValue()
final int
hashCode()
final boolean
newInstanceDirect
(ThreadContext context) newInstanceDirect
(ThreadContext context, Object arg0) newInstanceDirect
(ThreadContext context, Object... arguments) newInstanceDirect
(ThreadContext context, Object arg0, Object arg1) newInstanceDirect
(ThreadContext context, Object arg0, Object arg1, Object arg2) newInstanceDirect
(ThreadContext context, Object arg0, Object arg1, Object arg2, Object arg3) static JavaConstructor
wrap
(Constructor<?> constructor) Methods inherited from class org.jruby.javasupport.JavaCallable
checkArity, getArity, getParameterTypes, handleInvocationTargetEx, handleThrowable, inspectParameterTypes, toString
-
Method Details
-
getValue
-
create
Deprecated. -
wrap
-
getMatchingConstructor
public static JavaConstructor getMatchingConstructor(Ruby runtime, Class<?> javaClass, Class<?>[] argumentTypes) -
equals
- Specified by:
equals
in classJavaCallable
-
hashCode
public final int hashCode()- Specified by:
hashCode
in classJavaCallable
-
getExceptionTypes
- Specified by:
getExceptionTypes
in interfaceParameterTypes
- Specified by:
getExceptionTypes
in classJavaCallable
-
getGenericParameterTypes
- Specified by:
getGenericParameterTypes
in classJavaCallable
-
getGenericExceptionTypes
- Specified by:
getGenericExceptionTypes
in classJavaCallable
-
getParameterAnnotations
- Specified by:
getParameterAnnotations
in classJavaCallable
-
isVarArgs
public final boolean isVarArgs()- Specified by:
isVarArgs
in interfaceParameterTypes
- Specified by:
isVarArgs
in classJavaCallable
-
getModifiers
public final int getModifiers()- Specified by:
getModifiers
in classJavaCallable
-
toGenericString
- Specified by:
toGenericString
in classJavaCallable
-
getDeclaringClass
-
accessibleObject
- Specified by:
accessibleObject
in classJavaCallable
-
newInstanceDirect
-
newInstanceDirect
-
newInstanceDirect
-
newInstanceDirect
-
newInstanceDirect
-
newInstanceDirect
-