congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Type.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.jboss.jandex.Type

Best Java code snippets using org.jboss.jandex.Type.toString (Showing top 13 results out of 315)

origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    AnnotationValue value = annotationInstance.value();
    return value.asClass().toString();
  }
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    AnnotationValue value = annotationInstance.value();
    return value.asClass().toString();
  }
}
origin: wildfly/wildfly

List<String> parameterTypes = new ArrayList<String>(m.args().length);
for (Type type : m.args()) {
  parameterTypes.add(type.toString());
origin: wildfly/jandex

/**
 * Returns a string representation for this type. It is similar, yet not equivalent
 * to a Java source code representation.
 *
 * @return the string representation.
 */
public String toString() {
  return toString(false);
}
origin: wildfly/jandex

String toString(boolean simple) {
  StringBuilder builder = new StringBuilder();
  appendAnnotations(builder);
  builder.append(name);
  // FIXME - revist this logic
  if (!simple && bounds.length > 0 && !(bounds.length == 1 && ClassType.OBJECT_TYPE.equals(bounds[0]))) {
    builder.append(" extends ").append(bounds[0].toString(true));
    for (int i = 1; i < bounds.length; i++) {
      builder.append(" & ").append(bounds[i].toString(true));
    }
  }
  return builder.toString();
}
origin: org.jboss.as/jboss-as-ejb3

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance) {
    AnnotationValue value = annotationInstance.value();
    return value.asClass().toString();
  }
}
origin: org.jboss.as/jboss-as-ejb3

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance) {
    AnnotationValue value = annotationInstance.value();
    return value.asClass().toString();
  }
}
origin: org.wildfly/wildfly-osgi-service

  private boolean hasInjectionPoint(DeploymentUnit depUnit, String anName) {
    boolean result = false;
    CompositeIndex compositeIndex = depUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);
    List<AnnotationInstance> annotationList = compositeIndex.getAnnotations(DotName.createSimple(anName));
    for (AnnotationInstance instance : annotationList) {
      AnnotationTarget target = instance.target();
      if (target instanceof FieldInfo) {
        FieldInfo fieldInfo = (FieldInfo) target;
        String typeName = fieldInfo.type().toString();
        if (typeName.startsWith("org.osgi.framework") || typeName.startsWith("org.osgi.service")) {
          LOGGER.debugf("OSGi injection point of type '%s' detected: %s", typeName, fieldInfo.declaringClass());
          result = true;
          break;
        }
      }
    }
    return result;
  }
}
origin: org.jboss.as/jboss-as-osgi-service

  private boolean hasInjectionPoint(DeploymentUnit depUnit, String anName) {
    boolean result = false;
    CompositeIndex compositeIndex = depUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);
    List<AnnotationInstance> annotationList = compositeIndex.getAnnotations(DotName.createSimple(anName));
    for (AnnotationInstance instance : annotationList) {
      AnnotationTarget target = instance.target();
      if (target instanceof FieldInfo) {
        FieldInfo fieldInfo = (FieldInfo) target;
        String typeName = fieldInfo.type().toString();
        if (typeName.startsWith("org.osgi.framework") || typeName.startsWith("org.osgi.service")) {
          LOGGER.debugf("OSGi injection point of type '%s' detected: %s", typeName, fieldInfo.declaringClass());
          result = true;
          break;
        }
      }
    }
    return result;
  }
}
origin: org.jboss.as/jboss-as-connector

List<String> parameterTypes = new ArrayList<String>(m.args().length);
for (Type type : m.args()) {
  parameterTypes.add(type.toString());
origin: org.jboss.eap/wildfly-connector

List<String> parameterTypes = new ArrayList<String>(m.args().length);
for (Type type : m.args()) {
  parameterTypes.add(type.toString());
origin: org.jboss.ironjacamar.jdk8/ironjacamar-common-impl

for (Type type : m.args())
  parameterTypes.add(type.toString());
origin: spring-projects/sts4

public static IJavaType wrap(Type type) {
  switch (type.kind()) {
  case ARRAY:
    return new ArrayTypeWrapper(type.asArrayType());
  case CLASS:
    return new ClassTypeWrapper(type.asClassType());
  case PARAMETERIZED_TYPE:
    return new ParameterizedTypeWrapper(type.asParameterizedType());
  case PRIMITIVE:
    return wrap(type.asPrimitiveType());
  case TYPE_VARIABLE:
    return new TypeVariableWrapper(type.asTypeVariable());
  case UNRESOLVED_TYPE_VARIABLE:
    return new UnresolvedTypeVariableWrapper(type.asUnresolvedTypeVariable());
  case VOID:
    return IVoidType.DEFAULT;
  case WILDCARD_TYPE:
    return new WildcardTypeWrapper(type.asWildcardType());
  }
  throw new IllegalArgumentException("Invalid Java Type " + type.toString());
}
org.jboss.jandexTypetoString

Javadoc

Returns a string representation for this type. It is similar, yet not equivalent to a Java source code representation.

Popular methods of Type

  • name
  • create
  • kind
  • asTypeVariable
    Casts this type to a org.jboss.jandex.ParameterizedType and returns it if the kind is Kind#TYPE_VARI
  • asArrayType
    Casts this type to an org.jboss.jandex.ArrayType and returns it if the kind is Kind#ARRAYThrows an e
  • asClassType
    Casts this type to a org.jboss.jandex.ClassType and returns it if the kind is Kind#CLASSThrows an ex
  • asParameterizedType
    Casts this type to a org.jboss.jandex.ParameterizedType and returns it if the kind is Kind#PARAMETER
  • asPrimitiveType
    Casts this type to a org.jboss.jandex.PrimitiveType and returns it if the kind is Kind#PRIMITIVEThro
  • asUnresolvedTypeVariable
    Casts this type to an org.jboss.jandex.UnresolvedTypeVariable and returns it if the kind is Kind#UNR
  • asWildcardType
    Casts this type to a org.jboss.jandex.WildcardType and returns it if the kind is Kind#WILDCARD_TYPET
  • equals
    Compares this Type with another type, and returns true if they are equivalent. A type is equivalent
  • addAnnotation
  • equals,
  • addAnnotation,
  • annotation,
  • annotationArray,
  • appendAnnotations,
  • asVoidType,
  • copyType,
  • hashCode

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JList (javax.swing)
  • Option (scala)
  • Top Vim 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