congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CachedMethod.isStatic
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.codehaus.groovy/groovy

private static void createMetaMethods(final Class extensionClass, final List<MetaMethod> metaMethods, final boolean isStatic) {
  CachedClass cachedClass = ReflectionCache.getCachedClass(extensionClass);
  CachedMethod[] methods = cachedClass.getMethods();
  for (CachedMethod method : methods) {
    if (method.isStatic() && method.isPublic() && method.getParamsCount() > 0) {
      // an extension method is found
      metaMethods.add(isStatic?new NewStaticMetaMethod(method) : new NewInstanceMetaMethod(method));
    }
  }
}
origin: org.codehaus.groovy/groovy

if (!method.isStatic() || !method.isPublic())
  continue;
origin: org.codehaus.groovy/groovy

private void applyUse(CachedClass cachedClass) {
  CachedMethod[] methods = cachedClass.getMethods();
  for (CachedMethod cachedMethod : methods) {
    if (cachedMethod.isStatic() && cachedMethod.isPublic()) {
      CachedClass[] paramTypes = cachedMethod.getParameterTypes();
      if (paramTypes.length > 0) {
        CachedClass metaClass = paramTypes[0];
        CategoryMethod mmethod = new CategoryMethod(cachedMethod, metaClass.getTheClass());
        final String name = cachedMethod.getName();
        CategoryMethodList list = get(name);
        if (list == null || list.level != level) {
          list = new CategoryMethodList(name, level, list);
          put(name, list);
        }
        list.add(mmethod);
        Collections.sort(list);
        cachePropertyAccessor(mmethod);
      }
    }
  }
}
origin: org.codehaus.groovy/groovy

if (cachedMethod.isStatic()) {
  invokeMethodCode = Opcodes.INVOKESTATIC;
} else {
origin: org.codehaus.groovy/groovy-jdk14

if (cachedMethod.isStatic()) {
  invokeMethodCode = Opcodes.INVOKESTATIC;
} else {
origin: org.kohsuke.droovy/groovy

if (cachedMethod.isStatic()) {
  invokeMethodCode = Opcodes.INVOKESTATIC;
} else {
origin: disney/groovity

  continue;
if(cm.isStatic()){
  continue;
origin: com.disney.groovity/groovity-core

  continue;
if(cm.isStatic()){
  continue;
origin: org.codehaus.groovy/groovy-jdk14

for (int i = 0, cur = 0; i < cachedMethods.length; i++) {
  CachedMethod method = cachedMethods[i];
  if (!method.isStatic() || !method.isPublic())
   continue;
origin: org.kohsuke.droovy/groovy

for (int i = 0, cur = 0; i < cachedMethods.length; i++) {
  CachedMethod method = cachedMethods[i];
  if (!method.isStatic() || !method.isPublic())
   continue;
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

if (!method.isStatic() || !method.isPublic())
  continue;
origin: org.codehaus.groovy/groovy-jdk14

private void applyUse(CachedClass cachedClass) {
  CachedMethod[] methods = cachedClass.getMethods();
  for (CachedMethod cachedMethod : methods) {
    if (cachedMethod.isStatic() && cachedMethod.isPublic()) {
      CachedClass[] paramTypes = cachedMethod.getParameterTypes();
      if (paramTypes.length > 0) {
        CachedClass metaClass = paramTypes[0];
        CategoryMethod mmethod = new CategoryMethod(cachedMethod, metaClass.getTheClass());
        final String name = cachedMethod.getName();
        CategoryMethodList list = get(name);
        if (list == null || list.level != level) {
          list = new CategoryMethodList(name, level, list);
          put(name, list);
        }
        list.add(mmethod);
        Collections.sort(list);
      }
    }
  }
}
origin: org.kohsuke.droovy/groovy

private void applyUse(CachedClass cachedClass) {
  CachedMethod[] methods = cachedClass.getMethods();
  for (int i = 0; i < methods.length; i++) {
    CachedMethod cachedMethod = methods[i];
    if (cachedMethod.isStatic() && cachedMethod.isPublic()) {
      CachedClass[] paramTypes = cachedMethod.getParameterTypes();
      if (paramTypes.length > 0) {
        CachedClass metaClass = paramTypes[0];
        CategoryMethod mmethod = new CategoryMethod(cachedMethod, metaClass.getTheClass());
        final String name = cachedMethod.getName();
        CategoryMethodList list = get(name);
        if (list == null || list.level != level) {
          list = new CategoryMethodList(name,level,list);
          put (name, list);
        }
        list.add(mmethod);
        Collections.sort(list);
      }
    }
  }
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

private void applyUse(CachedClass cachedClass) {
  CachedMethod[] methods = cachedClass.getMethods();
  for (CachedMethod cachedMethod : methods) {
    if (cachedMethod.isStatic() && cachedMethod.isPublic()) {
      CachedClass[] paramTypes = cachedMethod.getParameterTypes();
      if (paramTypes.length > 0) {
        CachedClass metaClass = paramTypes[0];
        CategoryMethod mmethod = new CategoryMethod(cachedMethod, metaClass.getTheClass());
        final String name = cachedMethod.getName();
        CategoryMethodList list = get(name);
        if (list == null || list.level != level) {
          list = new CategoryMethodList(name, level, list);
          put(name, list);
        }
        list.add(mmethod);
        Collections.sort(list);
        cachePropertyAccessor(mmethod);
      }
    }
  }
}

origin: org.codehaus.groovy/groovy-all-minimal

  protected void invokeMethod(CachedMethod method, MethodVisitor mv) {
    // compute class to make the call on
    Class callClass = method.getDeclaringClass().getTheClass();
    boolean useInterface = callClass.isInterface();
//        if (callClass == null) {
//            callClass = method.getCallClass();
//        } else {
//            useInterface = true;
//        }
    // get bytecode information
    String type = BytecodeHelper.getClassInternalName(callClass.getName());
    String descriptor = BytecodeHelper.getMethodDescriptor(method.getReturnType(), method.getNativeParameterTypes());

    // make call
    if (method.isStatic()) {
      loadParameters(method, 3, mv);
      mv.visitMethodInsn(INVOKESTATIC, type, method.getName(), descriptor);
    } else {
      mv.visitVarInsn(ALOAD, 2);
      helper.doCast(callClass);
      loadParameters(method, 3, mv);
      mv.visitMethodInsn((useInterface) ? INVOKEINTERFACE : INVOKEVIRTUAL, type, method.getName(), descriptor);
    }

    helper.box(method.getReturnType());
  }

origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

if (cachedMethod.isStatic()) {
  invokeMethodCode = Opcodes.INVOKESTATIC;
} else {
org.codehaus.groovy.reflectionCachedMethodisStatic

Popular methods of CachedMethod

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • BoxLayout (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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