Skip to main content

[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,
No it won't be called. We only understand method calls that are property settings or calls to other initialization methods in very specific patterns. If it is a property setting, we will call all of the methods referenced in the set method. If it is an initialization method (i.e. it does a XYX x = new XYX() in the method), then it will be called if:

a) It is part of a property setting call
b) It is part of a awt/swing add() method
c) It is a call to a SWT Composite (or Composite subclass) initialization method.
d) Or the codegen parser has specific code to recognize it as a method that should be evaluated and parsed.

Rich


"Janak Mulani" <janak.mulani@xxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx

10/25/2005 09:01 PM

Please respond to
Discussions people developing code for the Visual Editor project

To
"Discussions people developing code for the Visual Editor project" <ve-dev@xxxxxxxxxxx>
cc
Subject
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

_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev


Back to the top