Package org.smtlib.impl
Class SMTExpr.BinaryLiteral
java.lang.Object
- All Implemented Interfaces:
IAttributeValue,IExpr,IExpr.IBinaryLiteral,IExpr.IIndex,IExpr.ILiteral,INode,IPos.IPosable,IResponse
- Enclosing class:
SMTExpr
public static class SMTExpr.BinaryLiteral
extends SMTExpr.Literal<String>
implements IExpr.IBinaryLiteral
Represents an SMT-LIB binary literal (e.g.
#b1010); the value string contains only 0 and 1 digits.-
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.SMTExpr.Literal
valueFields inherited from class org.smtlib.impl.Pos.AbstractExpr
sortFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionBinaryLiteral(String unquotedValue) Creates a binary literal from a string of0and1digits (no#bprefix). -
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.IBinaryLiteral
valueMethods inherited from interface org.smtlib.IPos.IPosable
pos, setPos
-
Field Details
-
length
protected int length -
intValue
-
-
Constructor Details
-
BinaryLiteral
Creates a binary literal from a string of0and1digits (no#bprefix).
-
-
Method Details
-
intValue
Description copied from interface:IExpr.IBinaryLiteralThe binary value as an unsigned integer- Specified by:
intValuein interfaceIExpr.IBinaryLiteral
-
length
public int length()Description copied from interface:IExpr.IBinaryLiteralNumber of binary bits- Specified by:
lengthin interfaceIExpr.IBinaryLiteral
-
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
-