package jetbrains.mps.propertiesTest;
/*Generated by MPS */
public class TestClass extends BaseTestClass {
public TestClass(int initialValue) {
setBaseProperty(initialValue);
setProp1(getBaseProperty());
this.setProp1(this.getBaseProperty());
setProp2(getProp1());
setProp3(getProp2());
setProp4(getProp3());
}
public void changeValueUsingNestedClass(int newValue) {
new TestClass.PropertyChanger(newValue);
}
private class PropertyChanger {
public PropertyChanger(int newValue) {
TestClass.this.setProp1(newValue);
TestClass.this.setProp2(TestClass.this.getProp1());
TestClass.this.setProp3(TestClass.this.getProp2());
TestClass.this.setProp4(TestClass.this.getProp3());
}
}
private int myProp1;
public int getProp1() {
return this.myProp1;
}
private void setProp1(int value) {
this.myProp1 = value;
}
private int myProp2;
public int getProp2() {
return this.myProp2;
}
public void setProp2(int value) {
this.myProp2 = value;
}
private int myProp3;
public int getProp3() {
return this.myProp3;
}
public void setProp3(int value) {
myProp3 = value;
}
public int getProp4() {
return 1;
}
public void setProp4(int value) {
setProp3(value);
}
}