se.chalmers.cs.gf.parse.chart
Class Rule

java.lang.Object
  extended by se.chalmers.cs.gf.parse.chart.Rule
Direct Known Subclasses:
NonTerminalRule, TerminalRule

public abstract class Rule
extends java.lang.Object


Constructor Summary
Rule(Category cat)
           
 
Method Summary
 Category getCategory()
          Get the left hand side of the rule.
abstract  java.lang.String getFun()
          Get the function name use to construct an abstract syntax tree from this rule.
abstract  int getSize()
          Get the number of terminals or non-terminal on the RHS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rule

public Rule(Category cat)
Method Detail

getCategory

public Category getCategory()
Get the left hand side of the rule.


getFun

public abstract java.lang.String getFun()
Get the function name use to construct an abstract syntax tree from this rule.


getSize

public abstract int getSize()
Get the number of terminals or non-terminal on the RHS.