package org.settings;

/**
 * Defines a token in the gcf file format.
 * A token contains a type and a respective text.
 * The text can be the token symbol only, e.g. '['
 * or any text, e.g. the text in the groupname.
 * 
 */
class Token {
    
    private final TokenType type;
    private final String    text;
    
    public Token(final TokenType type, final String text) {
        this.type = type;
        this.text = text;
    }
    
    TokenType getType() {return this.type;}
    String    getText() {return this.text;} 

    @Override
    public String toString() {
//        return "<'"+this.text+"',"+this.type.getLongName()+">";
        return "<"+this.type.getLongName()+",\'"+this.text+"\'>";
    }
}

@@ -574,74 +574,8 @@
 ) %7B%0A
-//        return %22%3C'%22+this.text+%22',%22+this.type.getLongName()+%22%3E%22;%0A
     

remove comment