Package org.smtlib.sexpr
Class Sexpr.Token<T>
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.sexpr.Sexpr
org.smtlib.sexpr.Sexpr.Token<T>
- All Implemented Interfaces:
IAttributeValue,INode,IPos.IPosable,IResponse,ISexpr,ISexpr.IToken<T>
- Enclosing class:
Sexpr
Represents a single S-expression token with intrinsic type T
-
Nested Class Summary
Nested classes/interfaces inherited from class org.smtlib.sexpr.Sexpr
Sexpr.Seq, Sexpr.Token<T>Nested classes/interfaces inherited from interface org.smtlib.IResponse
IResponse.IAssertionsResponse, IResponse.IAssignmentResponse, IResponse.IAttributeList, IResponse.IError, IResponse.IFactory, IResponse.IPair<T1,T2>, IResponse.IProofResponse, IResponse.IUnsatAssumptionsResponse, IResponse.IUnsatCoreResponse, IResponse.IValueResponse Nested classes/interfaces inherited from interface org.smtlib.sexpr.ISexpr
ISexpr.ISeq, ISexpr.IToken<T> -
Field Summary
FieldsFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<TT> TTThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }booleanisError()Returns true if the response is an error responsebooleanisOK()Returns true if the response is a SUCCESS responsekind()A word characterizing the subclassvalue()Methods inherited from class org.smtlib.impl.Pos.Printable
toStringMethods inherited from class org.smtlib.impl.Pos.Posable
equals, hashCode, pos, setPosMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.smtlib.IPos.IPosable
pos, setPos
-
Field Details
-
value
-
-
Constructor Details
-
Token
-
-
Method Details
-
value
- Specified by:
valuein interfaceISexpr.IToken<T>
-
kind
Description copied from interface:ISexprA word characterizing the subclass -
isOK
public boolean isOK()Description copied from interface:IResponseReturns true if the response is a SUCCESS response- Specified by:
isOKin interfaceIAttributeValue- Specified by:
isOKin interfaceIResponse
-
isError
public boolean isError()Description copied from interface:IResponseReturns true if the response is an error response- Specified by:
isErrorin interfaceIAttributeValue- Specified by:
isErrorin interfaceIResponse
-
accept
Description copied from interface:INodeThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }- Specified by:
acceptin interfaceINode- Type Parameters:
TT- the return type desired from the visit methods- Parameters:
v- the visitor class- Returns:
- the value returned by the visit method
- Throws:
IVisitor.VisitorException
-