public class EditNode extends SsurgeonEdit
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LABEL |
Constructor and Description |
---|
EditNode(java.lang.String nodeName,
java.util.Map<java.lang.String,java.lang.String> attributes) |
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()
Emits a parseable instruction string.
|
addNamedNode, equals, getNamedNode, getOwningPattern, setOwningPattern, toString
public static final java.lang.String LABEL
public EditNode(java.lang.String nodeName, java.util.Map<java.lang.String,java.lang.String> attributes)
public java.lang.String toEditString()
toEditString
in class SsurgeonEdit
public boolean evaluate(SemanticGraph sg, SemgrexMatcher sm)
SsurgeonEdit
evaluate
in class SsurgeonEdit