Tabnine Logo
CachedMethod.getNativeParameterTypes
Code IndexAdd Tabnine to your IDE (free)

How to use
getNativeParameterTypes
method
in
org.codehaus.groovy.reflection.CachedMethod

Best Java code snippets using org.codehaus.groovy.reflection.CachedMethod.getNativeParameterTypes (Showing top 20 results out of 315)

origin: org.codehaus.groovy/groovy

protected Class[] getPT() {
  return method.getNativeParameterTypes();
}
origin: org.codehaus.groovy/groovy

private static boolean publicParams(CachedMethod method) {
  for (Class nativeParamType : method.getNativeParameterTypes()) {
    if (!Modifier.isPublic(nativeParamType.getModifiers()))
      return false;
  }
  return true;
}
origin: org.codehaus.groovy/groovy

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);
}
origin: org.codehaus.groovy/groovy

public String getDescriptor() {
  return BytecodeHelper.getMethodDescriptor(getReturnType(), getNativeParameterTypes());
}
origin: org.codehaus.groovy/groovy

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;
}
origin: org.codehaus.groovy/groovy

record.parameters = method.getNativeParameterTypes();
record.className = className;
final String methodDescriptor = BytecodeHelper.getMethodDescriptor(returnType, method.getNativeParameterTypes());
origin: org.codehaus.groovy/groovy

String descriptor = BytecodeHelper.getMethodDescriptor(cachedMethod.getReturnType(), cachedMethod.getNativeParameterTypes());
origin: org.codehaus.groovy/groovy-all-minimal

  protected Class[] getPT() {
    return method.getNativeParameterTypes();
  }
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

  protected Class[] getPT() {
    return method.getNativeParameterTypes();
  }
}
origin: org.codehaus.groovy/groovy-jdk14

  protected Class[] getPT() {
    return method.getNativeParameterTypes();
  }
}
origin: org.kohsuke.droovy/groovy

  protected Class[] getPT() {
    return method.getNativeParameterTypes();
  }
}
origin: org.codehaus.groovy/groovy-jdk14

private static boolean publicParams(CachedMethod method) {
  for (Class nativeParamType : method.getNativeParameterTypes()) {
    if (!Modifier.isPublic(nativeParamType.getModifiers()))
      return false;
  }
  return true;
}
origin: org.kohsuke.droovy/groovy

private static boolean publicParams(CachedMethod method) {
  for (Class nativeParamType : method.getNativeParameterTypes()) {
    if (!Modifier.isPublic(nativeParamType.getModifiers()))
      return false;
  }
  return true;
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

private static boolean publicParams(CachedMethod method) {
  for (Class nativeParamType : method.getNativeParameterTypes()) {
    if (!Modifier.isPublic(nativeParamType.getModifiers()))
      return false;
  }
  return true;
}
origin: org.codehaus.groovy/groovy-jdk14

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);
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

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);
}
origin: org.kohsuke.droovy/groovy

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);
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

public String getDescriptor() {
  return BytecodeHelper.getMethodDescriptor(getReturnType(), getNativeParameterTypes());
}
origin: org.codehaus.groovy/groovy-jdk14

public String getDescriptor() {
  return BytecodeHelper.getMethodDescriptor(getReturnType(), getNativeParameterTypes());
}
origin: org.codehaus.groovy/groovy-all-minimal

public String getDescriptor() {
  return BytecodeHelper.getMethodDescriptor(getReturnType(), getNativeParameterTypes());
}
org.codehaus.groovy.reflectionCachedMethodgetNativeParameterTypes

Popular methods of CachedMethod

  • getCachedMethod
  • <init>
  • find
  • isStatic
  • setAccessible
  • compareTo
  • compareToCachedMethod
  • compareToMethod
  • getDeclaringClass
  • getDescriptor
  • getModifiers
  • getName
  • getModifiers,
  • getName,
  • getParameterTypes,
  • getReturnType,
  • toString,
  • correctArguments,
  • createPogoMetaMethodSite,
  • createPojoMetaMethodSite,
  • createStaticMetaMethodSite

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now