congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
EnhancedAnnotatedParameter.getActualTypeArguments
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Path (java.nio.file)
  • Permission (java.security)
    Legacy security code; do not use.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • 21 Best Atom Packages for 2021
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