gate.jape.BasicPatternElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annie Show documentation
Show all versions of annie Show documentation
ANNIE is a general purpose information extraction system that
provides the building blocks of many other GATE applications.
/*
* BasicPatternElement.java - transducer class
*
* Copyright (c) 1995-2012, The University of Sheffield. See the file
* COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
*
* This file is part of GATE (see http://gate.ac.uk/), and is free
* software, licenced under the GNU Library General Public License,
* Version 2, June 1991 (in the distribution as file licence.html,
* and also available at http://gate.ac.uk/gate/licence.html).
*
* Hamish Cunningham, 24/07/98
*
* $Id: BasicPatternElement.java 17597 2014-03-08 15:19:43Z markagreenwood $
*/
package gate.jape;
import gate.util.Pair;
import gate.util.Strings;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* A pattern element within curly braces. Has a set of Constraint,
* which all must be satisfied at whatever position the element is being
* matched at.
*/
public class BasicPatternElement
extends PatternElement implements JapeConstants, Serializable
{
private static final long serialVersionUID = -6515011025898779462L;
/** A set of Constraint. Used during parsing. */
private List constraints1;
/** A set of Constraint. Used during matching. */
private Constraint[] constraints2;
/** A map of constraint annot type to constraint. Used during parsing. */
private Map