Package org.aspectj.util
Class LangUtil
- java.lang.Object
-
- org.aspectj.util.LangUtil
-
public class LangUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLangUtil.ProcessControllerstatic classLangUtil.StringChecker
-
Constructor Summary
Constructors Constructor Description LangUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List<String>anySplit(String input, String delim)static <T> List<T>arrayAsList(T[] array)static List<String>commaSplit(String input)static String[][]copyStrings(String[][] in)static String[]extractOptions(String[] args, String[][] options)static booleangetBoolean(String propertyName, boolean defaultValue)static FilegetJavaExecutable()static StringgetJavaHome()static StringgetJrtFsFilePath()static doublegetVmVersion()static StringgetVmVersionString()static booleanis10VMOrGreater()static booleanis11VMOrGreater()static booleanis12VMOrGreater()static booleanis13VMOrGreater()static booleanis14VMOrGreater()static booleanis15VMOrGreater()static booleanis16VMOrGreater()static booleanis17VMOrGreater()static booleanis18VMOrGreater()static booleanis19VMOrGreater()static booleanis1dot3VMOrGreater()Deprecated.static booleanis1dot4VMOrGreater()Deprecated.static booleanis1dot5VMOrGreater()Deprecated.static booleanis1dot6VMOrGreater()Deprecated.static booleanis1dot7VMOrGreater()Deprecated.static booleanis1dot8VMOrGreater()static booleanis9VMOrGreater()static booleanisEmpty(byte[] ra)static booleanisEmpty(Object[] ra)static booleanisEmpty(String s)static booleanisEmpty(Collection<?> collection)static booleanisEmpty(Map<?,?> map)static StringmakeClasspath(String bootclasspath, String classpath, String classesDir, String outputJar)static LangUtil.ProcessControllermakeProcess(LangUtil.ProcessController controller, String classpath, String mainClass, String[] args)static StringrenderException(Throwable t)static StringrenderException(Throwable t, boolean elide)static StringrenderExceptionShort(Throwable e)static Stringreplace(String in, String sought, String replace)static Object[]safeCopy(Object[] source, Object[] sink)static <T> List<T>safeList(List<T> list)static booleansleepUntil(long time)static String[]split(String text)static String[]splitClasspath(String classpath)static StringBufferstackToString(Throwable throwable, boolean skipMessage)static List<String>strings(String text)static voidthrowIaxIfFalse(boolean test, String message)static voidthrowIaxIfNotAssignable(Object[] ra, Class<?> c, String name)static voidthrowIaxIfNotAssignable(Object o, Class<?> c, String name)static voidthrowIaxIfNull(Object o, String name)static StringtoSizedString(long i, int width)static StringunqualifiedClassName(Class<?> c)static StringunqualifiedClassName(Object o)static ThrowableunwrapException(Throwable t)
-
-
-
Field Detail
-
EOL
public static final String EOL
-
JRT_FS
public static final String JRT_FS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVmVersionString
public static String getVmVersionString()
-
getVmVersion
public static double getVmVersion()
-
is1dot3VMOrGreater
@Deprecated public static boolean is1dot3VMOrGreater()
Deprecated.
-
is1dot4VMOrGreater
@Deprecated public static boolean is1dot4VMOrGreater()
Deprecated.
-
is1dot5VMOrGreater
@Deprecated public static boolean is1dot5VMOrGreater()
Deprecated.
-
is1dot6VMOrGreater
@Deprecated public static boolean is1dot6VMOrGreater()
Deprecated.
-
is1dot7VMOrGreater
@Deprecated public static boolean is1dot7VMOrGreater()
Deprecated.
-
is1dot8VMOrGreater
public static boolean is1dot8VMOrGreater()
-
is9VMOrGreater
public static boolean is9VMOrGreater()
-
is10VMOrGreater
public static boolean is10VMOrGreater()
-
is11VMOrGreater
public static boolean is11VMOrGreater()
-
is12VMOrGreater
public static boolean is12VMOrGreater()
-
is13VMOrGreater
public static boolean is13VMOrGreater()
-
is14VMOrGreater
public static boolean is14VMOrGreater()
-
is15VMOrGreater
public static boolean is15VMOrGreater()
-
is16VMOrGreater
public static boolean is16VMOrGreater()
-
is17VMOrGreater
public static boolean is17VMOrGreater()
-
is18VMOrGreater
public static boolean is18VMOrGreater()
-
is19VMOrGreater
public static boolean is19VMOrGreater()
-
throwIaxIfNotAssignable
public static final void throwIaxIfNotAssignable(Object[] ra, Class<?> c, String name)
-
throwIaxIfNotAssignable
public static final void throwIaxIfNotAssignable(Object o, Class<?> c, String name)
-
throwIaxIfFalse
public static final void throwIaxIfFalse(boolean test, String message)
-
isEmpty
public static boolean isEmpty(String s)
-
isEmpty
public static boolean isEmpty(Object[] ra)
-
isEmpty
public static boolean isEmpty(byte[] ra)
-
isEmpty
public static boolean isEmpty(Collection<?> collection)
-
isEmpty
public static boolean isEmpty(Map<?,?> map)
-
getBoolean
public static boolean getBoolean(String propertyName, boolean defaultValue)
-
toSizedString
public static String toSizedString(long i, int width)
-
stackToString
public static StringBuffer stackToString(Throwable throwable, boolean skipMessage)
-
arrayAsList
public static <T> List<T> arrayAsList(T[] array)
-
makeClasspath
public static String makeClasspath(String bootclasspath, String classpath, String classesDir, String outputJar)
-
makeProcess
public static LangUtil.ProcessController makeProcess(LangUtil.ProcessController controller, String classpath, String mainClass, String[] args)
-
getJavaExecutable
public static File getJavaExecutable()
-
sleepUntil
public static boolean sleepUntil(long time)
-
getJrtFsFilePath
public static String getJrtFsFilePath()
-
getJavaHome
public static String getJavaHome()
-
-