congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AnnotatedTypeBuilder.addToMethodParameter
Code IndexAdd Tabnine to your IDE (free)

How to use
addToMethodParameter
method
in
org.jboss.seam.solder.reflection.annotated.AnnotatedTypeBuilder

Best Java code snippets using org.jboss.seam.solder.reflection.annotated.AnnotatedTypeBuilder.addToMethodParameter (Showing top 3 results out of 315)

origin: org.jboss.seam.config/seam-config-xml

public void addToMethodParameter(Method method, int param, Annotation annotation)
{
 builder.addToMethodParameter(method, param, annotation);
}
origin: org.jboss.seam.solder/seam-solder

builder.addToMethodParameter(m.getJavaMember(), observerParameter.getPosition(), declaringBeanSyntheticQualifier);
ObserverMethodInfo<?> info = ObserverMethodInfo.of(observerQualifiers, declaringBeanQualifiers, m, declaringBeanSyntheticQualifier);
defaultObserverMethodsByBean.put(declaringBeanSyntheticQualifier, info);
origin: org.jboss.seam.solder/seam-solder

/**
* Add an annotation to the specified parameter. If the callable which
* declares the parameter is not already present, it will be added. If the
* parameter is not already present on the callable, it will be added.
* 
* @param parameter the parameter to add the annotation to
* @param annotation the annotation to add
* @throws IllegalArgumentException if the annotation is null or if the
*            parameter is not declared on either a constructor or a method
*/
public AnnotatedTypeBuilder<X> addToParameter(AnnotatedParameter<? super X> parameter, Annotation annotation)
{
 if (parameter.getDeclaringCallable().getJavaMember() instanceof Method)
 {
   Method method = (Method) parameter.getDeclaringCallable().getJavaMember();
   return addToMethodParameter(method, parameter.getPosition(), annotation);
 }
 if (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>)
 {
   @SuppressWarnings("unchecked")
   Constructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();
   return addToConstructorParameter(constructor, parameter.getPosition(), annotation);
 }
 else
 {
   throw new IllegalArgumentException("Cannot remove from parameter " + parameter + " - cannot operate on member " + parameter.getDeclaringCallable().getJavaMember());
 }
}
org.jboss.seam.solder.reflection.annotatedAnnotatedTypeBuilderaddToMethodParameter

Javadoc

Add an annotation to the specified method parameter. If the method is not already present, it will be added. If the method parameter is not already present, it will be added.

Popular methods of AnnotatedTypeBuilder

  • <init>
    Create a new builder. A new builder has no annotations and no members.
  • create
    Create an AnnotatedType. Any public members present on the underlying class and not overridden by th
  • readFromType
    Reads in from an existing AnnotatedType. Any elements not present are added. The javaClass will be r
  • addToClass
    Add an annotation to the type declaration.
  • addToField
    Add an annotation to the specified field. If the field is not already present, it will be added.
  • overrideFieldType
    Override the declared type of a field
  • removeFromClass
    Remove an annotation from the type
  • addToConstructor
    Add an annotation to the specified constructor. If the constructor is not already present, it will b
  • addToConstructorParameter
    Add an annotation to the specified constructor parameter. If the constructor is not already present,
  • addToMethod
    Add an annotation to the specified method. If the method is not already present, it will be added.
  • removeFromField
    Remove an annotation from the specified field.
  • removeFromMethod
    Remove an annotation from the specified method.
  • removeFromField,
  • removeFromMethod,
  • getJavaClass,
  • mergeAnnotationsOnElement,
  • overrideConstructorParameterType,
  • overrideMethodParameterType,
  • overrideParameterType,
  • redefine,
  • redefineAnnotationBuilder

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 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