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

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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