public class TransformRules extends Object
| Constructor and Description |
|---|
TransformRules(List<TransformRule> rules) |
TransformRules(List<TransformRule> rules,
ClassHierarchyResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Document doc,
Span span)
applies the transformation rules to 'span'.
|
ClassHierarchyResolver |
getClassHierarchyResolver() |
int |
getRuleCount()
returns a count of the number of rules.
|
static TransformRules |
load(File file)
loads the transformation rules from file 'file'.
|
static TransformRules |
load(Reader in)
read the transformation rules using reader 'in'.
|
void |
setClassHierarchyResolver(ClassHierarchyResolver resolver) |
public TransformRules(List<TransformRule> rules, ClassHierarchyResolver resolver)
public TransformRules(List<TransformRule> rules)
public void apply(Document doc, Span span)
public void setClassHierarchyResolver(ClassHierarchyResolver resolver)
public ClassHierarchyResolver getClassHierarchyResolver()
public int getRuleCount()
public static TransformRules load(Reader in) throws IOException, RuleFormatException
IOExceptionRuleFormatExceptionpublic static TransformRules load(File file) throws IOException, RuleFormatException
IOExceptionRuleFormatExceptionCopyright © 2016 New York University. All rights reserved.