public class DefaultLabelParser extends Object implements LabelParser
| Constructor and Description |
|---|
DefaultLabelParser(boolean loadIncludes,
boolean captureProblems,
boolean allowExternalProblems,
PointerResolver resolver) |
DefaultLabelParser(boolean loadIncludes,
boolean captureProblems,
PointerResolver resolver) |
DefaultLabelParser(PointerResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
String |
getODLVersion() |
static void |
main(String[] args) |
Label |
parseLabel(File file) |
Label |
parseLabel(File file,
boolean forceParse) |
Label |
parseLabel(URL url) |
Label |
parseLabel(URL url,
boolean forceParse)
Parses the given file
|
Label |
parsePartial(BufferedInputStream inputStream,
Label label,
Label parent) |
Label |
parsePartial(File file,
Label parent) |
Label |
parsePartial(File file,
Label parent,
boolean captureProbs) |
Label |
parsePartial(File file,
Label parent,
boolean captureProbs,
boolean allowExternalProbs) |
Label |
parsePartial(URL url,
Label parent)
Parses the given partial label.
|
Label |
parsePartial(URL url,
Label parent,
boolean captureProbs) |
Label |
parsePartial(URL url,
Label parent,
boolean captureProbs,
boolean allowExternalProbs) |
public DefaultLabelParser(PointerResolver resolver)
public DefaultLabelParser(boolean loadIncludes,
boolean captureProblems,
PointerResolver resolver)
public DefaultLabelParser(boolean loadIncludes,
boolean captureProblems,
boolean allowExternalProblems,
PointerResolver resolver)
public Label parseLabel(URL url) throws LabelParserException, IOException
LabelParserExceptionIOExceptionpublic Label parseLabel(File file) throws LabelParserException, IOException
LabelParserExceptionIOExceptionpublic Label parseLabel(URL url, boolean forceParse) throws LabelParserException, IOException
LabelParserparseLabel in interface LabelParserurl - File toLabel representation of the fileLabelParserException - - If any syntactic errors are encountered. All errors will be
written to the Logger.IOExceptionpublic Label parseLabel(File file, boolean forceParse) throws LabelParserException, IOException
parseLabel in interface LabelParserLabelParserExceptionIOExceptionpublic String getODLVersion()
public Label parsePartial(File file, Label parent) throws IOException, LabelParserException
parsePartial in interface LabelParserIOExceptionLabelParserExceptionpublic Label parsePartial(File file, Label parent, boolean captureProbs) throws IOException, LabelParserException
IOExceptionLabelParserExceptionpublic Label parsePartial(File file, Label parent, boolean captureProbs, boolean allowExternalProbs) throws IOException, LabelParserException
IOExceptionLabelParserExceptionpublic Label parsePartial(URL url, Label parent) throws IOException, LabelParserException
LabelParserparsePartial in interface LabelParserLabel representation of the fileIOExceptionLabelParserExceptionpublic Label parsePartial(URL url, Label parent, boolean captureProbs) throws IOException, LabelParserException
IOExceptionLabelParserExceptionpublic Label parsePartial(URL url, Label parent, boolean captureProbs, boolean allowExternalProbs) throws IOException, LabelParserException
IOExceptionLabelParserExceptionpublic Label parsePartial(BufferedInputStream inputStream, Label label, Label parent) throws IOException, LabelParserException
IOExceptionLabelParserExceptionCopyright © 2019. All rights reserved.