[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [ve-dev] which code is parsed and executed on the VM
|
Hi Rich,
Thanks. A follow-up question:
>>> RLK >>>
Basically only property settings and initialization statements are executed.
If it is not a property or an initialization statement (i.e. XYX x = ...)
then the expression is ignored.
If a method doesn't have a initialization statement in it, then it is
ignored.
There are other subtle things but that is basically it.
>>>>>>>>>>
Consider the following class:
class MyClass extends MyBean {
private Context context;
private AClass aclass;
public void MyClass() {
super();
initialize();
}
private void initailize() {
this.setBackgroundColor(Color.blue); // a method affecting visual
attribute
setForegroundColor(Color.red); // will this be executed?
myMethod(); // will this be executed
}
private void myMethod() {
context = XXX.getContext();
this.aclass = context.getBean();
}
}
Will myMethod be executed on the VM since it has an initilization
"this.aclass = ..."?
Thanks and regards,
Janak
_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev