public class Formats extends Object
public static String formatAsStackTraceElement(InjectionPoint ij)
ij - public static int getLineNumber(Member member)
LineNumberTable attribute is just optional, i.e. the compiler is not required to store this
information at all. See also Java Virtual Machine Specification
Implementation note: it wouldn't be appropriate to add a bytecode scanning dependency just for this functionality, therefore Apache BCEL included in
Oracle JDK 1.5+ and OpenJDK 1.6+ is used. Other JVMs should not crash as we only use it if it's on the classpath and by means of reflection calls.member - resourceLoader - public static String formatTypes(Iterable<? extends Type> baseTypes, boolean simpleNames)
public static String formatBusinessInterfaceDescriptors(Iterable<? extends BusinessInterfaceDescriptor<?>> businessInterfaceDescriptors)
public static String formatAsFormalParameterList(Iterable<? extends AnnotatedParameter<?>> parameters)
public static String formatParameter(AnnotatedParameter<?> parameter)
public static String formatModifiers(int modifiers)
public static String formatActualTypeArguments(Type[] actualTypeArguments)
public static String formatActualTypeArguments(Type[] actualTypeArguments, boolean simpleNames)
public static String formatAnnotations(Iterable<Annotation> annotations)
public static String formatAnnotations(Annotation[] annotations)
annotations - The annotationspublic static String formatAnnotatedType(AnnotatedType<?> type)
public static String formatAnnotatedConstructor(AnnotatedConstructor<?> constructor)
public static String formatAnnotatedField(AnnotatedField<?> field)
public static String formatAnnotatedMethod(AnnotatedMethod<?> method)
public static String formatAnnotatedParameter(AnnotatedParameter<?> parameter)
public static String getNameOfMissingClassLoaderDependency(Throwable e)
NoClassDefFoundError or ClassNotFoundException.Copyright © 2015. All Rights Reserved.