internal LocationMatcher(TreeLocation _enclosing, IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) { this._enclosing = _enclosing; this.newNodeNames = newNodeNames; this.coindexer = coindexer; this.childMatcher = this._enclosing.child.Matcher(newNodeNames, coindexer); }
public override TsurgeonMatcher Matcher() { CoindexationGenerator coindexer = null; if (coindexes) { coindexer = new CoindexationGenerator(); } return(Matcher(Generics.NewHashMap <string, Tree>(), coindexer)); }
public TsurgeonMatcher(TsurgeonPattern pattern, IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) { // TODO: ideally we should have the tree and the tregex matcher be // part of this as well. That would involve putting some of the // functionality in Tsurgeon.java in this object this.newNodeNames = newNodeNames; this.coindexer = coindexer; this.childMatcher = new Edu.Stanford.Nlp.Trees.Tregex.Tsurgeon.TsurgeonMatcher[pattern.children.Length]; for (int i = 0; i < pattern.children.Length; ++i) { this.childMatcher[i] = pattern.children[i].Matcher(newNodeNames, coindexer); } }
public Matcher(AdjoinToHeadNode _enclosing, IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) : base(this._enclosing, newNodeNames, coindexer) { this._enclosing = _enclosing; }
public override TsurgeonMatcher Matcher(IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) { return(new AdjoinToHeadNode.Matcher(this, newNodeNames, coindexer)); }
public Matcher(InsertNode _enclosing, IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) : base(this._enclosing, newNodeNames, coindexer) { this._enclosing = _enclosing; this.locationMatcher = this._enclosing.location.Matcher(newNodeNames, coindexer); }
public RelabelMatcher(RelabelNode _enclosing, IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) : base(this._enclosing, newNodeNames, coindexer) { this._enclosing = _enclosing; }
public Matcher(TsurgeonPatternRoot _enclosing, IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) : base(this._enclosing, newNodeNames, coindexer) { this._enclosing = _enclosing; }
public override TsurgeonMatcher Matcher(IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) { return(new TsurgeonPatternRoot.Matcher(this, newNodeNames, coindexer)); }
public abstract TsurgeonMatcher Matcher(IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer);
public virtual TreeLocation.LocationMatcher Matcher(IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer) { return(new TreeLocation.LocationMatcher(this, newNodeNames, coindexer)); }