예제 #1
0
 override public IRTSRunner createRunner()
 {
     if (mVar != null)
     {
         return(new runner.RTSSquareR(mVar, mChild));
     }
     else
     {
         util.RTSList <IRTSLinker> lst;
         if (mChild == null)
         {
             lst = null;
         }
         else if (mChild.getId() == IRTSDefine.Linker.COMMA)
         {
             lst = ((RTSCommaL)mChild).getChildren();
         }
         else
         {
             lst = new util.RTSList <IRTSLinker>(1);
             lst.add(mChild);
         }
         return(new org.vr.rts.runner.RTSSquareR(lst));
     }
 }
예제 #2
0
 override public IRTSDefine.Error onCompile(util.RTSList <IRTSLinker> compileList)
 {
     if (mConditionL == null || mBodyL == null) // || !mOver)
     {
         return(IRTSDefine.Error.Compiling_DenyLinker);
     }
     compileList.add(mConditionL);
     compileList.add(mBodyL);
     if (mElseL != null)
     {
         compileList.add(mElseL);
     }
     return(0);
 }
 override public IRTSDefine.Error onCompile(util.RTSList <IRTSLinker> compileList)
 {
     if (mLeft == null || !RTSUtil.isGoodName(mDomain))
     {
         return(IRTSDefine.Error.Compiling_DenyLinker);
     }
     if (mArgs != null && mArgs.getId() != IRTSDefine.Linker.BRACKET)
     {
         return(IRTSDefine.Error.Compiling_DenyLinker);
     }
     compileList.add(mLeft);
     compileList.add(mArgs);
     return(0);
 }
 public RTSSquareR(org.vr.rts.util.RTSList <IRTSLinker> list)
 {
     mArray = list;
 }