org.jboss.weld.util.reflection
Class Formats
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Formats
public Formats()
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.