debugger.resources.pr
Class RuleModel
java.lang.Object
debugger.resources.pr.RuleModel
public class RuleModel
- extends Object
Copyright (c) Ontos AG (http://www.ontosearch.com).
This class is part of JAPE Debugger component for
GATE (Copyright (c) "The University of Sheffield" see http://gate.ac.uk/)
- Author:
- Andrey Shafirin
RuleModel
public RuleModel(RightHandSide rhs)
- Constructs RuleModel from given
RightHandSide
- Parameters:
rhs
- RightHandSide
to construct this RuleModel.
getName
public String getName()
- Returns:
- String representation of this rule name based on
ruleName
.
Simply RuleModel.RuleName.toString()
getRHS
public RightHandSide getRHS()
- Returns:
rhs
for this rule
getAnnotationHistory
public RuleAnnotationHistory getAnnotationHistory()
- Returns:
annotationHistory
for this rule
isStopOnMatch
public boolean isStopOnMatch()
- Returns:
- true if this rule marked as breakpoint
setStopOnMatch
public void setStopOnMatch(boolean stopOnMatch)
- Parameters:
stopOnMatch
- set true to set breakpoint for this rule
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
setBindings
public void setBindings(HashMap bindings)
getBindings
public HashMap getBindings()
getMatshedRuleTable
public ArrayList getMatshedRuleTable()
getMatchedText
public ArrayList getMatchedText()
getMatchedAnnotations
public ArrayList getMatchedAnnotations()
getParentPhase
public PhaseModel getParentPhase()
getRuleText
public String getRuleText()