All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.abbot.script.Comment Maven / Gradle / Ivy

The newest version!
package abbot.script;

import java.util.Map;

import org.jdom.Element;


/** Represents a comment.  No other function. */
public class Comment extends Step {

    private static final String USAGE = "";

    public Comment(Resolver resolver, Map attributes) {
        super(resolver, attributes);
    }

    public Comment(Resolver resolver, String description) {
        super(resolver, description);
    }
    
    /** Default to whitespace. */
    public String getDefaultDescription() { return ""; }

    public String toString() { return "# " + getDescription(); }

    public String getUsage() { return USAGE; }

    /** This is only used to generate the title label for the editor. */
    public String getXMLTag() { return TAG_COMMENT; }

    public Element toXML() {
        throw new RuntimeException("Comments are not elements");
    }

    /** Main run step. */
    protected void runStep() { }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy