Package org.smtlib.impl
Class SMTExpr.StringLiteral
java.lang.Object
- All Implemented Interfaces:
IAttributeValue,IExpr,IExpr.ILiteral,IExpr.IStringLiteral,INode,IPos.IPosable,IResponse
- Enclosing class:
SMTExpr
public static class SMTExpr.StringLiteral
extends SMTExpr.Literal<String>
implements IExpr.IStringLiteral
This class represents an SMT String literal expression or syntax token
-
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
Fields inherited from class org.smtlib.impl.SMTExpr.Literal
valueFields inherited from class org.smtlib.impl.Pos.AbstractExpr
sortFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionStringLiteral(SMT.Configuration smtConfig, String value, boolean quoted) Creates a string literal. -
Method Summary
Methods inherited from class org.smtlib.impl.SMTExpr.Literal
isError, valueMethods inherited from class org.smtlib.impl.Pos.AbstractExpr
setSort, sortMethods inherited from class org.smtlib.impl.Pos.Printable
toStringMethods 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.IAttributeValue
isOKMethods inherited from interface org.smtlib.IExpr.IStringLiteral
toString, valueMethods inherited from interface org.smtlib.IPos.IPosable
pos, setPos
-
Constructor Details
-
StringLiteral
Creates a string literal. Ifquotedis true the argument is the raw SMT-LIB text (with enclosing quotes and escape sequences), unescaped per the given Configuration's rules (escaping is version-dependent -- seeUtils.unescape); if false it is already the unescaped Java string andsmtConfigis unused. Issue #22: this used to read a single staticSMTExpr.smtConfigfield shared process-wide, so which Configuration's rules applied depended on whichever Configuration was most recently constructed anywhere in the process, not the one actually driving this literal's construction.
-
-
Method Details
-
equals
Equal to any IStringLiteral with the same string value- 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
-