debugger.resources.pr
Class RuleModel

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

Nested Class Summary
(package private)  class RuleModel.RuleName
           
 
Field Summary
private  RuleAnnotationHistory annotationHistory
          Annotation history for this rule
private  HashMap bindings
           
private  RightHandSide rhs
          Reference to RightHandSide of this rule
private  RuleModel.RuleName ruleName
          Represents this rule name
private  boolean stopOnMatch
          Designates if this rule marked as breakpoint
 
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()
           
private  Annotation neededAnnotation(AnnotationSet annSet, String target)
           
 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
 

Field Detail

bindings

private HashMap bindings

rhs

private final RightHandSide rhs
Reference to RightHandSide of this rule


ruleName

private final RuleModel.RuleName ruleName
Represents this rule name


annotationHistory

private final RuleAnnotationHistory annotationHistory
Annotation history for this rule


stopOnMatch

private boolean stopOnMatch
Designates if this rule marked as breakpoint

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)

setBindings

public void setBindings(HashMap bindings)

getBindings

public HashMap getBindings()

getMatshedRuleTable

public ArrayList getMatshedRuleTable()

getMatchedText

public ArrayList getMatchedText()

neededAnnotation

private Annotation neededAnnotation(AnnotationSet annSet,
                                    String target)

getMatchedAnnotations

public ArrayList getMatchedAnnotations()

getParentPhase

public PhaseModel getParentPhase()

getRuleText

public String getRuleText()