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

net.sf.gluebooster.java.booster.basic.text.parsing.Rule Maven / Gradle / Ivy

Go to download

Basic classes to support the development of applications. There should be as few dependencies on other frameworks as possible.

The newest version!
package net.sf.gluebooster.java.booster.basic.text.parsing;

import java.util.List;

/**
 * Description of a parsing rule.
 * 
 * @author cbauer
 *
 */
public class Rule implements Cloneable {

	/**
	 * Name of the rule
	 */
	private Object name;

	/**
	 * A prefix
	 */
	private String prefix;

	/**
	 * An infix
	 */
	private String infix;

	/**
	 * A suffix
	 */
	private String suffix;

	/**
	 * Arity of the arguments. NULL = any
	 */
	private Integer arity;

	/**
	 * Parts of the rule.
	 */
	private List parts;

	public Rule(Object name, String prefix, String infix, String suffix, Integer arity) {
		super();
		this.name = name;
		this.prefix = prefix;
		this.infix = infix;
		this.suffix = suffix;
		this.arity = arity;
	}

	public Object getName() {
		return name;
	}

	public void setName(Object name) {
		this.name = name;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getInfix() {
		return infix;
	}

	public void setInfix(String infix) {
		this.infix = infix;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public Integer getArity() {
		return arity;
	}

	public void setArity(Integer arity) {
		this.arity = arity;
	}

	public List getParts() {
		return parts;
	}

	public void setParts(List parts) {
		this.parts = parts;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy