org.jboss.weld.util.reflection
Class Formats

java.lang.Object
  extended by org.jboss.weld.util.reflection.Formats

public class Formats
extends Object

Utility class to produce friendly names e.g. for debugging

Author:
Pete Muir, Nicklas Karlsson

Constructor Summary
Formats()
           
 
Method Summary
static String addSpaceIfNeeded(String string)
           
static String formatActualTypeArguments(Type[] actualTypeArguments)
           
static String formatAnnotations(Annotation[] annotations)
          Gets a string representation from an array of annotations
static String formatAnnotations(Iterable<Annotation> annotations)
           
static String formatAsFormalParameterList(Iterable<? extends WeldParameter<?,?>> parameters)
           
static String formatBusinessInterfaceDescriptors(Iterable<? extends org.jboss.weld.ejb.spi.BusinessInterfaceDescriptor<?>> businessInterfaceDescriptors)
           
static String formatModifiers(int modifiers)
           
static String formatType(Type baseType)
           
static String formatTypes(Iterable<? extends Type> baseTypes)
           
static String version(Package pkg)
           
static String version(String version, String timestamp)
           
static String wrapIfNeccessary(String string, String prepend, String append)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Formats

public Formats()
Method Detail

formatType

public static String formatType(Type baseType)

formatTypes

public static String formatTypes(Iterable<? extends Type> baseTypes)

formatBusinessInterfaceDescriptors

public static String formatBusinessInterfaceDescriptors(Iterable<? extends org.jboss.weld.ejb.spi.BusinessInterfaceDescriptor<?>> businessInterfaceDescriptors)

addSpaceIfNeeded

public static String addSpaceIfNeeded(String string)

formatAsFormalParameterList

public static String formatAsFormalParameterList(Iterable<? extends WeldParameter<?,?>> parameters)

formatModifiers

public static String formatModifiers(int modifiers)

formatActualTypeArguments

public static String formatActualTypeArguments(Type[] actualTypeArguments)

wrapIfNeccessary

public static String wrapIfNeccessary(String string,
                                      String prepend,
                                      String append)

formatAnnotations

public static String formatAnnotations(Iterable<Annotation> annotations)

formatAnnotations

public static String formatAnnotations(Annotation[] annotations)
Gets a string representation from an array of annotations

Parameters:
annotations - The annotations
Returns:
The string representation

version

public static String version(Package pkg)

version

public static String version(String version,
                             String timestamp)


Copyright © 2013 Seam Framework. All Rights Reserved.