public class Debuger {
public static int getLineNumber()
{
return Thread.currentThread().getStackTrace()[2].getLineNumber();
}
public static String getFileName()
{
return Thread.currentThread().getStackTrace()[2].getFileName();
}
public static String getMethodName()
{
return Thread.currentThread().getStackTrace()[2].getMethodName() + "()";
}
public static String getClassName()
{
return Thread.currentThread().getStackTrace()[2].getClassName();
}
public static void print(String text)
{
System.out.println(text);
}
}
public static int getLineNumber()
{
return Thread.currentThread().getStackTrace()[2].getLineNumber();
}
public static String getFileName()
{
return Thread.currentThread().getStackTrace()[2].getFileName();
}
public static String getMethodName()
{
return Thread.currentThread().getStackTrace()[2].getMethodName() + "()";
}
public static String getClassName()
{
return Thread.currentThread().getStackTrace()[2].getClassName();
}
public static void print(String text)
{
System.out.println(text);
}
}