fr.vergne.parsing.layer.impl.Atom Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parsing-core Show documentation
Show all versions of parsing-core Show documentation
Implementation of the parsing features.
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));
}
}