Uses of Class
com.scriptbasic.api.ScriptBasicException
-
Uses of ScriptBasicException in com.scriptbasic
Methods in com.scriptbasic that throw ScriptBasicException Modifier and Type Method Description REngine.Sub. call()REngine.Sub. call(java.lang.Object... args)ScriptBasicEngine. eval(java.io.File sourceFile)ScriptBasicEngine. eval(java.io.Reader reader)ScriptBasicEngine. eval(java.lang.String sourceCode)ScriptBasicEngine. eval(java.lang.String sourceFileName, SourcePath path)ScriptBasicEngine. eval(java.lang.String sourceName, SourceProvider provider)ScriptBasicEngine. eval(java.lang.String sourceFileName, java.lang.String... path)ScriptBasicEngine. execute()java.lang.ObjectEngine. getVariable(java.lang.String name)java.lang.Iterable<java.lang.String>Engine. getVariablesIterator()ScriptBasicEngine. load(java.io.File sourceFile)ScriptBasicEngine. load(java.io.Reader reader)ScriptBasicEngine. load(java.lang.String sourceCode)ScriptBasicEngine. load(java.lang.String sourceFileName, SourcePath path)ScriptBasicEngine. load(java.lang.String sourceName, SourceProvider provider)ScriptBasicEngine. load(java.lang.String sourceFileName, java.lang.String... path)voidEngine. registerFunction(java.lang.String alias, java.lang.Class<?> klass, java.lang.String methodName, java.lang.Class<?>... argumentTypes)voidEngine. setVariable(java.lang.String name, java.lang.Object value)<R> Subroutine<R>Engine. subroutine(java.lang.Class<R> type, java.lang.String name)<R> Subroutine<R>Engine. subroutine(java.lang.String name)java.lang.Iterable<Subroutine>Engine. subroutines()<T> TEngine. variable(java.lang.Class<T> type, java.lang.String name)java.lang.Iterable<java.lang.String>Engine. variables() -
Uses of ScriptBasicException in com.scriptbasic.api
Methods in com.scriptbasic.api that throw ScriptBasicException Modifier and Type Method Description ScriptBasicScriptBasic.FunctionBuilder.FunctionBuilder2. arguments(java.lang.Class<?>... argumentTypes)RSubroutine. call()Call a subroutine without any argument.RSubroutine. call(java.lang.Object... args)Call the subroutine.ScriptBasicScriptBasic. eval(java.io.File sourceFile)Evaluate the content of a file.ScriptBasicScriptBasic. eval(java.io.Reader reader)Read the content of a stream provided by the reader and interpret this as a BASIC program.ScriptBasicScriptBasic. eval(java.lang.String sourceCode)Evaluate a string as a BASIC program.ScriptBasicScriptBasic. eval(java.lang.String sourceFileName, SourcePath path)Read the content of the file and execute it.ScriptBasicScriptBasic. eval(java.lang.String sourceName, SourceProvider provider)Read the content of the source from the file, db...ScriptBasicScriptBasic. eval(java.lang.String sourceFileName, java.lang.String... path)Read the content of the file and execute it.ScriptBasicScriptBasic. execute()Execute a previously loaded code.java.lang.ObjectScriptBasic. getVariable(java.lang.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.java.lang.Iterable<java.lang.String>ScriptBasic. getVariablesIterator()Deprecated, for removal: This API element is subject to removal in a future version.ScriptBasicScriptBasic.VariableBuilder. is(java.lang.Object value)ScriptBasicScriptBasic. load(java.io.File sourceFile)Evaluate the content of a file.ScriptBasicScriptBasic. load(java.io.Reader reader)Read the content of a stream provided by the reader and interpret this as a BASIC program.ScriptBasicScriptBasic. load(java.lang.String sourceCode)Load a string as a BASIC program.ScriptBasicScriptBasic. load(java.lang.String sourceFileName, SourcePath path)Read the content of the file and execute it.ScriptBasicScriptBasic. load(java.lang.String sourceName, SourceProvider provider)Read the content of the source from the file, db...ScriptBasicScriptBasic. load(java.lang.String sourceFileName, java.lang.String... path)Read the content of the file and execute it.voidScriptBasic. registerFunction(java.lang.String alias, java.lang.Class<?> klass, java.lang.String methodName, java.lang.Class<?>... argumentTypes)voidScriptBasic. setVariable(java.lang.String name, java.lang.Object value)Deprecated.useScriptBasic.variable(String), not for removal.<T> Subroutine<T>ScriptBasic. subroutine(java.lang.Class<T> type, java.lang.String name)Get the subroutine object of a named subroutine.<T> Subroutine<T>ScriptBasic. subroutine(java.lang.String name)Convenience method with the same result as callingScriptBasic.subroutine(Class, String)withObject.classas first argument.java.lang.Iterable<Subroutine>ScriptBasic. subroutines()Get all the subroutine objects in an iterator.<T> TScriptBasic. variable(java.lang.Class<T> type, java.lang.String name)Get the value of a global variable after the BASIC program was executed.java.lang.Iterable<java.lang.String>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 ScriptBasicException Modifier and Type Method Description java.lang.ObjectBasicInterpreter. call(java.lang.String functionName, java.lang.Object[] arguments)voidBasicInterpreter. execute()voidBasicInterpreter. execute(Command startCommand)java.lang.ObjectBasicInterpreter. getVariable(java.lang.String name)voidBasicInterpreter. setVariable(java.lang.String name, java.lang.Object value) -
Uses of ScriptBasicException in com.scriptbasic.executors.commands
Methods in com.scriptbasic.executors.commands that throw ScriptBasicException Modifier and Type Method Description protected 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 java.lang.BooleanAbstractCommandIfKind. theConditionIsTrue(Interpreter interpreter) -
Uses of ScriptBasicException in com.scriptbasic.executors.leftvalues
Methods in com.scriptbasic.executors.leftvalues that throw ScriptBasicException Modifier and Type Method Description voidBasicLeftValue. setValue(RightValue rightValue, Interpreter interpreter) -
Uses of ScriptBasicException in com.scriptbasic.executors.operators
Methods in com.scriptbasic.executors.operators that throw ScriptBasicException Modifier and Type Method Description RightValueAbstractBinaryFullCircuitOperator. evaluate(Interpreter interpreter)RightValueAbstractShortCircuitBinaryOperator. evaluate(Interpreter interpreter)RightValueJavaObjectFieldAccessOperator. evaluate(Interpreter interpreter)RightValueUnaryOperatorMinus. evaluate(Interpreter interpreter)RightValueUnaryOperatorNot. evaluate(Interpreter interpreter)RightValueUnaryOperatorPlus. 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 ScriptBasicException Modifier and Type Method Description RightValueArrayElementAccess. evaluate(Interpreter interpreter)RightValueFunctionCall. evaluate(Interpreter interpreter)RightValueVariableAccess. evaluate(Interpreter interpreter)java.lang.ObjectBasicArrayValue. get(java.lang.Integer index)voidBasicArrayValue. set(java.lang.Integer index, java.lang.Object object)voidBasicArrayValue. setArray(java.lang.Object[] array) -
Uses of ScriptBasicException in com.scriptbasic.interfaces
Subclasses of ScriptBasicException in com.scriptbasic.interfaces Modifier and Type Class Description classBasicRuntimeExceptionThis is the exception that the BASIC program throws when there is some error during the execution.Methods in com.scriptbasic.interfaces that throw ScriptBasicException Modifier and Type Method Description RightValueEvaluator. evaluate(Interpreter interpreter)voidExecutor. execute(Interpreter interpreter)RightValueVariableMap. getVariableValue(java.lang.String variableName)Get the value of a variable.voidLocalVariableMap. registerGlobalVariable(java.lang.String variableName)Register a variable as a global variable.voidLocalVariableMap. registerLocalVariable(java.lang.String variableName)Define the variable as a local variable in a local environment.voidVariableMap. setVariable(java.lang.String variableName, RightValue rightValue)Set the value of the variable.java.lang.BooleanVariableMap. variableDefined(java.lang.String variableName)Checks that a variable exists and has a defined value in this map.java.lang.BooleanVariableMap. variableExists(java.lang.String variableName)Checks that a variable exists in this map. -
Uses of ScriptBasicException in com.scriptbasic.memory
Methods in com.scriptbasic.memory that throw ScriptBasicException Modifier and Type Method Description RightValueBasicLocalVariableMap. getVariableValue(java.lang.String variableName)RightValueMixedBasicVariableMap. getVariableValue(java.lang.String variableName)booleanBasicLocalVariableMap. isGlobal(java.lang.String variableName)booleanBasicLocalVariableMap. isLocal(java.lang.String variableName)voidBasicLocalVariableMap. registerGlobalVariable(java.lang.String variableName)voidMixedBasicVariableMap. registerGlobalVariable(java.lang.String variableName)voidBasicLocalVariableMap. registerLocalVariable(java.lang.String variableName)voidBasicLocalVariableMap. setVariable(java.lang.String variableName, RightValue rightValue)voidMixedBasicVariableMap. setVariable(java.lang.String variableName, RightValue rightValue)java.lang.BooleanBasicLocalVariableMap. variableDefined(java.lang.String variableName)java.lang.BooleanMixedBasicVariableMap. variableDefined(java.lang.String variableName)java.lang.BooleanBasicLocalVariableMap. variableExists(java.lang.String variableName)java.lang.BooleanMixedBasicVariableMap. variableExists(java.lang.String variableName) -
Uses of ScriptBasicException in com.scriptbasic.spi
Methods in com.scriptbasic.spi that throw ScriptBasicException Modifier and Type Method Description java.lang.ObjectInterpreter. call(java.lang.String functionName, java.lang.Object[] arguments)Call a function defined by the program passing the objects as arguments.voidCommand. checkedExecute(Interpreter interpreter)static BasicArrayBasicArray. create(java.lang.Object[] array)voidInterpreter. execute()Execute the program.voidInterpreter. execute(Command startCommand)Execute the program starting at the commandstartCommandjava.lang.ObjectBasicArray. get(java.lang.Integer index)Get theindex-th element of the array.java.lang.ObjectInterpreter. getVariable(java.lang.String name)Get the value of a variable.voidBasicArray. set(java.lang.Integer index, java.lang.Object object)Set the index-th element of the arrayvoidBasicArray. setArray(java.lang.Object[] array)Set the array object.voidLeftValue. setValue(RightValue rightValue, Interpreter interpreter)Assign the value to the left value.voidInterpreter. setVariable(java.lang.String name, java.lang.Object value)Set the value of the variable. -
Uses of ScriptBasicException in com.scriptbasic.utility
Methods in com.scriptbasic.utility that throw ScriptBasicException Modifier and Type Method Description static RightValueExpressionUtility. callBasicFunction(Interpreter interpreter, RightValue[] argumentValues, CommandSub commandSub, java.lang.String functionName)static java.lang.IntegerRightValueUtility. convert2Integer(RightValue index)static java.util.List<RightValue>ExpressionUtility. evaluateExpressionList(Interpreter interpreter, ExpressionList expressionList)static java.lang.Object[]ExpressionUtility. getObjectArray(java.util.List<RightValue> args, java.lang.reflect.Method method, Interpreter interpreter)static java.lang.ObjectReflectionUtility. invoke(Interpreter interpreter, java.lang.String symbolicName, java.lang.reflect.Method method, java.lang.Object object, java.util.List<RightValue> args)Invoke themethodon theobjectusing theargs. -
Uses of ScriptBasicException in com.scriptbasic.utility.functions
Methods in com.scriptbasic.utility.functions that throw ScriptBasicException Modifier and Type Method Description static java.lang.NumberMathFunctions. abs(java.lang.Number x)static voidErrorFunctions. asserT(java.lang.String s, java.lang.Boolean b)Throw an exception causing BASIC runtime error if the assertion fails.static voidErrorFunctions. error(java.lang.String s)Throw an exception causing BASIC runtime error. -
Uses of ScriptBasicException in com.scriptbasic.utility.functions.file
Methods in com.scriptbasic.utility.functions.file that throw ScriptBasicException Modifier and Type Method Description static BasicArrayFileHandlingFunctions. listFiles(java.lang.String fileName)