Uses of Class
com.scriptbasic.api.ScriptBasicException
Packages that use ScriptBasicException
Package
Description
-
Uses of ScriptBasicException in com.scriptbasic
Methods in com.scriptbasic that throw ScriptBasicExceptionModifier and TypeMethodDescriptionEngine.Sub.call()Engine.eval(String sourceFileName, SourcePath path) Engine.eval(String sourceName, SourceProvider provider) Engine.execute()Engine.getVariable(String name) Engine.getVariablesIterator()Engine.load(String sourceFileName, SourcePath path) Engine.load(String sourceName, SourceProvider provider) voidEngine.registerFunction(String alias, Class<?> klass, String methodName, Class<?>... argumentTypes) voidEngine.setVariable(String name, Object value) <R> Subroutine<R> Engine.subroutine(Class<R> type, String name) <R> Subroutine<R> Engine.subroutine(String name) Engine.subroutines()<T> TEngine.variables() -
Uses of ScriptBasicException in com.scriptbasic.api
Methods in com.scriptbasic.api that throw ScriptBasicExceptionModifier and TypeMethodDescriptionSubroutine.call()Call a subroutine without any argument.Call the subroutine.Evaluate the content of a file.Read the content of a stream provided by the reader and interpret this as a BASIC program.Evaluate a string as a BASIC program.ScriptBasic.eval(String sourceFileName, SourcePath path) Read the content of the file and execute it.ScriptBasic.eval(String sourceName, SourceProvider provider) Read the content of the source from the file, db...Read the content of the file and execute it.ScriptBasic.execute()Execute a previously loaded code.ScriptBasic.getVariable(String name) Deprecated, for removal: This API element is subject to removal in a future version.use the version that has a second argument specifying the required type.ScriptBasic.getVariablesIterator()Deprecated, for removal: This API element is subject to removal in a future version.Evaluate the content of a file.Read the content of a stream provided by the reader and interpret this as a BASIC program.Load a string as a BASIC program.ScriptBasic.load(String sourceFileName, SourcePath path) Read the content of the file and execute it.ScriptBasic.load(String sourceName, SourceProvider provider) Read the content of the source from the file, db...Read the content of the file and execute it.voidScriptBasic.registerFunction(String alias, Class<?> klass, String methodName, Class<?>... argumentTypes) voidScriptBasic.setVariable(String name, Object value) Deprecated.useScriptBasic.variable(String), not for removal.<T> Subroutine<T> ScriptBasic.subroutine(Class<T> type, String name) Get the subroutine object of a named subroutine.<T> Subroutine<T> ScriptBasic.subroutine(String name) Convenience method with the same result as callingScriptBasic.subroutine(Class, String)withObject.classas first argument.ScriptBasic.subroutines()Get all the subroutine objects in an iterator.<T> TGet the value of a global variable after the BASIC program was executed.ScriptBasic.variables()Get an iterator that iterates through the names of the global variables. -
Uses of ScriptBasicException in com.scriptbasic.executors
Methods in com.scriptbasic.executors that throw ScriptBasicExceptionModifier and TypeMethodDescriptionvoidBasicInterpreter.execute()voidBasicInterpreter.getVariable(String name) voidBasicInterpreter.setVariable(String name, Object value) -
Uses of ScriptBasicException in com.scriptbasic.executors.commands
Methods in com.scriptbasic.executors.commands that throw ScriptBasicExceptionModifier and TypeMethodDescriptionprotected voidAbstractInsecureCommand.assertInsecure(Interpreter interpreter) voidAbstractCommand.checkedExecute(Interpreter interpreter) abstract voidAbstractCommand.execute(Interpreter interpreter) voidCommandCall.execute(Interpreter interpreter) voidCommandElseIf.execute(Interpreter interpreter) voidCommandFor.execute(Interpreter interpreter) voidCommandGlobal.execute(Interpreter interpreter) voidCommandIf.execute(Interpreter interpreter) voidCommandLet.execute(Interpreter interpreter) voidCommandLocal.execute(Interpreter interpreter) voidCommandMethod.execute(Interpreter interpreter) voidCommandNext.execute(Interpreter interpreter) voidCommandPrint.execute(Interpreter interpreter) voidCommandReturn.execute(Interpreter interpreter) voidCommandSelect.execute(Interpreter interpreter) voidCommandUse.execute(Interpreter interpreter) voidCommandWhile.execute(Interpreter interpreter) booleanCommandCase.CaseCondition.matchCase(Interpreter interpreter, RightValue selectExpressionValue) booleanCommandCase.EqualCaseCondition.matchCase(Interpreter interpreter, RightValue selectExpressionValue) booleanCommandCase.FromToCaseCondition.matchCase(Interpreter interpreter, RightValue selectExpressionValue) booleanCommandCase.matches(Interpreter interpreter, RightValue expressionValue) protected BooleanAbstractCommandIfKind.theConditionIsTrue(Interpreter interpreter) -
Uses of ScriptBasicException in com.scriptbasic.executors.leftvalues
Methods in com.scriptbasic.executors.leftvalues that throw ScriptBasicExceptionModifier and TypeMethodDescriptionvoidBasicLeftValue.setValue(RightValue rightValue, Interpreter interpreter) -
Uses of ScriptBasicException in com.scriptbasic.executors.operators
Methods in com.scriptbasic.executors.operators that throw ScriptBasicExceptionModifier and TypeMethodDescriptionfinal RightValueAbstractBinaryFullCircuitOperator.evaluate(Interpreter interpreter) AbstractShortCircuitBinaryOperator.evaluate(Interpreter interpreter) JavaObjectFieldAccessOperator.evaluate(Interpreter interpreter) UnaryOperatorMinus.evaluate(Interpreter interpreter) UnaryOperatorNot.evaluate(Interpreter interpreter) UnaryOperatorPlus.evaluate(Interpreter interpreter) protected abstract RightValueAbstractBinaryFullCircuitOperator.evaluateOn(RightValue leftOperand, RightValue rightOperand) protected abstract RightValueAbstractShortCircuitBinaryOperator.evaluateOn(Interpreter interpreter, RightValue leftOperand, Expression rightOperand) protected RightValueAmpersandOperator.evaluateOn(RightValue leftOperand, RightValue rightOperand) protected RightValueLogicalAndOperator.evaluateOn(Interpreter interpreter, RightValue leftOperand, Expression rightOperand) protected RightValueLogicalOrOperator.evaluateOn(Interpreter interpreter, RightValue leftOperand, Expression rightOperand) protected RightValueAbstractBinaryFullCircuitOperator.getLeftOperandEvaluated(Interpreter interpreter) Function used to evaluate left operand.protected RightValueAbstractBinaryFullCircuitOperator.getRightOperandEvaluated(Interpreter interpreter) Function used to evaluate right operand. -
Uses of ScriptBasicException in com.scriptbasic.executors.rightvalues
Methods in com.scriptbasic.executors.rightvalues that throw ScriptBasicExceptionModifier and TypeMethodDescriptionArrayElementAccess.evaluate(Interpreter interpreter) FunctionCall.evaluate(Interpreter interpreter) VariableAccess.evaluate(Interpreter interpreter) voidvoid -
Uses of ScriptBasicException in com.scriptbasic.interfaces
Subclasses of ScriptBasicException in com.scriptbasic.interfacesModifier and TypeClassDescriptionclassThis is the exception that the BASIC program throws when there is some error during the execution.Methods in com.scriptbasic.interfaces that throw ScriptBasicExceptionModifier and TypeMethodDescriptionEvaluator.evaluate(Interpreter interpreter) voidExecutor.execute(Interpreter interpreter) VariableMap.getVariableValue(String variableName) Get the value of a variable.voidLocalVariableMap.registerGlobalVariable(String variableName) Register a variable as a global variable.voidLocalVariableMap.registerLocalVariable(String variableName) Define the variable as a local variable in a local environment.voidVariableMap.setVariable(String variableName, RightValue rightValue) Set the value of the variable.VariableMap.variableDefined(String variableName) Checks that a variable exists and has a defined value in this map.VariableMap.variableExists(String variableName) Checks that a variable exists in this map. -
Uses of ScriptBasicException in com.scriptbasic.memory
Methods in com.scriptbasic.memory that throw ScriptBasicExceptionModifier and TypeMethodDescriptionBasicLocalVariableMap.getVariableValue(String variableName) MixedBasicVariableMap.getVariableValue(String variableName) booleanbooleanvoidBasicLocalVariableMap.registerGlobalVariable(String variableName) voidMixedBasicVariableMap.registerGlobalVariable(String variableName) voidBasicLocalVariableMap.registerLocalVariable(String variableName) voidBasicLocalVariableMap.setVariable(String variableName, RightValue rightValue) voidMixedBasicVariableMap.setVariable(String variableName, RightValue rightValue) BasicLocalVariableMap.variableDefined(String variableName) MixedBasicVariableMap.variableDefined(String variableName) BasicLocalVariableMap.variableExists(String variableName) MixedBasicVariableMap.variableExists(String variableName) -
Uses of ScriptBasicException in com.scriptbasic.spi
Methods in com.scriptbasic.spi that throw ScriptBasicExceptionModifier and TypeMethodDescriptionCall a function defined by the program passing the objects as arguments.voidCommand.checkedExecute(Interpreter interpreter) static BasicArrayvoidInterpreter.execute()Execute the program.voidExecute the program starting at the commandstartCommandGet theindex-th element of the array.Interpreter.getVariable(String name) Get the value of a variable.voidSet the index-th element of the arrayvoidSet the array object.voidLeftValue.setValue(RightValue rightValue, Interpreter interpreter) Assign the value to the left value.voidInterpreter.setVariable(String name, Object value) Set the value of the variable. -
Uses of ScriptBasicException in com.scriptbasic.utility
Methods in com.scriptbasic.utility that throw ScriptBasicExceptionModifier and TypeMethodDescriptionstatic RightValueExpressionUtility.callBasicFunction(Interpreter interpreter, RightValue[] argumentValues, CommandSub commandSub, String functionName) static IntegerRightValueUtility.convert2Integer(RightValue index) static List<RightValue> ExpressionUtility.evaluateExpressionList(Interpreter interpreter, ExpressionList expressionList) static Object[]ExpressionUtility.getObjectArray(List<RightValue> args, Method method, Interpreter interpreter) static ObjectReflectionUtility.invoke(Interpreter interpreter, String symbolicName, Method method, Object object, List<RightValue> args) Invoke themethodon theobjectusing theargs. -
Uses of ScriptBasicException in com.scriptbasic.utility.functions
Methods in com.scriptbasic.utility.functions that throw ScriptBasicExceptionModifier and TypeMethodDescriptionstatic Numberstatic voidThrow an exception causing BASIC runtime error if the assertion fails.static LocalDateReturns a date containing a date to which a specified time interval has been added.static longReturns a Variant (Long) specifying the number of time intervals between two specified dates.static BasicDateValueDateFunctions.dateserial(Integer year, Integer month, Integer dayOfMonth) Returns a Date for a specified year, month, and day.static IntegerReturns a Integer specifying a whole number between 1 and 31, inclusive, representing the day of the month.static voidThrow an exception causing BASIC runtime error.static IntegerReturns a Integer specifying a whole number between 1 and 12, inclusive, representing the month of the year.static IntegerReturns a Integer containing a whole number representing the year. -
Uses of ScriptBasicException in com.scriptbasic.utility.functions.file
Methods in com.scriptbasic.utility.functions.file that throw ScriptBasicException