public class CollapseSubtree extends SsurgeonEdit
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LABEL |
protected java.lang.String |
rootName |
Constructor and Description |
---|
CollapseSubtree(java.lang.String rootNodeName) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(SemanticGraph sg,
SemgrexMatcher sm)
Given a matching instance (via the SemgrexMatcher), performs an in-place
modification on the given SemanticGraph.
|
java.lang.String |
toEditString() |
addNamedNode, equals, getNamedNode, getOwningPattern, setOwningPattern, toString
public static final java.lang.String LABEL
protected java.lang.String rootName
public boolean evaluate(SemanticGraph sg, SemgrexMatcher sm)
SsurgeonEdit
evaluate
in class SsurgeonEdit
public java.lang.String toEditString()
toEditString
in class SsurgeonEdit