public class SimpleTptpParserOutput extends Object implements TptpParserOutput
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleTptpParserOutput.AnnotatedClause
Represents instances of <cnf annotated> in the BNF grammar.
|
static class |
SimpleTptpParserOutput.AnnotatedFormula
Represents instances of <fof annotated> in the BNF grammar.
|
static class |
SimpleTptpParserOutput.AnnotatedThfFormula
Represents instances of <thf annotated> in the BNF grammar.
|
static class |
SimpleTptpParserOutput.Annotations |
static class |
SimpleTptpParserOutput.Clause |
static class |
SimpleTptpParserOutput.Formula |
static class |
SimpleTptpParserOutput.GeneralTerm |
static class |
SimpleTptpParserOutput.IncludeDirective
Represents instances of <include> in the BNF grammar.
|
static class |
SimpleTptpParserOutput.InfoItem |
static class |
SimpleTptpParserOutput.Literal |
static class |
SimpleTptpParserOutput.ParentInfo |
static class |
SimpleTptpParserOutput.Source |
static class |
SimpleTptpParserOutput.Symbol |
static class |
SimpleTptpParserOutput.Term |
static class |
SimpleTptpParserOutput.ThfFormula |
static class |
SimpleTptpParserOutput.TopLevelItem
A common base for the classes AnnotatedFormula, AnnotatedClause
and IncludeDirective.
|
TptpParserOutput.AtomicFormula, TptpParserOutput.BinaryConnective, TptpParserOutput.CnfFormula, TptpParserOutput.FofFormula, TptpParserOutput.FormulaRole, TptpParserOutput.IntroType, TptpParserOutput.Quantifier, TptpParserOutput.StatusValue, TptpParserOutput.ThfAtomicFormula, TptpParserOutput.TptpInput, TptpParserOutput.UnaryConnective| Constructor and Description |
|---|
SimpleTptpParserOutput() |
public TptpParserOutput.TptpInput createThfAnnotated(String name, TptpParserOutput.FormulaRole role, TptpParserOutput.ThfFormula formula, TptpParserOutput.Annotations annotations, int lineNumber)
createThfAnnotated in interface TptpParserOutputname - != nullrole - != nullformula - != nullannotations - can be nulllineNumber - location in the inputpublic TptpParserOutput.TptpInput createFofAnnotated(String name, TptpParserOutput.FormulaRole role, TptpParserOutput.FofFormula formula, TptpParserOutput.Annotations annotations, int lineNumber)
createFofAnnotated in interface TptpParserOutputname - != nullrole - != nullformula - != nullannotations - can be nulllineNumber - location in the inputpublic TptpParserOutput.TptpInput createCnfAnnotated(String name, TptpParserOutput.FormulaRole role, TptpParserOutput.CnfFormula clause, TptpParserOutput.Annotations annotations, int lineNumber)
createCnfAnnotated in interface TptpParserOutputname - != nullrole - != nullclause - != nullannotations - can be nulllineNumber - location in the inputpublic TptpParserOutput.TptpInput createIncludeDirective(String fileName, Iterable<String> formulaSelection, int lineNumber)
createIncludeDirective in interface TptpParserOutputfileName - != nullformulaSelection - satisfies
(formulaSelection == null || formulaSelection.iterator().hasNext())lineNumber - location in the inputpublic TptpParserOutput.ThfFormula createThfBinaryFormula(TptpParserOutput.ThfFormula lhs, TptpParserOutput.BinaryConnective connective, TptpParserOutput.ThfFormula rhs)
createThfBinaryFormula in interface TptpParserOutputlhs - != nullconnective - != nullrhs - != nullpublic TptpParserOutput.ThfFormula createThfUnaryOf(TptpParserOutput.UnaryConnective unary, TptpParserOutput.ThfFormula formula)
createThfUnaryOf in interface TptpParserOutputformula - != nullpublic TptpParserOutput.ThfFormula createThfQuantifiedFormula(TptpParserOutput.Quantifier quantifier, Iterable<TptpParserOutput.ThfFormula> variableList, TptpParserOutput.ThfFormula formula)
createThfQuantifiedFormula in interface TptpParserOutputquantifier - != nullvariableList - != null && variableList.iterator().hasNext()formula - != nullpublic TptpParserOutput.ThfFormula atomAsThfFormula(TptpParserOutput.ThfAtomicFormula atom)
atomAsThfFormula in interface TptpParserOutputatom - != nullpublic TptpParserOutput.ThfFormula createThfPlainAtom(String predicate, Iterable<TptpParserOutput.Term> arguments)
createThfPlainAtom in interface TptpParserOutputpublic TptpParserOutput.ThfFormula createThfSystemAtom(String predicate, Iterable<TptpParserOutput.Term> arguments)
createThfSystemAtom in interface TptpParserOutputpublic TptpParserOutput.ThfFormula builtInThfTrue()
builtInThfTrue in interface TptpParserOutputpublic TptpParserOutput.ThfFormula builtInThfFalse()
builtInThfFalse in interface TptpParserOutputpublic TptpParserOutput.ThfFormula createThfVariableAtom(String variable)
createThfVariableAtom in interface TptpParserOutputpublic TptpParserOutput.FofFormula createBinaryFormula(TptpParserOutput.FofFormula lhs, TptpParserOutput.BinaryConnective connective, TptpParserOutput.FofFormula rhs)
createBinaryFormula in interface TptpParserOutputlhs - != nullconnective - != nullrhs - != nullpublic TptpParserOutput.FofFormula createNegationOf(TptpParserOutput.FofFormula formula)
createNegationOf in interface TptpParserOutputformula - != nullpublic TptpParserOutput.FofFormula createQuantifiedFormula(TptpParserOutput.Quantifier quantifier, Iterable<String> variableList, TptpParserOutput.FofFormula formula)
createQuantifiedFormula in interface TptpParserOutputquantifier - != nullvariableList - != null && variableList.iterator().hasNext()formula - != nullpublic TptpParserOutput.CnfFormula createClause(Iterable<TptpParserOutput.Literal> literals)
createClause in interface TptpParserOutputliterals - satisfies
(literals == null || literals.iterator().hasNext())public TptpParserOutput.FofFormula atomAsFormula(TptpParserOutput.AtomicFormula atom)
atomAsFormula in interface TptpParserOutputatom - != nullpublic TptpParserOutput.Literal createLiteral(boolean positive, TptpParserOutput.AtomicFormula atom)
createLiteral in interface TptpParserOutputpositive - == true iff the literal has to be positiveatom - != nullpublic TptpParserOutput.AtomicFormula createPlainAtom(String predicate, Iterable<TptpParserOutput.Term> arguments)
createPlainAtom in interface TptpParserOutputpredicate - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())public TptpParserOutput.AtomicFormula createSystemAtom(String predicate, Iterable<TptpParserOutput.Term> arguments)
createSystemAtom in interface TptpParserOutputpredicate - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())public TptpParserOutput.AtomicFormula createEqualityAtom(TptpParserOutput.Term lhs, TptpParserOutput.Term rhs)
createEqualityAtom in interface TptpParserOutputpublic TptpParserOutput.AtomicFormula builtInTrue()
builtInTrue in interface TptpParserOutputpublic TptpParserOutput.AtomicFormula builtInFalse()
builtInFalse in interface TptpParserOutputpublic TptpParserOutput.Term createVariableTerm(String variable)
createVariableTerm in interface TptpParserOutputvariable - != nullpublic TptpParserOutput.Term createPlainTerm(String function, Iterable<TptpParserOutput.Term> arguments)
createPlainTerm in interface TptpParserOutputfunction - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())public TptpParserOutput.Term createSystemTerm(String function, Iterable<TptpParserOutput.Term> arguments)
createSystemTerm in interface TptpParserOutputfunction - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())public TptpParserOutput.Annotations createAnnotations(TptpParserOutput.Source source, Iterable<TptpParserOutput.InfoItem> usefulInfo)
createAnnotations in interface TptpParserOutputsource - != nullusefulInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())public TptpParserOutput.Source createSourceFromName(String name)
createSourceFromName in interface TptpParserOutputname - != nullpublic TptpParserOutput.Source createSourceFromListOfSources(Iterable<TptpParserOutput.Source> listOfSources)
createSourceFromListOfSources in interface TptpParserOutputlistOfSources - nonemptypublic TptpParserOutput.Source createSourceFromInferenceRecord(String inferenceRule, Iterable<TptpParserOutput.InfoItem> usefulInfo, Iterable<TptpParserOutput.ParentInfo> parentInfoList)
createSourceFromInferenceRecord in interface TptpParserOutputinferenceRule - != nullusefulInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())parentInfoList - nonemptypublic TptpParserOutput.Source createInternalSource(String introType, Iterable<TptpParserOutput.InfoItem> introInfo)
createInternalSource in interface TptpParserOutputintroType - != nullintroInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())public TptpParserOutput.Source createSourceFromFile(String fileName, String fileInfo)
createSourceFromFile in interface TptpParserOutputfileName - != nullfileInfo - (may be null)public TptpParserOutput.Source createSourceFromCreator(String creatorName, Iterable<TptpParserOutput.InfoItem> usefulInfo)
createSourceFromCreator in interface TptpParserOutputcreatorName - != nullusefulInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())public TptpParserOutput.Source createSourceFromTheory(String theoryName, Iterable<TptpParserOutput.InfoItem> usefulInfo)
createSourceFromTheory in interface TptpParserOutputtheoryName - != nullusefulInfo - satisfies
(usefulInfo == null || usefulInfo.iterator().hasNext())public TptpParserOutput.InfoItem createDescriptionInfoItem(String singleQuoted)
createDescriptionInfoItem in interface TptpParserOutputsingleQuoted - != nullpublic TptpParserOutput.InfoItem createIQuoteInfoItem(String singleQuoted)
createIQuoteInfoItem in interface TptpParserOutputsingleQuoted - != nullpublic TptpParserOutput.InfoItem createInferenceStatusInfoItem(TptpParserOutput.StatusValue statusValue)
createInferenceStatusInfoItem in interface TptpParserOutputstatusValue - != nullpublic TptpParserOutput.InfoItem createInferenceRuleInfoItem(String inferenceRule, String inferenceId, Iterable<TptpParserOutput.GeneralTerm> attributes)
createInferenceRuleInfoItem in interface TptpParserOutputinferenceRule - != nullinferenceId - != nullattributes - satisfies (attributes == null || attributes.iterator().hasNext())public TptpParserOutput.InfoItem createAssumptionRecordInfoItem(Iterable<String> nameList)
createAssumptionRecordInfoItem in interface TptpParserOutputnameList - != nullpublic TptpParserOutput.InfoItem createRefutationInfoItem(TptpParserOutput.Source fileSource)
createRefutationInfoItem in interface TptpParserOutputfileSource - returned by a call to createSourceFromFile(..)public TptpParserOutput.InfoItem createGeneralFunctionInfoItem(TptpParserOutput.GeneralTerm generalFunction)
createGeneralFunctionInfoItem in interface TptpParserOutputgeneralFunction - returned by a call to
createGeneralFunction(..)public TptpParserOutput.GeneralTerm createGeneralFunction(String function, Iterable<TptpParserOutput.GeneralTerm> arguments)
createGeneralFunction in interface TptpParserOutputfunction - != nullarguments - satisfies
(arguments == null || arguments.iterator().hasNext())public TptpParserOutput.GeneralTerm createGeneralList(Iterable<TptpParserOutput.GeneralTerm> list)
createGeneralList in interface TptpParserOutputlist - satisfies
(list == null || list.iterator().hasNext())public TptpParserOutput.GeneralTerm createGeneralColon(TptpParserOutput.GeneralTerm left, TptpParserOutput.GeneralTerm right)
createGeneralColon in interface TptpParserOutputleft - should not be a general term presenting a listpublic TptpParserOutput.GeneralTerm createGeneralDistinctObject(String str)
createGeneralDistinctObject in interface TptpParserOutputpublic TptpParserOutput.GeneralTerm createGeneralVariable(String var)
createGeneralVariable in interface TptpParserOutputpublic TptpParserOutput.GeneralTerm createGeneralThfFormula(TptpParserOutput.ThfFormula formula)
createGeneralThfFormula in interface TptpParserOutputpublic TptpParserOutput.GeneralTerm createGeneralFofFormula(TptpParserOutput.FofFormula formula)
createGeneralFofFormula in interface TptpParserOutputpublic TptpParserOutput.GeneralTerm createGeneralCnfFormula(TptpParserOutput.CnfFormula formula)
createGeneralCnfFormula in interface TptpParserOutputpublic TptpParserOutput.GeneralTerm createGeneralTerm(TptpParserOutput.Term term)
createGeneralTerm in interface TptpParserOutputpublic TptpParserOutput.ParentInfo createParentInfo(TptpParserOutput.Source source, TptpParserOutput.GeneralTerm parentDetails)
createParentInfo in interface TptpParserOutputsource - != 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 rulepublic void reset()
Copyright © 2015. All rights reserved.