Modifier and Type | Method and Description |
---|---|
static SentenceParser |
getInstance(Reader reader,
Operands operands)
Returns a new
SentenceParser that will parse Prolog syntax read from the specified Reader using
the specified Operands . |
static SentenceParser |
getInstance(String prologSyntax,
Operands operands)
Returns a new
SentenceParser will parse the specified String using the specified Operands . |
Map<String,Variable> |
getParsedTermVariables()
Returns collection of
Variable instances created by this SentenceParser . |
Term |
parseSentence()
|
public static SentenceParser getInstance(String prologSyntax, Operands operands)
SentenceParser
will parse the specified String
using the specified Operands
.prologSyntax
- the prolog syntax to be parsedoperands
- details of the operands to use during parsingSentenceParser
public static SentenceParser getInstance(Reader reader, Operands operands)
SentenceParser
that will parse Prolog syntax read from the specified Reader
using
the specified Operands
.reader
- the source of the prolog syntax to be parsedoperands
- details of the operands to use during parsingSentenceParser
public Map<String,Variable> getParsedTermVariables()
Variable
instances created by this SentenceParser
.
Returns all Variable
s created by this SentenceParser
either since it was created or since the last
execution of parseSentence()
.
Variable
instances created by this SentenceParser
public Term parseSentence()
Term
created from Prolog syntax read from this object's CharacterParser
or null
if the end of the underlying stream being parsed has been reachedParserException
- if an error parsing the Prolog syntax occursCopyright © 2024. All rights reserved.