Tabnine Logo
PlasticMethod.hasAnnotation
Code IndexAdd Tabnine to your IDE (free)

How to use
hasAnnotation
method
in
org.apache.tapestry5.plastic.PlasticMethod

Best Java code snippets using org.apache.tapestry5.plastic.PlasticMethod.hasAnnotation (Showing top 6 results out of 315)

origin: apache/tapestry-5

  private boolean hasAnnotation(PlasticMethod method)
  {
    return method.hasAnnotation(OnEvent.class);
  }
};
origin: apache/tapestry-5

  public boolean accept(PlasticMethod method)
  {
    return method.getDescription().methodName.equalsIgnoreCase(methodAlias)
        || method.hasAnnotation(methodAnnotationClass);
  }
};
origin: apache/tapestry-5

  public boolean accept(PlasticMethod method)
  {
    return method.getDescription().methodName.equalsIgnoreCase("pageReset") ||
        method.hasAnnotation(PageReset.class);
  }
};
origin: apache/tapestry-5

private Class categorizeMethod(PlasticMethod method)
{
  for (Class annotationClass : annotationToDescription.keySet())
  {
    if (method.hasAnnotation(annotationClass))
      return annotationClass;
  }
  return nameToAnnotation.get(method.getDescription().methodName);
}
origin: org.apache.tapestry/plastic

@Override
public <T extends Annotation> List<PlasticMethod> getMethodsWithAnnotation(Class<T> annotationType)
{
  check();
  List<PlasticMethod> result = getMethods();
  Iterator<PlasticMethod> iterator = result.iterator();
  while (iterator.hasNext())
  {
    PlasticMethod method = iterator.next();
    if (!method.hasAnnotation(annotationType))
      iterator.remove();
  }
  return result;
}
origin: apache/tapestry-5

@Override
public <T extends Annotation> List<PlasticMethod> getMethodsWithAnnotation(Class<T> annotationType)
{
  check();
  List<PlasticMethod> result = getMethods();
  result.removeIf(method -> !method.hasAnnotation(annotationType));
  return result;
}
org.apache.tapestry5.plasticPlasticMethodhasAnnotation

Popular methods of PlasticMethod

  • addAdvice
    Adds advice to the method. Adding advice implicitly rewrites the implementation of the method (this
  • changeImplementation
    Clears the instructions for this method, and creates a new empty InstructionBuilder so that the impl
  • delegateTo
    Much like #delegateTo(PlasticField), but the object to delegate to is dynamically computed by anothe
  • getDescription
    Returns a representation of the method's name, return value, argument types, etc.
  • getAnnotation
  • getPlasticClass
    Returns the PlasticClass containing this method.
  • getMethodIdentifier
    Returns a short identifier for the method that includes the class name, the method name, and the typ
  • isVoid
    Returns true if this method is type void.
  • getHandle
    Returns a handle that can be used to invoke a method of a transformed class instance.
  • getParameters
    Returns access to the parameters of the method and, in particular, the visible annotations on those
  • isOverride
    Returns true if the method is an override of a method from the parent class.
  • isOverride

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JList (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
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