Package ca.phon.orthography
Class OrthoWordExtractor
- All Implemented Interfaces:
Visitor<OrthoElement>
Removes any comments, events, or punctuation
from Orthography. This is used for detecting
the number of align-able elements in an Orthography instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Generic, i.e., fallback, processing method.boolean
void
setIncludeOmitted
(boolean includeOmitted) void
visitComment
(OrthoComment comment) void
void
visitWordnet
(OrthoWordnet wordnet) Methods inherited from class ca.phon.visitor.VisitorAdapter
visit
-
Constructor Details
-
OrthoWordExtractor
public OrthoWordExtractor() -
OrthoWordExtractor
public OrthoWordExtractor(boolean includeOmitted)
-
-
Method Details
-
isIncludeOmitted
public boolean isIncludeOmitted() -
setIncludeOmitted
public void setIncludeOmitted(boolean includeOmitted) -
visitWord
-
visitWordnet
-
visitComment
-
getWordList
-
fallbackVisit
Description copied from class:VisitorAdapter
Generic, i.e., fallback, processing method.- Specified by:
fallbackVisit
in classVisitorAdapter<OrthoElement>
-