org.jboss.weld.util
Class Names

java.lang.Object
  extended by org.jboss.weld.util.Names

public class Names
extends java.lang.Object

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

Author:
Pete Muir

Constructor Summary
Names()
           
 
Method Summary
static java.lang.String annotationsToString(java.lang.annotation.Annotation[] annotations)
          Gets a string representation from an array of annotations
static java.lang.String annotationsToString(java.lang.Iterable<java.lang.annotation.Annotation> annotations)
           
static int count(java.lang.Iterable<?> iterable)
          Counts item in an iteratble
static java.lang.String scopeTypeToString(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
          Gets a string representation of the scope type annotation
static java.lang.String toString(java.lang.Class<?> rawType, java.util.Set<java.lang.annotation.Annotation> annotations, java.lang.reflect.Type[] actualTypeArguments)
           
static java.lang.String typesToString(java.util.Set<? extends java.lang.reflect.Type> types)
           
static java.lang.String version(java.lang.Package pkg)
           
static java.lang.String version(java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Names

public Names()
Method Detail

scopeTypeToString

public static java.lang.String scopeTypeToString(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Gets a string representation of the scope type annotation

Parameters:
scopeType - The scope type
Returns:
A string representation

toString

public static java.lang.String toString(java.lang.Class<?> rawType,
                                        java.util.Set<java.lang.annotation.Annotation> annotations,
                                        java.lang.reflect.Type[] actualTypeArguments)

count

public static int count(java.lang.Iterable<?> iterable)
Counts item in an iteratble

Parameters:
iterable - The iteraboe
Returns:
The count

typesToString

public static java.lang.String typesToString(java.util.Set<? extends java.lang.reflect.Type> types)

annotationsToString

public static java.lang.String annotationsToString(java.lang.Iterable<java.lang.annotation.Annotation> annotations)

annotationsToString

public static java.lang.String annotationsToString(java.lang.annotation.Annotation[] annotations)
Gets a string representation from an array of annotations

Parameters:
annotations - The annotations
Returns:
The string representation

version

public static java.lang.String version(java.lang.Package pkg)

version

public static java.lang.String version(java.lang.String version)


Copyright © 2008-2010 Seam Framework. All Rights Reserved.