Codota Logo
EnhancedAnnotatedParameter.getActualTypeArguments
Code IndexAdd Codota to your IDE (free)

How to use
getActualTypeArguments
method
in
org.jboss.weld.annotated.enhanced.EnhancedAnnotatedParameter

Best Java code snippets using org.jboss.weld.annotated.enhanced.EnhancedAnnotatedParameter.getActualTypeArguments (Showing top 6 results out of 315)

  • Common ways to obtain EnhancedAnnotatedParameter
private void myMethod () {
EnhancedAnnotatedParameter e =
  • Codota IconObject obj;Reflections.cast(obj)
  • Codota IconEnhancedAnnotatedMethod enhancedAnnotatedMethod;enhancedAnnotatedMethod.getEnhancedParameters(Disposes.class).get(int1)
  • Codota IconEnhancedAnnotatedMethod enhancedAnnotatedMethod;enhancedAnnotatedMethod.getEnhancedParameters(Observes.class).get(int1)
  • Smart code suggestions by Codota
}
origin: weld/core

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: weld/core

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: weld/core

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: org.jboss.weld.se/weld-se

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
org.jboss.weld.annotated.enhancedEnhancedAnnotatedParametergetActualTypeArguments

Popular methods of EnhancedAnnotatedParameter

  • getAnnotation
  • getBaseType
  • getDeclaringEnhancedCallable
  • getJavaClass
  • getMetaAnnotations
  • getPosition
  • getQualifiers
  • isAnnotationPresent
  • slim
    Returns a lightweight implementation of AnnotatedParameter with minimal memory footprint.
  • getDeclaringCallable
  • getDeclaringType
  • getDeclaringType

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • 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
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