congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
EnhancedAnnotatedMember.getDeclaringType
Code IndexAdd Tabnine to your IDE (free)

How to use
getDeclaringType
method
in
org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember

Best Java code snippets using org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember.getDeclaringType (Showing top 7 results out of 315)

origin: org.jboss.weld.se/weld-se

public EnhancedAnnotatedType<X> getDeclaringType() {
  return delegate().getDeclaringType();
}
origin: weld/core

protected boolean initScopeFromStereotype() {
  Set<Annotation> possibleScopes = mergedStereotypes.getPossibleScopes();
  if (possibleScopes.size() == 1) {
    this.scope = possibleScopes.iterator().next().annotationType();
    return true;
  } else if (possibleScopes.size() > 1) {
    String stack;
    Class<?> declaringClass;
    if (annotated instanceof EnhancedAnnotatedMember) {
      EnhancedAnnotatedMember<?, ?, ?> member = (EnhancedAnnotatedMember<?, ?, ?>) annotated;
      declaringClass = member.getDeclaringType().getJavaClass();
      stack = "\n  at " + Formats.formatAsStackTraceElement(member.getJavaMember());
    } else {
      declaringClass = annotated.getJavaClass();
      stack = "";
    }
    throw BeanLogger.LOG.multipleScopesFoundFromStereotypes(Formats.formatType(declaringClass, false),
        Formats.formatTypes(mergedStereotypes.getStereotypes(), false), possibleScopes, stack);
  } else {
    return false;
  }
}
origin: weld/core

protected boolean initScopeFromStereotype() {
  Set<Annotation> possibleScopes = mergedStereotypes.getPossibleScopes();
  if (possibleScopes.size() == 1) {
    this.scope = possibleScopes.iterator().next().annotationType();
    return true;
  } else if (possibleScopes.size() > 1) {
    String stack;
    Class<?> declaringClass;
    if (annotated instanceof EnhancedAnnotatedMember) {
      EnhancedAnnotatedMember<?, ?, ?> member = (EnhancedAnnotatedMember<?, ?, ?>) annotated;
      declaringClass = member.getDeclaringType().getJavaClass();
      stack = "\n  at " + Formats.formatAsStackTraceElement(member.getJavaMember());
    } else {
      declaringClass = annotated.getJavaClass();
      stack = "";
    }
    throw BeanLogger.LOG.multipleScopesFoundFromStereotypes(Formats.formatType(declaringClass, false),
        Formats.formatTypes(mergedStereotypes.getStereotypes(), false), possibleScopes, stack);
  } else {
    return false;
  }
}
origin: weld/core

protected boolean initScopeFromStereotype() {
  Set<Annotation> possibleScopes = mergedStereotypes.getPossibleScopes();
  if (possibleScopes.size() == 1) {
    this.scope = possibleScopes.iterator().next().annotationType();
    return true;
  } else if (possibleScopes.size() > 1) {
    String stack;
    Class<?> declaringClass;
    if (annotated instanceof EnhancedAnnotatedMember) {
      EnhancedAnnotatedMember<?, ?, ?> member = (EnhancedAnnotatedMember<?, ?, ?>) annotated;
      declaringClass = member.getDeclaringType().getJavaClass();
      stack = "\n  at " + Formats.formatAsStackTraceElement(member.getJavaMember());
    } else {
      declaringClass = annotated.getJavaClass();
      stack = "";
    }
    throw BeanLogger.LOG.multipleScopesFoundFromStereotypes(Formats.formatType(declaringClass, false),
        Formats.formatTypes(mergedStereotypes.getStereotypes(), false), possibleScopes, stack);
  } else {
    return false;
  }
}
origin: org.jboss.weld.se/weld-se-shaded

protected boolean initScopeFromStereotype() {
  Set<Annotation> possibleScopes = mergedStereotypes.getPossibleScopes();
  if (possibleScopes.size() == 1) {
    this.scope = possibleScopes.iterator().next().annotationType();
    return true;
  } else if (possibleScopes.size() > 1) {
    String stack;
    Class<?> declaringClass;
    if (annotated instanceof EnhancedAnnotatedMember) {
      EnhancedAnnotatedMember<?, ?, ?> member = (EnhancedAnnotatedMember<?, ?, ?>) annotated;
      declaringClass = member.getDeclaringType().getJavaClass();
      stack = "\n  at " + Formats.formatAsStackTraceElement(member.getJavaMember());
    } else {
      declaringClass = annotated.getJavaClass();
      stack = "";
    }
    throw BeanLogger.LOG.multipleScopesFoundFromStereotypes(Formats.formatType(declaringClass, false),
        Formats.formatTypes(mergedStereotypes.getStereotypes(), false), possibleScopes, stack);
  } else {
    return false;
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

protected boolean initScopeFromStereotype() {
  Set<Annotation> possibleScopes = mergedStereotypes.getPossibleScopes();
  if (possibleScopes.size() == 1) {
    this.scope = possibleScopes.iterator().next().annotationType();
    return true;
  } else if (possibleScopes.size() > 1) {
    String stack;
    Class<?> declaringClass;
    if (annotated instanceof EnhancedAnnotatedMember) {
      EnhancedAnnotatedMember<?, ?, ?> member = (EnhancedAnnotatedMember<?, ?, ?>) annotated;
      declaringClass = member.getDeclaringType().getJavaClass();
      stack = "\n  at " + Formats.formatAsStackTraceElement(member.getJavaMember());
    } else {
      declaringClass = annotated.getJavaClass();
      stack = "";
    }
    throw BeanLogger.LOG.multipleScopesFoundFromStereotypes(Formats.formatType(declaringClass, false),
        Formats.formatTypes(mergedStereotypes.getStereotypes(), false), possibleScopes, stack);
  } else {
    return false;
  }
}
origin: org.jboss.weld.se/weld-se

protected boolean initScopeFromStereotype() {
  Set<Annotation> possibleScopes = mergedStereotypes.getPossibleScopes();
  if (possibleScopes.size() == 1) {
    this.scope = possibleScopes.iterator().next().annotationType();
    return true;
  } else if (possibleScopes.size() > 1) {
    String stack;
    Class<?> declaringClass;
    if (annotated instanceof EnhancedAnnotatedMember) {
      EnhancedAnnotatedMember<?, ?, ?> member = (EnhancedAnnotatedMember<?, ?, ?>) annotated;
      declaringClass = member.getDeclaringType().getJavaClass();
      stack = "\n  at " + Formats.formatAsStackTraceElement(member.getJavaMember());
    } else {
      declaringClass = annotated.getJavaClass();
      stack = "";
    }
    throw BeanLogger.LOG.multipleScopesFoundFromStereotypes(Formats.formatType(declaringClass, false),
        Formats.formatTypes(mergedStereotypes.getStereotypes(), false), possibleScopes, stack);
  } else {
    return false;
  }
}
org.jboss.weld.annotated.enhancedEnhancedAnnotatedMembergetDeclaringType

Javadoc

Gets an abstraction of the declaring class

Popular methods of EnhancedAnnotatedMember

  • getBaseType
  • getJavaClass
  • getJavaMember
  • slim
    Returns a lightweight implementation of AnnotatedMember with minimal memory footprint.

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Menu (java.awt)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Option (scala)
  • 14 Best Plugins for Eclipse
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