public interface TptpParserOutput
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TptpParserOutput.Annotations
Must be implemented by a class representing annotations,
ie instances of <annotations> in the BNF grammar.
|
static interface |
TptpParserOutput.AtomicFormula
Must be implemented by a class representing structures
corresponding to instances of <atomic formula> in the BNF grammar.
|
static class |
TptpParserOutput.BinaryConnective
Reprsents all binary connectives, both associative (&,|) and nonassociative
(admissible instances of <binary connective>).
|
static interface |
TptpParserOutput.CnfFormula
Must be implemented by a class representing clause structures
corresponding to instances of <cnf formula> in the BNF grammar.
|
static interface |
TptpParserOutput.FofFormula
Must be implemented by a class representing formula structures
corresponding to instances of <fof formula> in the BNF grammar.
|
static class |
TptpParserOutput.FormulaRole
Reprsents all admissible instances of <formula role>
(see the BNF grammar).
|
static interface |
TptpParserOutput.GeneralTerm
Must be implemented by a class representing
<general term> in the BNF grammar.
|
static interface |
TptpParserOutput.InfoItem
Must be implemented by a class representing instances of <info item>
in the BNF grammar.
|
static class |
TptpParserOutput.IntroType
Reprsents all admissible instances of <intro type>
(see the BNF grammar).
|
static interface |
TptpParserOutput.Literal
Must be implemented by a class representing structures
corresponding to instances of <literal> in the BNF grammar.
|
static interface |
TptpParserOutput.ParentInfo
Must be implemented by a class representing
<parent info> in the BNF grammar.
|
static class |
TptpParserOutput.Quantifier
Reprsents all quantifiers.
|
static interface |
TptpParserOutput.Source
Must be implemented by a class representing instances of <source>
in the BNF grammar.
|
static class |
TptpParserOutput.StatusValue
Reprsents all admissible instances of <status value>
(see the BNF grammar).
|
static interface |
TptpParserOutput.Term
Must be implemented by a class representing
<term> in the BNF grammar.
|
static interface |
TptpParserOutput.ThfAtomicFormula
Must be implemented by a class representing structures
corresponding to instances of <thf atom> in the BNF grammar.
|
static interface |
TptpParserOutput.ThfFormula
Must be implemented by a class representing formula structures
corresponding to instances of <thf formula> in the BNF grammar.
|
static interface |
TptpParserOutput.TptpInput
Must be implemented by a class representing instances of
<TPTP input> in the BNF grammar (except comments), ie top level input
items, such as annotated formulas and include directives.
|
static class |
TptpParserOutput.UnaryConnective
Reprsents all unary connectives, both associative (&,|) and nonassociative
(admissible instances of <binary connective>).
|
| Modifier and Type | Method and Description |
|---|---|
TptpParserOutput.FofFormula |
atomAsFormula(TptpParserOutput.AtomicFormula atom)
A correct implementation must return an object of the class implementing FofFormula,
representing the atomic formula represented by the object
atom .
|
TptpParserOutput.ThfFormula |
atomAsThfFormula(TptpParserOutput.ThfAtomicFormula atom)
A correct implementation must return an object of the class implementing ThfFormula,
representing the atomic formula represented by the object
atom .
|
TptpParserOutput.AtomicFormula |
builtInFalse()
A correct implementation must return a representation for $false.
|
TptpParserOutput.ThfFormula |
builtInThfFalse() |
TptpParserOutput.ThfFormula |
builtInThfTrue() |
TptpParserOutput.AtomicFormula |
builtInTrue()
A correct implementation must return a representation for $true.
|
TptpParserOutput.Annotations |
createAnnotations(TptpParserOutput.Source source,
Iterable<TptpParserOutput.InfoItem> usefulInfo)
A correct implementation must return an object representing
an instance of <annotations> composed of
source and usefulInfo .
|
TptpParserOutput.InfoItem |
createAssumptionRecordInfoItem(Iterable<String> nameList)
A correct implementation must return an object representing
an instance of <info item> corresponding to an instance
of <assumption record> with a list <name list> as the parameter.
|
TptpParserOutput.FofFormula |
createBinaryFormula(TptpParserOutput.FofFormula lhs,
TptpParserOutput.BinaryConnective connective,
TptpParserOutput.FofFormula rhs)
A correct implementation must return an object representing
the binary formula obtained by applying connective
to lhs and rhs .
|
TptpParserOutput.CnfFormula |
createClause(Iterable<TptpParserOutput.Literal> literals)
A correct implementation must return an object representing
the clause made of literals .
|
TptpParserOutput.TptpInput |
createCnfAnnotated(String name,
TptpParserOutput.FormulaRole role,
TptpParserOutput.CnfFormula clause,
TptpParserOutput.Annotations annotations,
int lineNumber)
A correct implementation must return a TptpInput object representing
clause wrapped in the corresponding annotation.
|
TptpParserOutput.InfoItem |
createDescriptionInfoItem(String singleQuoted)
A correct implementation must return an object representing
an instance of <info item> corresponding to an instance
of <description item> with the specified parameter.
|
TptpParserOutput.AtomicFormula |
createEqualityAtom(TptpParserOutput.Term lhs,
TptpParserOutput.Term rhs)
A correct implementation must return an object representing
the atomic formula obtained by applying
the equality predicate to the terms.
|
TptpParserOutput.TptpInput |
createFofAnnotated(String name,
TptpParserOutput.FormulaRole role,
TptpParserOutput.FofFormula formula,
TptpParserOutput.Annotations annotations,
int lineNumber)
A correct implementation must return a TptpInput object representing
formula wrapped in the corresponding annotation.
|
TptpParserOutput.GeneralTerm |
createGeneralCnfFormula(TptpParserOutput.CnfFormula formula)
A correct implementation must return an object representing
a formula
|
TptpParserOutput.GeneralTerm |
createGeneralColon(TptpParserOutput.GeneralTerm left,
TptpParserOutput.GeneralTerm right)
A correct implementation must return an object representing
a general term obtained by applying ':' (colon) binary operator
to two general terms.
|
TptpParserOutput.GeneralTerm |
createGeneralDistinctObject(String str)
A correct implementation must return an object representing
a general term constructed as a number or a double-quoted string
(both represented as a string)
|
TptpParserOutput.GeneralTerm |
createGeneralFofFormula(TptpParserOutput.FofFormula formula)
A correct implementation must return an object representing
a formula
|
TptpParserOutput.GeneralTerm |
createGeneralFunction(String function,
Iterable<TptpParserOutput.GeneralTerm> arguments)
A correct implementation must return an object representing
the non-list term obtained by applying
function to
arguments .
|
TptpParserOutput.InfoItem |
createGeneralFunctionInfoItem(TptpParserOutput.GeneralTerm generalFunction)
A correct implementation must return an object representing
an instance of <info item> corresponding to the specified
instance of <general function>.
|
TptpParserOutput.GeneralTerm |
createGeneralList(Iterable<TptpParserOutput.GeneralTerm> list)
A correct implementation must return an object representing
the general term constructed as a list.
|
TptpParserOutput.GeneralTerm |
createGeneralTerm(TptpParserOutput.Term term)
A correct implementation must return an object representing
a formula
|
TptpParserOutput.GeneralTerm |
createGeneralThfFormula(TptpParserOutput.ThfFormula formula)
A correct implementation must return an object representing
a formula
|
TptpParserOutput.GeneralTerm |
createGeneralVariable(String var)
A correct implementation must return an object representing
a general term constructed as a variable
(represented as a string)
|
TptpParserOutput.TptpInput |
createIncludeDirective(String fileName,
Iterable<String> formulaSelection,
int lineNumber)
A correct implementation must return a TptpInput object representing
the instance of <include> with the specified parameters.
|
TptpParserOutput.InfoItem |
createInferenceRuleInfoItem(String inferenceRule,
String inferenceId,
Iterable<TptpParserOutput.GeneralTerm> attributes)
A correct implementation must return an object representing
an instance of <info item> corresponding to an instance
of <inference info> with the specified constituents.
|
TptpParserOutput.InfoItem |
createInferenceStatusInfoItem(TptpParserOutput.StatusValue statusValue)
A correct implementation must return an object representing
an instance of <info item> corresponding to an instance
of status(<status value>) with the specified parameter.
|
TptpParserOutput.Source |
createInternalSource(String introType,
Iterable<TptpParserOutput.InfoItem> introInfo)
A correct implementation must return an object representing
an instance of <source> corresponding to
an instance of <internal source> with the specified constituents.
|
TptpParserOutput.InfoItem |
createIQuoteInfoItem(String singleQuoted)
A correct implementation must return an object representing
an instance of <info item> corresponding to an instance
of <iquote item> with the specified parameter.
|
TptpParserOutput.Literal |
createLiteral(boolean positive,
TptpParserOutput.AtomicFormula atom)
A correct implementation must return an object representing the literal
with atom and the polarity determined by
positive .
|
TptpParserOutput.FofFormula |
createNegationOf(TptpParserOutput.FofFormula formula)
A correct implementation must return an object representing
the formula obtained by applying the negation connective
to formula .
|
TptpParserOutput.ParentInfo |
createParentInfo(TptpParserOutput.Source source,
TptpParserOutput.GeneralTerm parentDetails)
A correct implementation must return an object representing
the parent info item with the specified parameters.
|
TptpParserOutput.AtomicFormula |
createPlainAtom(String predicate,
Iterable<TptpParserOutput.Term> arguments)
A correct implementation must return an object representing
the atomic formula obtained by applying
predicate to
arguments .
|
TptpParserOutput.Term |
createPlainTerm(String function,
Iterable<TptpParserOutput.Term> arguments)
A correct implementation must return an object representing
the non-variable term obtained by applying
function to
arguments .
|
TptpParserOutput.FofFormula |
createQuantifiedFormula(TptpParserOutput.Quantifier quantifier,
Iterable<String> variableList,
TptpParserOutput.FofFormula formula)
A correct implementation must return an object representing
the formula obtained by applying the quantifier
quantifier to formula .
|
TptpParserOutput.InfoItem |
createRefutationInfoItem(TptpParserOutput.Source fileSource)
A correct implementation must return an object representing
an instance of <info item> corresponding to an instance
of <refutation> with the specified parameter.
|
TptpParserOutput.Source |
createSourceFromCreator(String creatorName,
Iterable<TptpParserOutput.InfoItem> usefulInfo)
A correct implementation must return an object representing
an instance of <source> corresponding to the specified
creator.
|
TptpParserOutput.Source |
createSourceFromFile(String fileName,
String fileInfo)
A correct implementation must return an object representing
an instance of <source> corresponding to the specified
location in a file.
|
TptpParserOutput.Source |
createSourceFromInferenceRecord(String inferenceRule,
Iterable<TptpParserOutput.InfoItem> usefulInfo,
Iterable<TptpParserOutput.ParentInfo> parentInfoList)
A correct implementation must return an object representing
an instance of <source> corresponding to
an instance of <inference record> with the specified constituents.
|
TptpParserOutput.Source |
createSourceFromListOfSources(Iterable<TptpParserOutput.Source> listOfSources)
A correct implementation must return an object representing
an instance of <source> corresponding to
a list of <sources> with the specified constituents.
|
TptpParserOutput.Source |
createSourceFromName(String name)
A correct implementation must return an object representing
an instance of <source> corresponding to
name .
|
TptpParserOutput.Source |
createSourceFromTheory(String theoryName,
Iterable<TptpParserOutput.InfoItem> usefulInfo)
A correct implementation must return an object representing
an instance of <source> corresponding to the specified
theory.
|
TptpParserOutput.AtomicFormula |
createSystemAtom(String predicate,
Iterable<TptpParserOutput.Term> arguments)
A correct implementation must return an object representing
the atomic formula obtained by applying
predicate to
arguments .
|
TptpParserOutput.Term |
createSystemTerm(String function,
Iterable<TptpParserOutput.Term> arguments)
A correct implementation must return an object representing
the atomic formula obtained by applying
function to
arguments .
|
TptpParserOutput.TptpInput |
createThfAnnotated(String name,
TptpParserOutput.FormulaRole role,
TptpParserOutput.ThfFormula formula,
TptpParserOutput.Annotations annotations,
int lineNumber)
A correct implementation must return a TptpInput object representing
formula wrapped in the corresponding annotation.
|
TptpParserOutput.ThfFormula |
createThfBinaryFormula(TptpParserOutput.ThfFormula lhs,
TptpParserOutput.BinaryConnective connective,
TptpParserOutput.ThfFormula rhs)
A correct implementation must return an object representing
the binary formula obtained by applying connective
to lhs and rhs .
|
TptpParserOutput.ThfFormula |
createThfPlainAtom(String predicate,
Iterable<TptpParserOutput.Term> arguments) |
TptpParserOutput.ThfFormula |
createThfQuantifiedFormula(TptpParserOutput.Quantifier quantifier,
Iterable<TptpParserOutput.ThfFormula> variableList,
TptpParserOutput.ThfFormula formula)
A correct implementation must return an object representing
the formula obtained by applying the quantifier
quantifier to formula .
|
TptpParserOutput.ThfFormula |
createThfSystemAtom(String predicate,
Iterable<TptpParserOutput.Term> arguments) |
TptpParserOutput.ThfFormula |
createThfUnaryOf(TptpParserOutput.UnaryConnective unary,
TptpParserOutput.ThfFormula formula)
A correct implementation must return an object representing
the formula obtained by applying the negation connective
to formula .
|
TptpParserOutput.ThfFormula |
createThfVariableAtom(String variable) |
TptpParserOutput.Term |
createVariableTerm(String variable)
A correct implementation must return an object representing
variable as a term.
|
TptpParserOutput.TptpInput createThfAnnotated(String name, TptpParserOutput.FormulaRole role, TptpParserOutput.ThfFormula formula, TptpParserOutput.Annotations annotations, int lineNumber)
name - != nullrole - != nullformula - != nullannotations - can be nulllineNumber - location in the inputTptpParserOutput.TptpInput createFofAnnotated(String name, TptpParserOutput.FormulaRole role, TptpParserOutput.FofFormula formula, TptpParserOutput.Annotations annotations, int lineNumber)
name - != nullrole - != nullformula - != nullannotations - can be nulllineNumber - location in the inputTptpParserOutput.TptpInput createCnfAnnotated(String name, TptpParserOutput.FormulaRole role, TptpParserOutput.CnfFormula clause, TptpParserOutput.Annotations annotations, int lineNumber)
name - != nullrole - != nullclause - != nullannotations - can be nulllineNumber - location in the inputTptpParserOutput.TptpInput createIncludeDirective(String fileName, Iterable<String> formulaSelection, int lineNumber)
fileName - != nullformulaSelection - satisfies
(formulaSelection == null || formulaSelection.iterator().hasNext())lineNumber - location in the inputTptpParserOutput.ThfFormula createThfBinaryFormula(TptpParserOutput.ThfFormula lhs, TptpParserOutput.BinaryConnective connective, TptpParserOutput.ThfFormula rhs)
lhs - != nullconnective - != nullrhs - != nullTptpParserOutput.ThfFormula createThfUnaryOf(TptpParserOutput.UnaryConnective unary, TptpParserOutput.ThfFormula formula)
formula - != nullTptpParserOutput.ThfFormula createThfQuantifiedFormula(TptpParserOutput.Quantifier quantifier, Iterable<TptpParserOutput.ThfFormula> variableList, TptpParserOutput.ThfFormula formula)
quantifier - != nullvariableList - != null && variableList.iterator().hasNext()formula - != nullTptpParserOutput.ThfFormula atomAsThfFormula(TptpParserOutput.ThfAtomicFormula atom)
atom - != nullTptpParserOutput.ThfFormula createThfPlainAtom(String predicate, Iterable<TptpParserOutput.Term> arguments)
TptpParserOutput.ThfFormula createThfSystemAtom(String predicate, Iterable<TptpParserOutput.Term> arguments)
TptpParserOutput.ThfFormula builtInThfTrue()
TptpParserOutput.ThfFormula builtInThfFalse()
TptpParserOutput.ThfFormula createThfVariableAtom(String variable)
TptpParserOutput.FofFormula createBinaryFormula(TptpParserOutput.FofFormula lhs, TptpParserOutput.BinaryConnective connective, TptpParserOutput.FofFormula rhs)
lhs - != nullconnective - != nullrhs - != nullTptpParserOutput.FofFormula createNegationOf(TptpParserOutput.FofFormula formula)
formula - != nullTptpParserOutput.FofFormula createQuantifiedFormula(TptpParserOutput.Quantifier quantifier, Iterable<String> variableList, TptpParserOutput.FofFormula formula)
quantifier - != nullvariableList - != null && variableList.iterator().hasNext()formula - != nullTptpParserOutput.CnfFormula createClause(Iterable<TptpParserOutput.Literal> literals)
literals - satisfies
(literals == null || literals.iterator().hasNext())TptpParserOutput.FofFormula atomAsFormula(TptpParserOutput.AtomicFormula atom)
atom - != nullTptpParserOutput.Literal createLiteral(boolean positive, TptpParserOutput.AtomicFormula atom)
positive - == true iff the literal has to be positiveatom - != nullTptpParserOutput.AtomicFormula createPlainAtom(String predicate, Iterable<TptpParserOutput.Term> arguments)
predicate - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())TptpParserOutput.AtomicFormula createSystemAtom(String predicate, Iterable<TptpParserOutput.Term> arguments)
predicate - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())TptpParserOutput.AtomicFormula createEqualityAtom(TptpParserOutput.Term lhs, TptpParserOutput.Term rhs)
TptpParserOutput.AtomicFormula builtInTrue()
TptpParserOutput.AtomicFormula builtInFalse()
TptpParserOutput.Term createVariableTerm(String variable)
variable - != nullTptpParserOutput.Term createPlainTerm(String function, Iterable<TptpParserOutput.Term> arguments)
function - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())TptpParserOutput.Term createSystemTerm(String function, Iterable<TptpParserOutput.Term> arguments)
function - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())TptpParserOutput.Annotations createAnnotations(TptpParserOutput.Source source, Iterable<TptpParserOutput.InfoItem> usefulInfo)
source - != nullusefulInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())TptpParserOutput.Source createSourceFromName(String name)
name - != nullTptpParserOutput.Source createSourceFromListOfSources(Iterable<TptpParserOutput.Source> listOfSources)
listOfSources - nonemptyTptpParserOutput.Source createSourceFromInferenceRecord(String inferenceRule, Iterable<TptpParserOutput.InfoItem> usefulInfo, Iterable<TptpParserOutput.ParentInfo> parentInfoList)
inferenceRule - != nullusefulInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())parentInfoList - nonemptyTptpParserOutput.Source createInternalSource(String introType, Iterable<TptpParserOutput.InfoItem> introInfo)
introType - != nullintroInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())TptpParserOutput.Source createSourceFromFile(String fileName, String fileInfo)
fileName - != nullfileInfo - (may be null)TptpParserOutput.Source createSourceFromCreator(String creatorName, Iterable<TptpParserOutput.InfoItem> usefulInfo)
creatorName - != nullusefulInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())TptpParserOutput.Source createSourceFromTheory(String theoryName, Iterable<TptpParserOutput.InfoItem> usefulInfo)
theoryName - != nullusefulInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())TptpParserOutput.InfoItem createDescriptionInfoItem(String singleQuoted)
singleQuoted - != nullTptpParserOutput.InfoItem createIQuoteInfoItem(String singleQuoted)
singleQuoted - != nullTptpParserOutput.InfoItem createInferenceStatusInfoItem(TptpParserOutput.StatusValue statusValue)
statusValue - != nullTptpParserOutput.InfoItem createAssumptionRecordInfoItem(Iterable<String> nameList)
nameList - != nullTptpParserOutput.InfoItem createInferenceRuleInfoItem(String inferenceRule, String inferenceId, Iterable<TptpParserOutput.GeneralTerm> attributes)
inferenceRule - != nullinferenceId - != nullattributes - satisfies (attributes == null || attributes.iterator().hasNext())TptpParserOutput.InfoItem createRefutationInfoItem(TptpParserOutput.Source fileSource)
fileSource - returned by a call to createSourceFromFile(..)TptpParserOutput.InfoItem createGeneralFunctionInfoItem(TptpParserOutput.GeneralTerm generalFunction)
generalFunction - returned by a call to
createGeneralFunction(..)TptpParserOutput.GeneralTerm createGeneralFunction(String function, Iterable<TptpParserOutput.GeneralTerm> arguments)
function - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())TptpParserOutput.GeneralTerm createGeneralList(Iterable<TptpParserOutput.GeneralTerm> list)
list - satisfies
(list == null || list.iterator().hasNext())TptpParserOutput.GeneralTerm createGeneralColon(TptpParserOutput.GeneralTerm left, TptpParserOutput.GeneralTerm right)
left - should not be a general term presenting a listrigh - TptpParserOutput.GeneralTerm createGeneralDistinctObject(String str)
str - TptpParserOutput.GeneralTerm createGeneralVariable(String var)
str - TptpParserOutput.GeneralTerm createGeneralThfFormula(TptpParserOutput.ThfFormula formula)
formula - TptpParserOutput.GeneralTerm createGeneralFofFormula(TptpParserOutput.FofFormula formula)
formula - TptpParserOutput.GeneralTerm createGeneralCnfFormula(TptpParserOutput.CnfFormula formula)
formula - TptpParserOutput.GeneralTerm createGeneralTerm(TptpParserOutput.Term term)
formula - TptpParserOutput.ParentInfo createParentInfo(TptpParserOutput.Source source, TptpParserOutput.GeneralTerm parentDetails)
source - != nullparentDetails - if nonnull, corresponds to <single quoted>
in the -<single quoted> option in the BNF rule for <parent details>
when parentDetails = null, it corresponds to the <null> option
in that ruleCopyright © 2015. All rights reserved.