public class FolParserB extends Object implements FolParserBConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
FolParserBTokenManager |
token_source
Generated Token Manager.
|
| Constructor and Description |
|---|
FolParserB(FolParserBTokenManager tm)
Constructor with generated Token Manager.
|
FolParserB(InputStream stream)
Constructor with InputStream.
|
FolParserB(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
FolParserB(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FOLAtom |
atom(FolSignature signature) |
Set<net.sf.tweety.logics.commons.syntax.Constant> |
constants(net.sf.tweety.logics.commons.syntax.Sort type) |
void |
declar(FolSignature signature) |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
net.sf.tweety.logics.commons.syntax.interfaces.TypedStructure |
endFunctorDeclar(FolSignature signature,
String sortName) |
net.sf.tweety.logics.commons.syntax.interfaces.TypedStructure |
endPredicateDeclar(FolSignature signature,
String name) |
FolFormula |
formula(FolSignature signature) |
net.sf.tweety.commons.util.Pair<Integer,FolFormula> |
formulaex(FolSignature signature) |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
String |
identifier() |
FolBeliefSet |
KB() |
void |
ReInit(FolParserBTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
setForce(boolean forceDefinitions) |
List<net.sf.tweety.logics.commons.syntax.Sort> |
sortdecl() |
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> |
term(FolSignature signature,
net.sf.tweety.logics.commons.syntax.Sort type) |
public FolParserBTokenManager token_source
public Token token
public Token jj_nt
public FolParserB(InputStream stream)
public FolParserB(InputStream stream, String encoding)
public FolParserB(Reader stream)
public FolParserB(FolParserBTokenManager tm)
public void setForce(boolean forceDefinitions)
public final FolBeliefSet KB() throws ParseException
ParseExceptionpublic final FolFormula formula(FolSignature signature) throws ParseException
ParseExceptionpublic final net.sf.tweety.commons.util.Pair<Integer,FolFormula> formulaex(FolSignature signature) throws ParseException
ParseExceptionpublic final FOLAtom atom(FolSignature signature) throws ParseException
ParseExceptionpublic final net.sf.tweety.logics.commons.syntax.interfaces.Term<?> term(FolSignature signature, net.sf.tweety.logics.commons.syntax.Sort type) throws ParseException
ParseExceptionpublic final String identifier() throws ParseException
ParseExceptionpublic final List<net.sf.tweety.logics.commons.syntax.Sort> sortdecl() throws ParseException
ParseExceptionpublic final Set<net.sf.tweety.logics.commons.syntax.Constant> constants(net.sf.tweety.logics.commons.syntax.Sort type) throws ParseException
ParseExceptionpublic final void declar(FolSignature signature) throws ParseException
ParseExceptionpublic final net.sf.tweety.logics.commons.syntax.interfaces.TypedStructure endPredicateDeclar(FolSignature signature, String name) throws ParseException
ParseExceptionpublic final net.sf.tweety.logics.commons.syntax.interfaces.TypedStructure endFunctorDeclar(FolSignature signature, String sortName) throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(FolParserBTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2018. All rights reserved.