protected Class[] getPT() { return method.getNativeParameterTypes(); }
private static boolean publicParams(CachedMethod method) { for (Class nativeParamType : method.getNativeParameterTypes()) { if (!Modifier.isPublic(nativeParamType.getModifiers())) return false; } return true; }
public ClosureMetaMethod(String name, Class declaringClass, Closure c, CachedMethod doCall) { super (doCall.getNativeParameterTypes()); this.name = name; callable = c; this.doCall = doCall; this.declaringClass = ReflectionCache.getCachedClass(declaringClass); }
public String getDescriptor() { return BytecodeHelper.getMethodDescriptor(getReturnType(), getNativeParameterTypes()); }
public CachedClosureClass(Class klazz, ClassInfo classInfo) { super(klazz, classInfo); CachedMethod methods [] = getMethods(); // set it to -1 for starters so parameterTypes will always get a type int maximumNumberOfParameters = -1; Class[] parameterTypes = null; for (CachedMethod method : methods) { if ("doCall".equals(method.getName())) { final Class[] pt = method.getNativeParameterTypes(); if (pt.length > maximumNumberOfParameters) { parameterTypes = pt; maximumNumberOfParameters = parameterTypes.length; } } } // this line should be useless, but well, just in case maximumNumberOfParameters = Math.max(maximumNumberOfParameters,0); this.maximumNumberOfParameters = maximumNumberOfParameters; this.parameterTypes = parameterTypes; }
record.parameters = method.getNativeParameterTypes(); record.className = className; final String methodDescriptor = BytecodeHelper.getMethodDescriptor(returnType, method.getNativeParameterTypes());
String descriptor = BytecodeHelper.getMethodDescriptor(cachedMethod.getReturnType(), cachedMethod.getNativeParameterTypes());
protected Class[] getPT() { return method.getNativeParameterTypes(); } }
protected Class[] getPT() { return method.getNativeParameterTypes(); } }
protected Class[] getPT() { return method.getNativeParameterTypes(); } }
protected Class[] getPT() { return method.getNativeParameterTypes(); } }
private static boolean publicParams(CachedMethod method) { for (Class nativeParamType : method.getNativeParameterTypes()) { if (!Modifier.isPublic(nativeParamType.getModifiers())) return false; } return true; }
private static boolean publicParams(CachedMethod method) { for (Class nativeParamType : method.getNativeParameterTypes()) { if (!Modifier.isPublic(nativeParamType.getModifiers())) return false; } return true; }
private static boolean publicParams(CachedMethod method) { for (Class nativeParamType : method.getNativeParameterTypes()) { if (!Modifier.isPublic(nativeParamType.getModifiers())) return false; } return true; }
public ClosureMetaMethod(String name, Class declaringClass, Closure c, CachedMethod doCall) { super (doCall.getNativeParameterTypes()); this.name = name; callable = c; this.doCall = doCall; this.declaringClass = ReflectionCache.getCachedClass(declaringClass); }
public ClosureMetaMethod(String name, Class declaringClass, Closure c, CachedMethod doCall) { super (doCall.getNativeParameterTypes()); this.name = name; callable = c; this.doCall = doCall; this.declaringClass = ReflectionCache.getCachedClass(declaringClass); }
public ClosureMetaMethod(String name, Class declaringClass, Closure c, CachedMethod doCall) { super (doCall.getNativeParameterTypes()); this.name = name; callable = c; this.doCall = doCall; this.declaringClass = ReflectionCache.getCachedClass(declaringClass); }
public String getDescriptor() { return BytecodeHelper.getMethodDescriptor(getReturnType(), getNativeParameterTypes()); }
public String getDescriptor() { return BytecodeHelper.getMethodDescriptor(getReturnType(), getNativeParameterTypes()); }
public String getDescriptor() { return BytecodeHelper.getMethodDescriptor(getReturnType(), getNativeParameterTypes()); }