congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
CachedMethod.hasStaticCallSiteConstructor
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.codehaus.groovy/groovy-jdk14

public CallSite createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params) {
  if (!hasStaticCallSiteConstructor()) {
   Constructor constr = null;
   if (CallSiteGenerator.isCompilable(this)) {
     constr = CallSiteGenerator.compileStaticMethod(this);
     if (constr != null)
       staticCallSiteConstructor = new SoftReference<Constructor> (constr);
   }
  }
  if (hasStaticCallSiteConstructor()) {
    final Constructor constructor = staticCallSiteConstructor.get();
    if (constructor != null) {
      try {
      return (CallSite) constructor.newInstance(site, metaClass, this, params);
      } catch (Throwable e) { //
      }
    }
  }
  return new StaticMetaMethodSite.StaticMetaMethodSiteNoUnwrapNoCoerce(site, metaClass, this, params);
}
origin: org.kohsuke.droovy/groovy

public CallSite createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params) {
  if (!hasStaticCallSiteConstructor()) {
   Constructor constr = null;
   if (CallSiteGenerator.isCompilable(this)) {
     constr = CallSiteGenerator.compileStaticMethod(this);
     if (constr != null)
       staticCallSiteConstructor = new SoftReference<Constructor> (constr);
   }
  }
  if (hasStaticCallSiteConstructor()) {
    final Constructor constructor = staticCallSiteConstructor.get();
    if (constructor != null) {
      try {
      return (CallSite) constructor.newInstance(site, metaClass, this, params);
      } catch (Throwable e) { //
      }
    }
  }
  return new StaticMetaMethodSite.StaticMetaMethodSiteNoUnwrapNoCoerce(site, metaClass, this, params);
}
org.codehaus.groovy.reflectionCachedMethodhasStaticCallSiteConstructor

Popular methods of CachedMethod

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

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JButton (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 12 Jupyter Notebook Extensions
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