Package org.smtlib.impl
Class SMTExpr.Attribute<TT extends IAttributeValue>
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.impl.SMTExpr.Attribute<TT>
- All Implemented Interfaces:
IExpr.IAttribute<TT>,INode,IPos.IPosable,IResponse
- Enclosing class:
SMTExpr
public static class SMTExpr.Attribute<TT extends IAttributeValue>
extends Pos.Printable
implements IExpr.IAttribute<TT>
Represents an SMT-LIB attribute: a keyword optionally paired with a value.
-
Nested Class Summary
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 -
Field Summary
FieldsFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionAttribute(IExpr.IKeyword keyword, TT value) Creates an attribute from the given keyword and (possibly null) value. -
Method Summary
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
-
keyword
-
value
-
-
Constructor Details
-
Attribute
Creates an attribute from the given keyword and (possibly null) value.
-
-
Method Details
-
keyword
- Specified by:
keywordin interfaceIExpr.IAttribute<TT extends IAttributeValue>
-
attrValue
- Specified by:
attrValuein interfaceIExpr.IAttribute<TT extends IAttributeValue>
-
isOK
public boolean isOK()Description copied from interface:IResponseReturns true if the response is a SUCCESS response -
isError
public boolean isError()Description copied from interface:IResponseReturns true if the response is an error response -
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:
T- the return type desired from the visit methods- Parameters:
v- the visitor class- Returns:
- the value returned by the visit method
- Throws:
IVisitor.VisitorException
-