Package org.oorexx.language

Examples of org.oorexx.language.OORexxVariable


          }
        if(words[0].toLowerCase().equals("expose")){
          OORexxExpose expose = new OORexxExpose();
         
          for(int k = 1; k < words.length ; k++){
            OORexxVariable var = new OORexxVariable();
              var.setName(words[k]);
            expose.appendVariable(var);
          }
         
          routine.setExpose(expose);
        }
       
        if(words.length > 2 && words[0].toLowerCase().equals("use") && words[1].toLowerCase().equals("arg")){
          OORexxUse use = new OORexxUse();
         
          String tmpLine = line.replaceAll("(?i)use arg", "");
          tmpLine = tmpLine.replaceAll(" ", "");
          if(tmpLine.contains(","))
            for(String svar: tmpLine.split(",")){
              OORexxVariable var = new OORexxVariable();
                var.setName(svar);
              use.appendVariable(var);
            }
          else{
            OORexxVariable var = new OORexxVariable();
              var.setName(words[2]);
              use.appendVariable(var);
          }
           
          routine.setUse(use);
        }
       
        if(words.length > 2 && words[0].toLowerCase().equals("parse") && words[1].toLowerCase().equals("args")){
          OORexxUse use = new OORexxUse();
         
          String tmpLine = line.replaceAll("(?i)use arg", "");
          tmpLine = tmpLine.replaceAll(" ", "");
          if(tmpLine.contains(","))
            for(String svar: tmpLine.split(",")){
              OORexxVariable var = new OORexxVariable();
                var.setName(svar);
              use.appendVariable(var);
            }
          else{
            OORexxVariable var = new OORexxVariable();
              var.setName(words[2]);
              use.appendVariable(var);
          }
           
          routine.setUse(use);
        }
View Full Code Here


       
        if(words[0].toLowerCase().equals("expose")){
          OORexxExpose expose = new OORexxExpose();
         
          for(int k = 1; k < words.length ; k++){
            OORexxVariable var = new OORexxVariable();
              var.setName(words[k]);
            expose.appendVariable(var);
          }
         
          method.setExpose(expose);
        }
       
        if(words.length > 2 && words[0].toLowerCase().equals("use") && words[1].toLowerCase().equals("arg") && method.getUse() == null){
          OORexxUse use = new OORexxUse();
         
          String tmpLine = line.replaceAll("(?i)use arg", "");
          tmpLine = tmpLine.replaceAll(" ", "");
         
         
          if(tmpLine.contains(","))
            for(String svar: tmpLine.split(",")){
              OORexxVariable var = new OORexxVariable();
                var.setName(svar);
              use.appendVariable(var);
            }
          else{
            OORexxVariable var = new OORexxVariable();
              var.setName(words[2]);
              use.appendVariable(var);
          }
         
          method.setUse(use);
        }
       
        if(words.length > 2 && words[0].toLowerCase().equals("parse") && words[1].toLowerCase().equals("args") && method.getUse() == null){
          OORexxUse use = new OORexxUse();
         
          String tmpLine = line.replaceAll("(?i)parse args", "");
          tmpLine = tmpLine.replaceAll(" ", "");
          if(tmpLine.contains(","))
            for(String svar: tmpLine.split(",")){
              OORexxVariable var = new OORexxVariable();
                var.setName(svar);
              use.appendVariable(var);
            }
          else{
            OORexxVariable var = new OORexxVariable();
              var.setName(words[2]);
              use.appendVariable(var);
          }
           
          method.setUse(use);
        }
View Full Code Here

    OORexxExpose expose = new OORexxExpose();
   
    String[] exposeVars = line.substring(line.toLowerCase().indexOf(" expose") + 7, line.indexOf(")")).replace("(", "").replace(")", "").trim().split(",");
   
    for(String var: exposeVars)
      expose.appendVariable(new OORexxVariable(var.trim()));
   
    return expose;
  }
View Full Code Here

TOP

Related Classes of org.oorexx.language.OORexxVariable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.