com.ochafik.lang.reflect
Class DebugUtils
java.lang.Object
com.ochafik.lang.reflect.DebugUtils
public class DebugUtils
- extends Object
Method Summary |
protected static String |
escape(String s)
|
protected static void |
getFields_aux(Class<?> type,
Set<Field> fields)
|
static Set<Field> |
getFields(Class<?> type)
|
static boolean |
hasToStringMethod(Class<?> c)
|
static void |
main(String[] args)
|
static void |
print(Object o)
|
static void |
print(Object o,
DebugUtils.FieldAccessor accessor)
|
static void |
print(Object o,
PrintStream out,
boolean lines,
boolean startIndent,
String indent,
DebugUtils.FieldAccessor accessor)
|
static void |
printAsCharSequence(CharSequence o,
PrintStream out,
boolean lines,
boolean startIndent,
String indent,
DebugUtils.FieldAccessor accessor)
|
static void |
printErr(Object o)
|
static void |
printErr(Object o,
DebugUtils.FieldAccessor accessor)
|
static void |
println(Object o)
|
static void |
println(Object o,
DebugUtils.FieldAccessor accessor)
|
static void |
println(Object o,
PrintStream out)
|
static void |
printlnErr(Object o)
|
static void |
printlnErr(Object o,
DebugUtils.FieldAccessor accessor)
|
static void |
printStructureInsides(Object o,
PrintStream out,
boolean lines,
boolean startIndent,
String indent,
DebugUtils.FieldAccessor accessor)
|
static String |
toString(Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugUtils
public DebugUtils()
print
public static final void print(Object o,
DebugUtils.FieldAccessor accessor)
printErr
public static final void printErr(Object o,
DebugUtils.FieldAccessor accessor)
println
public static final void println(Object o,
DebugUtils.FieldAccessor accessor)
printlnErr
public static final void printlnErr(Object o,
DebugUtils.FieldAccessor accessor)
print
public static final void print(Object o)
printErr
public static final void printErr(Object o)
println
public static final void println(Object o)
println
public static final void println(Object o,
PrintStream out)
printlnErr
public static final void printlnErr(Object o)
escape
protected static String escape(String s)
printAsCharSequence
public static final void printAsCharSequence(CharSequence o,
PrintStream out,
boolean lines,
boolean startIndent,
String indent,
DebugUtils.FieldAccessor accessor)
printStructureInsides
public static final void printStructureInsides(Object o,
PrintStream out,
boolean lines,
boolean startIndent,
String indent,
DebugUtils.FieldAccessor accessor)
print
public static final void print(Object o,
PrintStream out,
boolean lines,
boolean startIndent,
String indent,
DebugUtils.FieldAccessor accessor)
getFields
public static Set<Field> getFields(Class<?> type)
getFields_aux
protected static void getFields_aux(Class<?> type,
Set<Field> fields)
hasToStringMethod
public static boolean hasToStringMethod(Class<?> c)
main
public static void main(String[] args)
toString
public static String toString(Object object)
Copyright © 2009. All Rights Reserved.