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

fr.vergne.parsing.layer.impl.Atom Maven / Gradle / Ivy

There is a newer version: 3.2
Show newest version
package fr.vergne.parsing.layer.impl;

import java.util.regex.Pattern;

import fr.vergne.parsing.layer.Layer;

/**
 * An {@link Atom} is a {@link Layer} representing a static piece of text. This
 * is particularly suited to represent keywords and other pieces of text we are
 * expected to find exactly as-is.
 * 
 * @author Matthieu Vergne 
 * 
 */
public class Atom extends Formula {

	public Atom(String content) {
		super(Pattern.quote(content));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy