示例#1
0
 protected static String _privk3_getContextPath(
     final RegionAspectRegionAspectProperties _self_,
     final Region _self,
     final AbstractState _vertex) {
   String root = "currentState";
   ArrayList<Region> parentRegions = new ArrayList<Region>();
   Region currentRegion = _vertex.getOwnerRegion();
   while ((!Objects.equal(currentRegion, null))) {
     {
       parentRegions.add(currentRegion);
       State _ownerState = currentRegion.getOwnerState();
       boolean _notEquals = (!Objects.equal(_ownerState, null));
       if (_notEquals) {
         State _ownerState_1 = currentRegion.getOwnerState();
         Region _ownerRegion = _ownerState_1.getOwnerRegion();
         currentRegion = _ownerRegion;
       } else {
         currentRegion = null;
       }
     }
   }
   for (int i = (parentRegions.size() - 1); (i >= 0); i--) {
     String _root = root;
     Region _get = parentRegions.get(i);
     String _name = _get.getName();
     String _plus = ("-" + _name);
     root = (_root + _plus);
   }
   return root;
 }
示例#2
0
 protected static String _privk3_getContextPathByRegion(
     final RegionAspectRegionAspectProperties _self_, final Region _self) {
   String root = "currentState";
   ArrayList<Region> parentRegions = new ArrayList<Region>();
   Region currentRegion = _self;
   while (((!Objects.equal(currentRegion.getOwnerState(), null))
       && (!Objects.equal(currentRegion.getOwnerState().getOwnerRegion(), null)))) {
     {
       State _ownerState = _self.getOwnerState();
       Region _ownerRegion = _ownerState.getOwnerRegion();
       parentRegions.add(_ownerRegion);
       State _ownerState_1 = currentRegion.getOwnerState();
       Region _ownerRegion_1 = _ownerState_1.getOwnerRegion();
       currentRegion = _ownerRegion_1;
     }
   }
   for (int i = (parentRegions.size() - 1); (i >= 0); i--) {
     String _root = root;
     Region _get = parentRegions.get(i);
     String _name = _get.getName();
     String _plus = ("-" + _name);
     root = (_root + _plus);
   }
   String _name = _self.getName();
   return ((root + "-") + _name);
 }
示例#3
0
 protected static void _privk3_getAllParents(
     final RegionAspectRegionAspectProperties _self_,
     final Region _self,
     final AbstractState vertex,
     final ArrayList<AbstractState> parents) {
   if ((vertex instanceof State)) {
     Region _ownerRegion = ((State) vertex).getOwnerRegion();
     State superState = _ownerRegion.getOwnerState();
     while ((!Objects.equal(superState, null))) {
       {
         boolean _contains = parents.contains(superState);
         boolean _not = (!_contains);
         if (_not) {
           parents.add(superState);
         }
         Region _ownerRegion_1 = superState.getOwnerRegion();
         State _ownerState = _ownerRegion_1.getOwnerState();
         superState = _ownerState;
       }
     }
   }
 }