GATE
Version 3.1-2270

debugger.resources.pr
Class RuleModel

java.lang.Object
  extended by 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

Constructor Summary
RuleModel(RightHandSide rhs)
          Constructs RuleModel from given RightHandSide
 
Method Summary
 boolean equals(Object obj)
           
 RuleAnnotationHistory getAnnotationHistory()
           
 HashMap getBindings()
           
 ArrayList getMatchedAnnotations()
           
 ArrayList getMatchedText()
           
 ArrayList getMatshedRuleTable()
           
 String getName()
           
 PhaseModel getParentPhase()
           
 RightHandSide getRHS()
           
 String getRuleText()
           
 boolean isStopOnMatch()
           
 void setBindings(HashMap bindings)
           
 void setStopOnMatch(boolean stopOnMatch)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleModel

public RuleModel(RightHandSide rhs)
Constructs RuleModel from given RightHandSide

Parameters:
rhs - RightHandSide to construct this RuleModel.
Method Detail

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()

GATE
Version 3.1-2270