Package org.smtlib.impl
Class Script
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.impl.Script
- All Implemented Interfaces:
ICommand.IScript,INode,IPos.IPosable
This class implements the IScript interface, representing SMT-LIB command scripts
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of commandsprotected IExpr.IStringLiteralThe filename of the script fileFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionScript()Constructs a script with no commandsScript(IExpr.IStringLiteral filename, List<ICommand> list) Constructs the script with the given list of commands, hijacking the list itself -
Method Summary
Modifier and TypeMethodDescription<T> TThe accept method for visitor classes; the type parameter is the return type of the accept and visit methodsvoidAdds a command to the end of the scriptcommands()Returns a reference to the internal listExecutes the current listfilename()The filename of the script fileMethods inherited from class org.smtlib.impl.Pos.Printable
toStringMethods inherited from class org.smtlib.impl.Pos.Posable
equals, hashCode, pos, setPos
-
Field Details
-
filename
The filename of the script file -
commands
The list of commands
-
-
Constructor Details
-
Script
public Script()Constructs a script with no commands -
Script
Constructs the script with the given list of commands, hijacking the list itself
-
-
Method Details
-
filename
The filename of the script file- Specified by:
filenamein interfaceICommand.IScript
-
commands
Returns a reference to the internal list- Specified by:
commandsin interfaceICommand.IScript
-
add
Adds a command to the end of the script- Specified by:
addin interfaceICommand.IScript
-
execute
Executes the current list- Specified by:
executein interfaceICommand.IScript
-
accept
The accept method for visitor classes; the type parameter is the return type of the accept and visit methods- 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
-