Package org.oorexx.language.bean

Examples of org.oorexx.language.bean.OORexxKeywordBean


    }
   
   
   
   
    OORexxKeywordBean keyword = LanguageBeanFactory.getOORexxKeywordBean();
   
    for(String tag: keyword.getCommentTags()){
      content = content.replaceAll("(?i)"+tag, "<b>" + tag.replace("@", "") + "</b>");
    }
   
    comment.setHtmlComment(content.replaceAll("\n", "<br />"));
   
View Full Code Here


import org.oorexx.language.directive.OORexxClass;
import org.oorexx.language.enumeration.OORexxAccessModifier;

public class LineToOORexxClass {
  public static OORexxClass convert(String line){
    OORexxKeywordBean keywordBean = LanguageBeanFactory.getOORexxKeywordBean();
    OORexxClass ooRexxClass = new OORexxClass();
   
    String[] words = line.split(" +");
   
    for(int i = 0; i < words.length ; i++){
      if(words[i].toLowerCase().equals("::class"))
        ooRexxClass.setName(words[i+1].replace("'", "").replace("\"", ""));
     
     
      if(words[i].toLowerCase().equals("public"))
        ooRexxClass.setAccessModifier(OORexxAccessModifier.PUBLIC);
      else if(words[i].toLowerCase().equals("private"))
        ooRexxClass.setAccessModifier(OORexxAccessModifier.PRIVATE);
     
      if(words[i].toLowerCase().equals("subclass"))
        ooRexxClass.setSubClass(new OORexxClass(words[i+1]));
     
     
      if(words[i].toLowerCase().equals("mixinclass"))
        ooRexxClass.setMixinClass(new OORexxClass(words[i+1]));
     
     
      if(words[i].toLowerCase().equals("inherit")){
        for(int k = i + 1; k < words.length ; k++){
          if(keywordBean.getClassKeywords().contains(words[k])) break;
            ooRexxClass.appendInheritance(new OORexxClass(words[k]));
        }
      }
     
      if(words[i].toLowerCase().equals("metaclass"))
View Full Code Here

TOP

Related Classes of org.oorexx.language.bean.OORexxKeywordBean

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.