Class KillAllIncomingEdges
- java.lang.Object
-
- edu.stanford.nlp.semgraph.semgrex.ssurgeon.SsurgeonEdit
-
- edu.stanford.nlp.semgraph.semgrex.ssurgeon.KillAllIncomingEdges
-
public class KillAllIncomingEdges extends SsurgeonEdit
This action removes all incoming edges for the given node.- Author:
- lumberjack
-
-
Constructor Summary
Constructors Constructor Description KillAllIncomingEdges(String nodeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(SemanticGraph sg, SemgrexMatcher sm)If executed twice on the same node, the second time there will be no further updatesStringtoEditString()-
Methods inherited from class edu.stanford.nlp.semgraph.semgrex.ssurgeon.SsurgeonEdit
addNamedNode, equals, getNamedNode, getOwningPattern, setOwningPattern, toString
-
-
-
-
Field Detail
-
LABEL
public static final String LABEL
- See Also:
- Constant Field Values
-
nodeName
protected String nodeName
-
-
Constructor Detail
-
KillAllIncomingEdges
public KillAllIncomingEdges(String nodeName)
-
-
Method Detail
-
evaluate
public boolean evaluate(SemanticGraph sg, SemgrexMatcher sm)
If executed twice on the same node, the second time there will be no further updates- Specified by:
evaluatein classSsurgeonEdit- Returns:
- whether or not there was an edit
-
toEditString
public String toEditString()
- Specified by:
toEditStringin classSsurgeonEdit
-
-