com.sun.labs.minion.lexmorph
Class MorphCompoundRule

java.lang.Object
  extended by com.sun.labs.minion.lexmorph.MorphRule
      extended by com.sun.labs.minion.lexmorph.MorphCompoundRule

public class MorphCompoundRule
extends MorphRule

This is a class of compound rules used in MorphEngine.

See Also:
MorphEngine

Field Summary
 int[] actions
           
 Category[] categoryPattern
           
 java.lang.String name
           
 
Fields inherited from class com.sun.labs.minion.lexmorph.MorphRule
conditionalPhaseOne, definitePhaseOne, killnum, leftAnchor, leftkillnum, pattern, possibleSplitRule, rightAnchor
 
Constructor Summary
MorphCompoundRule()
           
MorphCompoundRule(MorphRule oldRule, java.lang.String newName, Lexicon dict)
          Create a MorphCompoundRule from a temporary MorphRule
MorphCompoundRule(java.lang.String expression, java.lang.String blockName, Lexicon dict)
          Create a MorphCompoundRule
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

categoryPattern

public Category[] categoryPattern

actions

public int[] actions

name

public java.lang.String name
Constructor Detail

MorphCompoundRule

public MorphCompoundRule()

MorphCompoundRule

public MorphCompoundRule(java.lang.String expression,
                         java.lang.String blockName,
                         Lexicon dict)
Create a MorphCompoundRule

Parameters:
expression - A string specifying a MorphCompoundRule.
blockName - A String specifying the name of the block for tracing.
dict - A Lexicon to use for making the categories to match.

MorphCompoundRule

public MorphCompoundRule(MorphRule oldRule,
                         java.lang.String newName,
                         Lexicon dict)
Create a MorphCompoundRule from a temporary MorphRule

Parameters:
oldRule - A MorphRule whose pattern specifies two categories as strings.
newName - A String specifying the name of the converted rule for tracing.
dict - A Lexicon to use for making the categories to match.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class MorphRule