Package org.smtlib.impl
Class SMTExpr.Symbol
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.impl.Pos.AbstractExpr
org.smtlib.impl.SMTExpr.Symbol
- All Implemented Interfaces:
IAttributeValue,IExpr,IExpr.IIdentifier,IExpr.IIndex,IExpr.IQualifiedIdentifier,IExpr.ISymbol,INode,IPos.IPosable,IResponse
- Enclosing class:
SMTExpr
This class represents an SMT Symbol
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.smtlib.IExpr
IExpr.IAsIdentifier, IExpr.IAttribute<TT extends IAttributeValue>, IExpr.IAttributedExpr, IExpr.IBinaryLiteral, IExpr.IBinding, IExpr.IConstructor, IExpr.IDecimal, IExpr.IDeclaration, IExpr.IError, IExpr.IExists, IExpr.IFactory, IExpr.IFcnExpr, IExpr.IForall, IExpr.IFunctionDeclaration, IExpr.IHexLiteral, IExpr.IIdentifier, IExpr.IIndex, IExpr.IKeyword, IExpr.ILambda, IExpr.ILet, IExpr.ILiteral, IExpr.IMatch, IExpr.IMatchCase, IExpr.INumeral, IExpr.IParameterizedIdentifier, IExpr.IPattern, IExpr.IPatternTerms, IExpr.IQualifiedIdentifier, IExpr.ISelector, IExpr.ISortDeclaration, IExpr.IStringLiteral, IExpr.ISymbolNested 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.AbstractExpr
sortFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }booleaninthashCode()The head symbol of the identifierstatic booleanWhether v is enclosed in a pair of barsbooleanisError()Returns true if the response is an error responsebooleanisOK()Returns true if the response is a SUCCESS responsetoString()Returns the original String - use for debugging and use a printer to print to concrete syntax.value()Returns the unique string for this symbol (e.g.Methods inherited from class org.smtlib.impl.Pos.AbstractExpr
setSort, sortMethods inherited from class org.smtlib.impl.Pos.Posable
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
-
originalString
-
-
Constructor Details
-
Symbol
The argument is a Symbol string, with or without enclosing bars; a lone or unmatched bar is kept in the value (and reported by the type checker)
-
-
Method Details
-
isBarQuoted
Whether v is enclosed in a pair of bars -
value
Returns the unique string for this symbol (e.g. modulo enclosing bars)- Specified by:
valuein interfaceIExpr.ISymbol
-
headSymbol
Description copied from interface:IExpr.IIdentifierThe head symbol of the identifier- Specified by:
headSymbolin interfaceIExpr.IIdentifier- Specified by:
headSymbolin interfaceIExpr.IQualifiedIdentifier
-
equals
- Overrides:
equalsin classPos.Posable
-
hashCode
public int hashCode()- Overrides:
hashCodein classPos.Posable
-
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
-
toString
Returns the original String - use for debugging and use a printer to print to concrete syntax.- Specified by:
toStringin interfaceIExpr.ISymbol- Overrides:
toStringin classPos.Printable
-
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
-