public class AnnotationPatternElement extends AtomicPatternElement
| Modifier and Type | Field and Description |
|---|---|
static boolean |
hideAnnotations
hideAnnotations: if true, annotations marked as 'hidden' will not
be matched by this pattern element.
|
| Constructor and Description |
|---|
AnnotationPatternElement(String type,
FeatureSet fs)
creates an AnnotationPatternElement which matches an Annotation with type
type and features fs.
|
AnnotationPatternElement(String type,
FeatureSet fs,
Variable v)
creates an AnnotationPatternElement which matches an Annotation with type
type and features fs and, if the match is successful,
binds variable v to the annotation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
eval(Document doc,
int posn,
String tokenString,
HashMap bindings,
PatternApplication patap,
PatternNode node) |
String |
toString() |
toGraphpublic static boolean hideAnnotations
public AnnotationPatternElement(String type, FeatureSet fs)
public AnnotationPatternElement(String type, FeatureSet fs, Variable v)
public void eval(Document doc, int posn, String tokenString, HashMap bindings, PatternApplication patap, PatternNode node)
eval in class AtomicPatternElementpublic String toString()
toString in class PatternElementCopyright © 2016 New York University. All rights reserved.