org.cogroo.tools.checker.rules.applier
Class AcceptState

java.lang.Object
  extended by org.cogroo.tools.checker.rules.applier.State
      extended by org.cogroo.tools.checker.rules.applier.AcceptState
All Implemented Interfaces:
Serializable

public class AcceptState
extends State

An accept state, that is part of rules DFA. The accept state holds the rule it accepts.

Version:
$Id: AcceptState.java 186 2007-03-07 01:08:07Z colen $
Author:
Marcelo Suzumura, William Colen
See Also:
Serialized Form

Constructor Summary
AcceptState(int name, PatternElement element, Rule rule)
          Package private constructor.
 
Method Summary
 Rule getRule()
           
 
Methods inherited from class org.cogroo.tools.checker.rules.applier.State
getElement, getName, getNextStates, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AcceptState

public AcceptState(int name,
                   PatternElement element,
                   Rule rule)
Package private constructor.

Parameters:
name - the integer that represents the name of the state
element - the element of the rule
rule - the rule that is accepted by this state
Method Detail

getRule

public Rule getRule()
Returns:
the rule that is accepted by this state


Copyright © 2012-2013 CoGrOO. All Rights Reserved.