Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ve-dev] which code is parsed and executed on the VM

Dear VE team,

Suppose I have a bean with generated code as follows:

class MyClass extends MyBean {

 private Context context;

 public void MyClass() {
 	super();
      initialize();
 }

 private void initailize() {
 	context = XXX.getContext()
	this.setBackgroundColor(Color.blue); // a method affecting visual attribute
      setForegroundColor(Color.red); // will this be executed?
      this.myBusinesMethod(); // will this be executed
 }

 private void myBusinessMethod() {
 	if (context == null)
         this.setFont(xyz);
      else
         this.setFont(uvw);
 }

How does VE determine which methods will be executed on the target VM? Does
it execute all the methods in init?

Thanks and regards,

Janak



Back to the top