net.sf.jhunlang.jmorph
Class Prefix
java.lang.Object
net.sf.jhunlang.jmorph.Affix
net.sf.jhunlang.jmorph.Prefix
- All Implemented Interfaces:
- java.io.Serializable
- public class Prefix
- extends Affix
Prefix instances store groups of prefix inflexion rules.
- See Also:
- Serialized Form
|
Constructor Summary |
Prefix(char name,
boolean crossable,
int size)
Create a new Prefix instance with the given parameters. |
|
Method Summary |
AffixEntry |
createEntry(Rules rules,
int index,
Condition[] acondition,
java.lang.String strip,
java.lang.String append)
Create and return a new PrefixEntry with the given parameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Prefix
public Prefix(char name,
boolean crossable,
int size)
- Create a new Prefix instance with the given parameters.
Initalize
entries to the given size.
- Parameters:
name - the name or flagcrossable - if the rules can be crossedsize - the number of prefix rules belonging to this group
createEntry
public AffixEntry createEntry(Rules rules,
int index,
Condition[] acondition,
java.lang.String strip,
java.lang.String append)
- Create and return a new PrefixEntry with the given parameters
- Specified by:
createEntry in class Affix
- Parameters:
rules - the rules this affix belongs toindex - the index of the ruleacondition - the conditions of the rulestrip - the characters to strip from stemsappend - the characters that can be added to stripped stems
Copyright © 2005 jmorph developers. All Rights Reserved.