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);
}