Tabnine Logo
ClassInfo.methods
Code IndexAdd Tabnine to your IDE (free)

How to use
methods
method
in
org.jboss.jandex.ClassInfo

Best Java code snippets using org.jboss.jandex.ClassInfo.methods (Showing top 20 results out of 315)

origin: wildfly/wildfly

/**
 * Returns true if the passed <code>mdbClass</code> meets the requirements set by the EJB3 spec about bean implementation
 * classes. The passed <code>mdbClass</code> must not be an interface and must be public and not final and not abstract. If
 * it passes these requirements then this method returns true. Else it returns false.
 *
 * @param mdbClass The MDB class
 * @return
 * @throws DeploymentUnitProcessingException
 */
public static Collection<MdbValidityStatus> assertEjbClassValidity(final ClassInfo mdbClass)
    throws DeploymentUnitProcessingException {
  Collection<MdbValidityStatus> mdbComplianceIssueList = new ArrayList<>(MdbValidityStatus.values().length);
  final String className = mdbClass.name().toString();
  verifyModifiers(className, mdbClass.flags(), mdbComplianceIssueList);
  for (MethodInfo method : mdbClass.methods()) {
    if ("onMessage".equals(method.name())) {
      verifyOnMessageMethod(className, method.flags(), mdbComplianceIssueList);
    }
    if ("finalize".equals(method.name())) {
      EjbLogger.DEPLOYMENT_LOGGER.mdbCantHaveFinalizeMethod(className);
      mdbComplianceIssueList.add(MdbValidityStatus.MDB_SHOULD_NOT_HAVE_FINALIZE_METHOD);
    }
  }
  return mdbComplianceIssueList;
}
origin: spring-projects/sts4

@Override
public Stream<IMethod> getMethods() {
  return info.methods().stream().map(m -> {
    return Wrappers.wrap(this, m, javadocProvider);
  });
}
origin: io.thorntail/config-api-runtime

private static List<Method> __invoke(Class<?> clazz, Index index, Comparator<Method> comparator) throws NoSuchMethodException {
  ArrayList methods = new ArrayList();
  ClassInfo clazzInfo = index.getClassByName(DotName.createSimple(clazz.getName()));
  for (MethodInfo method : clazzInfo.methods()) {
    if (method.hasAnnotation(IndexFactory.SUBRESOURCE_META)) {
      methods.add(clazz.getMethod(method.name()));
    }
  }
  if (clazzInfo.superName() != null && clazz.getSuperclass() != java.lang.Object.class) {
    index = IndexFactory.createIndex(clazz.getSuperclass());
    return __invoke(clazz.getSuperclass(), index, comparator);
  }
  Collections.sort(methods, comparator);
  return methods;
}
origin: org.wildfly.swarm/config-api-runtime

private static List<Method> __invoke(Class<?> clazz, Index index, Comparator<Method> comparator) throws NoSuchMethodException {
  ArrayList methods = new ArrayList();
  ClassInfo clazzInfo = index.getClassByName(DotName.createSimple(clazz.getName()));
  for (MethodInfo method : clazzInfo.methods()) {
    if (method.hasAnnotation(IndexFactory.SUBRESOURCE_META)) {
      methods.add(clazz.getMethod(method.name()));
    }
  }
  if (clazzInfo.superName() != null && clazz.getSuperclass() != java.lang.Object.class) {
    index = IndexFactory.createIndex(clazz.getSuperclass());
    return __invoke(clazz.getSuperclass(), index, comparator);
  }
  Collections.sort(methods, comparator);
  return methods;
}
origin: wildfly/jandex

List<MethodInfo> methods = definition.methods();
ArrayList<AnnotationValue> result = new ArrayList<AnnotationValue>(methods.size());
for (MethodInfo method : methods) {
origin: io.thorntail/config-api-runtime

for (MethodInfo method : clazz.methods()) {
origin: mbechler/serianalyzer

byte[] mnameb = methodReference.getMethod().getBytes(StandardCharsets.UTF_8);
for ( MethodInfo i : impl.methods() ) {
  if ( ( i.flags() & Modifier.ABSTRACT ) != 0 ) {
    continue;
origin: org.wildfly.swarm/config-api-runtime

for (MethodInfo method : clazz.methods()) {
origin: io.thorntail/config-api-runtime

for (MethodInfo method : clazz.methods()) {
origin: org.wildfly.swarm/config-api-runtime

for (MethodInfo method : clazz.methods()) {
origin: io.thorntail/monitor

ClassInfo classInfo = annotation.target().asClass();
for (MethodInfo methodInfo : classInfo.methods()) {
  if (methodInfo.hasAnnotation(HEALTH)) {
    StringBuilder sb = new StringBuilder();
origin: org.wildfly.swarm/config-api-runtime

for (MethodInfo method : clazz.methods()) {
  if (method.hasAnnotation(IndexFactory.BINDING_META)) {
origin: io.thorntail/config-api-runtime

for (MethodInfo method : clazz.methods()) {
  if (method.hasAnnotation(IndexFactory.BINDING_META)) {
origin: io.thorntail/microprofile-health

ClassInfo classInfo = annotation.target().asClass();
for (MethodInfo methodInfo : classInfo.methods()) {
  if (methodInfo.hasAnnotation(HEALTH) || methodInfo.hasAnnotation(MP_HEALTH)) {
    StringBuilder sb = new StringBuilder();
origin: weld/core

for (MethodInfo method : interfaceInfo.methods()) {
origin: weld/core

for (MethodInfo method : interfaceInfo.methods()) {
origin: org.jboss.weld.se/weld-se-shaded

for (MethodInfo method : interfaceInfo.methods()) {
origin: org.jboss.weld.environment/weld-environment-common

for (MethodInfo method : interfaceInfo.methods()) {
origin: org.jboss.weld.servlet/weld-servlet-shaded

for (MethodInfo method : interfaceInfo.methods()) {
origin: weld/core

for (MethodInfo method : interfaceInfo.methods()) {
org.jboss.jandexClassInfomethods

Javadoc

Returns a list of all methods declared in this class. This includes constructors and static initializer blocks which have the special JVM assigned names of "<init>" and "<clinit>", respectively. It does not, however, include inherited methods. These must be discovered by traversing the class hierarchy.

This list may be empty, but never null.

Popular methods of ClassInfo

  • name
  • flags
  • annotations
  • superName
  • toString
  • interfaces
  • hasNoArgsConstructor
  • classAnnotations
  • interfaceNames
  • nestingType
  • enclosingClass
    Returns the enclosing class if this is an inner class, or null if this is an anonymous, a local, or
  • <init>
  • enclosingClass,
  • <init>,
  • create,
  • method,
  • simpleName,
  • copyInterfaceTypes,
  • enclosingMethod,
  • field,
  • fieldArray

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • Kernel (java.awt.image)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top 15 Vim Plugins
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