| Package | Description |
|---|---|
| edu.nyu.jet.pat |
The Pat package encapsulates the basic pattern application
mechanism of Jet, sets of pattern/action rules which can be applied
to a document to add or modify annotations on the document. The external
form of the pattern language is described below; the classes used
to encode these patterns are summarized separately.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AnnotationPatternElement
A pattern element which matches an annotation.
|
class |
AssignmentPatternElement
a pattern element which assigns a value (a String or integer) to a
pattern variable.
|
class |
AtomicPatternElement
abstract class for all PatternElements which do not contain
embedded references to other PatternElements.
|
class |
GetEndPatternElement |
class |
GetStartPatternElement
a pattern element, in the graph representation of a pattern, which
binds a variable to the current position in the document being matched.
|
class |
IntegerPatternElement
a pattern element which matches an integer token.
|
class |
NullPatternElement
a pattern element which always succeeds.
|
class |
PatternAlternation
a pattern element for recording an alternation of patterns
(A | B | C).
|
class |
PatternReference
an element in a pattern which stands for a reference to another pattern.
|
class |
PatternRepetition
a pattern element for representing an optional or repeated pattern,
A? (zero or one instance of A), A* (zero or more instances of A), or A+
(one or more instances of A).
|
class |
PatternSequence
a sequence of pattern elements which are to be matched in succession,
to successive portions of a document.
|
class |
SpanBindingPatternElement
a pattern construct which binds a variable to the span matched
by a pattern element.
|
class |
TokenStringPatternElement
a pattern element which matches a specific word.
|
class |
UndefinedCapPatternElement |
| Modifier and Type | Method and Description |
|---|---|
PatternElement |
PatternCollection.dereference(String patternName)
returns pattern named patternName, or null if no
such pattern exists (alias for getPattern)
|
PatternElement |
PatternCollection.getPattern(String patternName)
returns pattern named patternName, or null if no
such pattern exists
|
| Constructor and Description |
|---|
PatternAlternation(PatternElement[] opts) |
PatternRepetition(PatternElement pe,
char rep) |
PatternSequence(PatternElement[] elems)
creates a PatternSequence from an array of PatternElements
|
SpanBindingPatternElement(PatternElement pe,
Variable v)
creates a SpanBindingPatternElement.
|
Copyright © 2016 New York University. All rights reserved.