Codota Logo
BackedAnnotatedParameter
Code IndexAdd Codota to your IDE (free)

How to use
BackedAnnotatedParameter
in
org.jboss.weld.annotated.slim.backed

Best Java code snippets using org.jboss.weld.annotated.slim.backed.BackedAnnotatedParameter (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.jboss.weld.se/weld-se

public static <X> AnnotatedParameter<X> of(Type baseType, Annotation[] annotations, int position, BackedAnnotatedCallable<X, ?> declaringCallable, SharedObjectCache sharedObjectCache) {
  return new BackedAnnotatedParameter<X>(baseType, annotations, position, declaringCallable, sharedObjectCache);
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
  return getAnnotation(annotationType) != null;
}
origin: weld/core

public SerializationProxy(BackedAnnotatedParameter<X> parameter) {
  this.callable = parameter.getDeclaringCallable();
  this.position = parameter.getPosition();
}
origin: org.jboss.weld.se/weld-se

@Override
protected List<AnnotatedParameter<X>> initParameters(Method method, SharedObjectCache sharedObjectCache) {
  final Type[] genericParameterTypes = method.getGenericParameterTypes();
  List<AnnotatedParameter<X>> parameters = new ArrayList<AnnotatedParameter<X>>(genericParameterTypes.length);
  Annotation[][] parameterAnnotations = method.getParameterAnnotations();
  for (int i = 0; i < genericParameterTypes.length; i++) {
    Type parameterType = genericParameterTypes[i];
    parameters.add(BackedAnnotatedParameter.of(parameterType, parameterAnnotations[i], i, this, sharedObjectCache));
  }
  return immutableListView(parameters);
}
origin: weld/core

  @Override
  protected ReflectionCache getReflectionCache() {
    return getDeclaringCallable().getDeclaringType().getReflectionCache();
  }
}
origin: weld/core

@Override
public <T extends Annotation> T getAnnotation(Class<T> annotationType) {
  for (Annotation annotation : getAnnotations()) {
    if (annotation.annotationType().equals(annotationType)) {
      return cast(annotation);
    }
  }
  return null;
}
origin: weld/core

@Override
public Set<Annotation> getAnnotations() {
  return getReflectionCache().getAnnotations(parameter);
}
origin: weld/core

protected List<AnnotatedParameter<X>> initParameters(E member, SharedObjectCache sharedObjectCache) {
  return BackedAnnotatedParameter.forExecutable(member, this, sharedObjectCache);
}
origin: weld/core

public static <X> List<AnnotatedParameter<X>> forExecutable(Executable executable, BackedAnnotatedCallable<X, ?> declaringCallable, SharedObjectCache cache) {
  final Parameter[] parameters = executable.getParameters();
  if (parameters.length == 0) {
    return Collections.emptyList();
  }
  ImmutableList.Builder<AnnotatedParameter<X>> builder = ImmutableList.builder();
  for (int i = 0; i < parameters.length; i++) {
    builder.add(BackedAnnotatedParameter.of(parameters[i], i, declaringCallable, cache));
  }
  return builder.build();
}
origin: org.jboss.weld.se/weld-se

  @Override
  protected ReflectionCache getReflectionCache() {
    return getDeclaringCallable().getDeclaringType().getReflectionCache();
  }
}
origin: weld/core

@Override
public <T extends Annotation> T getAnnotation(Class<T> annotationType) {
  for (Annotation annotation : getAnnotations()) {
    if (annotation.annotationType().equals(annotationType)) {
      return cast(annotation);
    }
  }
  return null;
}
origin: org.jboss.weld.se/weld-se

@Override
public Set<Annotation> getAnnotations() {
  return getReflectionCache().getParameterAnnotationSet(this);
}
origin: weld/core

protected List<AnnotatedParameter<X>> initParameters(E member, SharedObjectCache sharedObjectCache) {
  return BackedAnnotatedParameter.forExecutable(member, this, sharedObjectCache);
}
origin: org.jboss.weld.se/weld-se

public SerializationProxy(BackedAnnotatedParameter<X> parameter) {
  this.callable = parameter.getDeclaringCallable();
  this.position = parameter.getPosition();
}
origin: weld/core

public static <X> AnnotatedParameter<X> of(Parameter parameter, int position, BackedAnnotatedCallable<X, ?> declaringCallable, SharedObjectCache sharedObjectCache) {
  return new BackedAnnotatedParameter<X>(parameter, position, declaringCallable, sharedObjectCache);
}
origin: weld/core

public static <X> List<AnnotatedParameter<X>> forExecutable(Executable executable, BackedAnnotatedCallable<X, ?> declaringCallable, SharedObjectCache cache) {
  final Parameter[] parameters = executable.getParameters();
  if (parameters.length == 0) {
    return Collections.emptyList();
  }
  ImmutableList.Builder<AnnotatedParameter<X>> builder = ImmutableList.builder();
  for (int i = 0; i < parameters.length; i++) {
    builder.add(BackedAnnotatedParameter.of(parameters[i], i, declaringCallable, cache));
  }
  return builder.build();
}
origin: weld/core

  @Override
  protected ReflectionCache getReflectionCache() {
    return getDeclaringCallable().getDeclaringType().getReflectionCache();
  }
}
origin: org.jboss.weld.se/weld-se

@Override
public <T extends Annotation> T getAnnotation(Class<T> annotationType) {
  for (Annotation annotation : getAnnotations()) {
    if (annotation.annotationType().equals(annotationType)) {
      return cast(annotation);
    }
  }
  return null;
}
origin: weld/core

@Override
public Set<Annotation> getAnnotations() {
  return getReflectionCache().getAnnotations(parameter);
}
origin: org.jboss.weld.se/weld-se

@Override
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
  return getAnnotation(annotationType) != null;
}
org.jboss.weld.annotated.slim.backedBackedAnnotatedParameter

Most used methods

  • <init>
  • getAnnotation
  • getAnnotations
  • getDeclaringCallable
  • getPosition
  • getReflectionCache
  • of
  • forExecutable

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Reference (javax.naming)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now