Package asia.redact.bracket.properties

Examples of asia.redact.bracket.properties.PropertiesToken


 
  private PropertiesToken nominalEnding(){
    boolean has = hasContinuation();
      switch(ending){
        case CRLF: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\r\n");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\r\n");
        }
        case CR: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\r");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\r");
        }
        case LF: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\n");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\n");
        }
        default: return null;
      }
  }
View Full Code Here


    if(isPrivateComment()){
      return list;
    }
     
    if(isCommentLine()){
      list.add(new PropertiesToken(PropertiesTokenType.COMMENT,commentContents()));
      list.add(nominalEnding());
      return list;
    }
   
    if(isNaturalLine()){ 
      String [] parts = naturalLineContents();
      list.add(new PropertiesToken(PropertiesTokenType.KEY,parts[0]));
      list.add(new PropertiesToken(PropertiesTokenType.SEPARATOR,parts[1]));
      list.add(new PropertiesToken(PropertiesTokenType.VALUE,parts[2]));
      list.add(nominalEnding());
    }else{
      list.add(new PropertiesToken(PropertiesTokenType.VALUE,logicalLineContents()));
      list.add(nominalEnding());
    }
   
    return list;
  }
View Full Code Here

 
  private PropertiesToken nominalEnding(){
    boolean has = hasContinuation();
      switch(ending){
        case CRLF: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\r\n");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\r\n");
        }
        case CR: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\r");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\r");
        }
        case LF: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\n");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\n");
        }
        default: return null;
      }
  }
View Full Code Here

    if(isPrivateComment()){
      return list;
    }
     
    if(isCommentLine()){
      list.add(new PropertiesToken(PropertiesTokenType.COMMENT,commentContents()));
      list.add(nominalEnding());
      return list;
    }
   
    if(isNaturalLine()){ 
      String [] parts = naturalLineContents();
      list.add(new PropertiesToken(PropertiesTokenType.KEY,parts[0]));
      list.add(new PropertiesToken(PropertiesTokenType.SEPARATOR,parts[1]));
      list.add(new PropertiesToken(PropertiesTokenType.VALUE,parts[2]));
      list.add(nominalEnding());
    }else{
      list.add(new PropertiesToken(PropertiesTokenType.VALUE,logicalLineContents()));
      list.add(nominalEnding());
    }
   
    return list;
  }
View Full Code Here

 
  private PropertiesToken nominalEnding(){
    boolean has = hasContinuation();
      switch(ending){
        case CRLF: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\r\n");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\r\n");
        }
        case CR: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\r");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\r");
        }
        case LF: {
          if(has) return new PropertiesToken(PropertiesTokenType.LOGICAL_LINE_BREAK,"\\\n");
          else return new PropertiesToken(PropertiesTokenType.NATURAL_LINE_BREAK,"\n");
        }
        default: return null;
      }
  }
View Full Code Here

    if(isPrivateComment()){
      return list;
    }
     
    if(isCommentLine()){
      list.add(new PropertiesToken(PropertiesTokenType.COMMENT,commentContents()));
      list.add(nominalEnding());
      return list;
    }
   
    if(isNaturalLine()){ 
      String [] parts = naturalLineContents();
      list.add(new PropertiesToken(PropertiesTokenType.KEY,parts[0]));
      list.add(new PropertiesToken(PropertiesTokenType.SEPARATOR,parts[1]));
      list.add(new PropertiesToken(PropertiesTokenType.VALUE,parts[2]));
      list.add(nominalEnding());
    }else{
      list.add(new PropertiesToken(PropertiesTokenType.VALUE,logicalLineContents()));
      list.add(nominalEnding());
    }
   
    return list;
  }
View Full Code Here

TOP

Related Classes of asia.redact.bracket.properties.PropertiesToken

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.