avatar
a dump method in Java# Java - 爪哇娇娃
t*n
1
刚开始办EB2, 简历上列出来的工作经历的每一项律师都要以前工作地方的
confirmation letter
所谓工作经验其实都是不同学校不同系的RA而已,有的已经是7~8年前,负责人都换了
几拨了……真折腾。
请问有没有现成的confirmation letter 参考模板,让我可以发给以前的老板们看看
谢谢~~
avatar
d*y
2
照相技术不好,实物比照片好得多。
avatar
N*n
3
Is it possible to make a dump method in Java, so that when it's called, it
will find out all the variables, methods info, even codes, then output it? I
want it to be a general method, which means the same code working for most
object. It would be better to provide the current variable value.. Are there
such method? Or is it possible?
Thanks!
avatar
j*8
4
赞!
avatar
T*g
5
线程的stack trace你可以拿到,变量值不行。

I
most
there

【在 N*n 的大作中提到】
: Is it possible to make a dump method in Java, so that when it's called, it
: will find out all the variables, methods info, even codes, then output it? I
: want it to be a general method, which means the same code working for most
: object. It would be better to provide the current variable value.. Are there
: such method? Or is it possible?
: Thanks!

avatar
r*q
6
nice~
avatar
N*n
7
谢谢。。找了点code在看。。
public class StackTraceExample
{
//private static final Logger logger = Logger.getLogger(StringReplace.class.
getName());
public static void main(String args[])
{
//calling a method to print stack trace further down
first();
}
public static void first()
{
second();
}
private static void second()
{
third();
}
private static void third()
{
//If you want to print stack trace on console than use dumpStack() method
System.err.println("Stack trace of current thread using dumpStack() method
");
Thread.currentThread().dumpStack();
//This is another way to print stack trace from current method
System.err.println("Printing stack trace using printStackTrace() method of
Throwable ");
new Throwable().printStackTrace();
//If you want stack trace as StackTraceElement in program itself than
//use getStackTrace() method of Thread class
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
//Once you get StackTraceElement you can also print it to console
System.err.println("displaying Stack trace from StackTraceElement in Java"
);
for(StackTraceElement st : stackTrace)
{
System.err.println(st);
}
}
}

【在 T*********g 的大作中提到】
: 线程的stack trace你可以拿到,变量值不行。
:
: I
: most
: there

avatar
c*7
8
Nice
avatar
s*l
9
aop?

I
most
there

【在 N*n 的大作中提到】
: Is it possible to make a dump method in Java, so that when it's called, it
: will find out all the variables, methods info, even codes, then output it? I
: want it to be a general method, which means the same code working for most
: object. It would be better to provide the current variable value.. Are there
: such method? Or is it possible?
: Thanks!

avatar
s*e
10
天哪, 新手就作的这么漂亮啊!!!
是gold filled beads和gold filled 的chain吗? 说说怎么做的吧!
avatar
T*g
11
不可能的。就算可以,这个cost高的让你根本没办法用。

【在 s****l 的大作中提到】
: aop?
:
: I
: most
: there

avatar
d*y
12
artbeads 上买的8毫米gold filled beads和1-2毫米gold filled 的chain,用金色金
属九形针连在一起。
avatar
N*n
13
AOP?
Aspect Oriented Programming?
First time knowing it..

【在 T*********g 的大作中提到】
: 不可能的。就算可以,这个cost高的让你根本没办法用。
avatar
d*y
14
照相技术不好,实物比照片好得多。
avatar
l*n
15
you can use interceptor.

【在 N*n 的大作中提到】
: AOP?
: Aspect Oriented Programming?
: First time knowing it..

avatar
j*8
16
赞!
avatar
D*d
17
reflection?

I
most
there

【在 N*n 的大作中提到】
: Is it possible to make a dump method in Java, so that when it's called, it
: will find out all the variables, methods info, even codes, then output it? I
: want it to be a general method, which means the same code working for most
: object. It would be better to provide the current variable value.. Are there
: such method? Or is it possible?
: Thanks!

avatar
r*q
18
nice~
avatar
c*7
19
Nice
avatar
s*e
20
天哪, 新手就作的这么漂亮啊!!!
是gold filled beads和gold filled 的chain吗? 说说怎么做的吧!
avatar
d*y
21
artbeads 上买的8毫米gold filled beads和1-2毫米gold filled 的chain,用金色金
属九形针连在一起。
avatar
s*7
22


【在 j*******8 的大作中提到】
: 赞!
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。