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

How to use
hasPossibleStaticMethod
method
in
org.codehaus.groovy.ast.ClassNode

Best Java code snippets using org.codehaus.groovy.ast.ClassNode.hasPossibleStaticMethod (Showing top 10 results out of 315)

origin: org.codehaus.groovy/groovy

private static Expression findStaticMethod(ClassNode staticImportType, String methodName, Expression args) {
  if (staticImportType.isPrimaryClassNode() || staticImportType.isResolved()) {
    if (staticImportType.hasPossibleStaticMethod(methodName, args)) {
      return new StaticMethodCallExpression(staticImportType, methodName, args);
    }
  }
  return null;
}
origin: org.codehaus.groovy/groovy

String baseName = fieldNode.isStatic() ? Traits.STATIC_INIT_METHOD : Traits.INIT_METHOD;
StaticMethodCallExpression mce = callX(helperClassNode, baseName + fieldNode.getName(), args(varX("this")));
if (helperClassNode.hasPossibleStaticMethod(mce.getMethod(), mce.getArguments())) {
  Statement stmt = stmt(assignX(varX(fieldNode.getName(), fieldNode.getType()), mce));
  if (isStatic == 0) {
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

private Expression findStaticMethod(ClassNode staticImportType, String methodName, Expression args) {
  if (staticImportType.isPrimaryClassNode() || staticImportType.isResolved()) {
    if (staticImportType.hasPossibleStaticMethod(methodName, args)) {
      return new StaticMethodCallExpression(staticImportType, methodName, args);
    }
  }
  return null;
}
origin: org.kohsuke.droovy/groovy

private Expression findStaticMethod(ClassNode staticImportType, String methodName, Expression args) {
  if (staticImportType.isPrimaryClassNode() || staticImportType.isResolved()) {
    if (staticImportType.hasPossibleStaticMethod(methodName, args)) {
      return new StaticMethodCallExpression(staticImportType, methodName, args);
    }
  }
  return null;
}
origin: org.codehaus.groovy/groovy-all-minimal

private Expression findStaticMethod(ClassNode staticImportType, String methodName, Expression args) {
  if (staticImportType.isPrimaryClassNode() || staticImportType.isResolved()) {
    if (staticImportType.hasPossibleStaticMethod(methodName, args)) {
      return new StaticMethodCallExpression(staticImportType, methodName, args);
    }
  }
  return null;
}
origin: org.codehaus.groovy/groovy-jdk14

private Expression findStaticMethod(ClassNode staticImportType, String methodName, Expression args) {
  if (staticImportType.isPrimaryClassNode() || staticImportType.isResolved()) {
    if (staticImportType.hasPossibleStaticMethod(methodName, args)) {
      return new StaticMethodCallExpression(staticImportType, methodName, args);
    }
  }
  return null;
}
origin: org.codehaus.groovy/groovy-jdk14

  (lookForPossibleStaticMethod && currentClass.hasPossibleStaticMethod(methodName, args))) {
StaticMethodCallExpression smce = new StaticMethodCallExpression(currentClass, methodName, args);
smce.setSourcePosition(mce);
origin: org.codehaus.groovy/groovy-all-minimal

  (lookForPossibleStaticMethod && currentClass.hasPossibleStaticMethod(methodName, args))) {
StaticMethodCallExpression smce = new StaticMethodCallExpression(currentClass, methodName, args);
smce.setSourcePosition(mce);
origin: org.kohsuke.droovy/groovy

  (lookForPossibleStaticMethod && currentClass.hasPossibleStaticMethod(methodName, args))) {
StaticMethodCallExpression smce = new StaticMethodCallExpression(currentClass, methodName, args);
smce.setSourcePosition(mce);
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

  (lookForPossibleStaticMethod && currentClass.hasPossibleStaticMethod(methodName, args))) {
StaticMethodCallExpression smce = new StaticMethodCallExpression(currentClass, methodName, args);
setSourcePosition(smce, mce);
org.codehaus.groovy.astClassNodehasPossibleStaticMethod

Javadoc

Returns true if the given method has a possibly matching static method with the given name and arguments.

Popular methods of ClassNode

  • getName
  • getMethods
    This methods creates a list of all methods with this name of the current class and of all super clas
  • <init>
    Constructor used by makeArray() if no real class is available
  • getSuperClass
  • equals
  • addMethod
  • getAnnotations
  • addField
  • getFields
    Returns a list containing FieldNode objects for each field in the class represented by this ClassNod
  • getPlainNodeReference
  • getField
    Finds a field matching the given name in this class or a parent class.
  • getMethod
    Finds a method matching the given name and parameters in this class or any parent class.
  • getField,
  • getMethod,
  • isInterface,
  • getNameWithoutPackage,
  • isScript,
  • getDeclaredMethod,
  • getGenericsTypes,
  • getDeclaredConstructors,
  • getModifiers,
  • getTypeClass

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
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Collectors (java.util.stream)
  • JLabel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 17 Plugins for Android Studio
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