Tabnine Logo
DotName.local
Code IndexAdd Tabnine to your IDE (free)

How to use
local
method
in
org.jboss.jandex.DotName

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

origin: wildfly/wildfly

private DotName getPackageName(DotName name) {
  if (name.isComponentized()) {
    while (name.isInner()) {
      name = name.prefix();
      if (name == null) {
        throw new IllegalStateException("Could not determine package from corrupted class name");
      }
    }
    return name.prefix();
  } else {
    final int lastIndex = name.local().lastIndexOf(".");
    if (lastIndex == -1) {
      return name;
    }
    return DotName.createSimple(name.local().substring(0, name.local().lastIndexOf(".")));
  }
}
origin: wildfly/wildfly

  continue;
final String ejbName = beanClassInfo.name().local();
final AnnotationValue nameValue = messageBeanAnnotation.value("name");
final String beanName = (nameValue == null || nameValue.asString().isEmpty()) ? ejbName : propertyReplacer.replaceProperties(nameValue.asString());
origin: wildfly/wildfly

  continue;
final String ejbName = sessionBeanClassInfo.name().local();
final AnnotationValue nameValue = sessionBeanAnnotation.value("name");
final String beanName = (nameValue == null || nameValue.asString().isEmpty()) ? ejbName : propertyReplacer.replaceProperties(nameValue.asString());
origin: org.jboss.weld.se/weld-se

@Override
public boolean isTopLevelClass() {
  // According to JLS "13.1 The Form of a Binary"
  return !classInfo.name().local().contains("$");
}
origin: org.wildfly/wildfly-jpa

/**
 * Based on the the annotation type, its either entitymanager or entitymanagerfactory
 *
 * @param annotation
 * @return
 */
private String getClassLevelInjectionType(final AnnotationInstance annotation) {
  boolean isPC = annotation.name().local().equals("PersistenceContext");
  return isPC ? ENTITY_MANAGER_CLASS : ENTITY_MANAGERFACTORY_CLASS;
}
origin: org.jboss.eap/wildfly-jpa

private boolean isPersistenceContext(final AnnotationInstance annotation) {
  return annotation.name().local().equals("PersistenceContext");
}
origin: org.jboss.eap/wildfly-jpa

/**
 * Based on the the annotation type, its either entitymanager or entitymanagerfactory
 *
 * @param annotation
 * @return
 */
private String getClassLevelInjectionType(final AnnotationInstance annotation) {
  boolean isPC = annotation.name().local().equals("PersistenceContext");
  return isPC ? ENTITY_MANAGER_CLASS : ENTITY_MANAGERFACTORY_CLASS;
}
origin: org.wildfly/wildfly-jpa

private boolean isPersistenceUnit(final AnnotationInstance annotation) {
  return annotation.name().local().equals("PersistenceUnit");
}
origin: org.wildfly/wildfly-jpa

private boolean isPersistenceUnits(final AnnotationInstance annotation) {
  return annotation.name().local().equals("PersistenceUnits");
}
origin: org.jboss.eap/wildfly-jpa

private boolean isPersistenceUnits(final AnnotationInstance annotation) {
  return annotation.name().local().equals("PersistenceUnits");
}
origin: weld/core

private DotName getPackageName(DotName name) {
  if (name.isComponentized()) {
    return name.prefix();
  } else {
    final int lastIndex = name.local().lastIndexOf(".");
    if (lastIndex == -1) {
      return name;
    }
    return DotName.createSimple(name.local().substring(0, lastIndex));
  }
}
origin: org.jboss.weld.se/weld-se-shaded

private DotName getPackageName(DotName name) {
  if (name.isComponentized()) {
    return name.prefix();
  } else {
    final int lastIndex = name.local().lastIndexOf(".");
    if (lastIndex == -1) {
      return name;
    }
    return DotName.createSimple(name.local().substring(0, lastIndex));
  }
}
origin: org.jboss.weld.se/weld-se

private DotName getPackageName(DotName name) {
  if (name.isComponentized()) {
    return name.prefix();
  } else {
    final int lastIndex = name.local().lastIndexOf(".");
    if (lastIndex == -1) {
      return name;
    }
    return DotName.createSimple(name.local().substring(0, lastIndex));
  }
}
origin: weld/core

private DotName getPackageName(DotName name) {
  if (name.isComponentized()) {
    return name.prefix();
  } else {
    final int lastIndex = name.local().lastIndexOf(".");
    if (lastIndex == -1) {
      return name;
    }
    return DotName.createSimple(name.local().substring(0, lastIndex));
  }
}
origin: weld/core

private DotName getPackageName(DotName name) {
  if (name.isComponentized()) {
    return name.prefix();
  } else {
    final int lastIndex = name.local().lastIndexOf(".");
    if (lastIndex == -1) {
      return name;
    }
    return DotName.createSimple(name.local().substring(0, lastIndex));
  }
}
origin: org.jboss.weld.environment/weld-environment-common

private DotName getPackageName(DotName name) {
  if (name.isComponentized()) {
    return name.prefix();
  } else {
    final int lastIndex = name.local().lastIndexOf(".");
    if (lastIndex == -1) {
      return name;
    }
    return DotName.createSimple(name.local().substring(0, lastIndex));
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

private DotName getPackageName(DotName name) {
  if (name.isComponentized()) {
    return name.prefix();
  } else {
    final int lastIndex = name.local().lastIndexOf(".");
    if (lastIndex == -1) {
      return name;
    }
    return DotName.createSimple(name.local().substring(0, lastIndex));
  }
}
origin: wildfly/jandex

  private void addClassName(DotName name) {
    if (! nameTable.containsKey(name)) {
      addString(name.local());
      nameTable.put(name, null);
    }

    DotName prefix = name.prefix();
    if (prefix != null)
      addClassName(prefix);
  }
}
origin: org.jboss.as/jboss-as-webservices-server-integration

private static String getUrlPattern(final ClassInfo clazz) {
  final AnnotationInstance webServiceAnnotation = getWebServiceAnnotation(clazz);
  final String serviceName = getStringAttribute(webServiceAnnotation, "serviceName");
  return "/" + (serviceName != null ? serviceName : clazz.name().local());
}
origin: spring-projects/sts4

@Override
public String getElementName() {
  return info.simpleName() == null ? info.name().local() : info.simpleName();
}
org.jboss.jandexDotNamelocal

Javadoc

Returns the local portion of this DotName. In simple variants, the entire fully qualified string is returned. In componentized variants, just the right most portion not including a separator is returned.

Popular methods of DotName

  • createSimple
  • toString
  • equals
  • createComponentized
  • isComponentized
  • prefix
  • hashCode
    Returns a hash code which is based on the semantic representation of this DotName. Whether or not a
  • isInner
    Returns whether the local portion of this DotName represents an inner class.
  • <init>
  • compareTo
    Compares a DotName to another DotName and returns whether this DotName is lesser than, greater than,
  • crossEquals
  • nextChar
  • crossEquals,
  • nextChar

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • Permission (java.security)
    Legacy security code; do not use.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now