Package | Description |
---|---|
com.scriptbasic.utility.functions | |
com.scriptbasic.utility.functions.file |
Modifier and Type | Method and Description |
---|---|
static Number |
MathFunctions.abs(Number x) |
static double |
MathFunctions.acos(double x) |
static double |
MathFunctions.asin(double x) |
static void |
ErrorFunctions.asserT(String s,
Boolean b)
Throw an exception causing BASIC runtime error if the assertion fails.
|
static double |
MathFunctions.atan(double x) |
static double |
MathFunctions.atan2(double x,
double y) |
static byte[] |
UtilityFunctions.byteBuffer(int len)
Create a new byte buffer of length
len . |
static double |
MathFunctions.cbrt(double x) |
static double |
MathFunctions.ceil(double x) |
static String |
StringFunctions.charAt(String s1,
int i)
Returns a one character string that contains the character that is at the
position
i in the string s1 . |
static String |
StringFunctions.chomp(String s)
Chop off the new line character(s) from the end of the string.
|
static int |
StringFunctions.codePointAt(String s1,
int i) |
static int |
StringFunctions.codePointBefore(String s1,
int i) |
static int |
StringFunctions.codePointCount(String s1,
int i,
int j) |
static int |
StringFunctions.compareTo(String s1,
String s2) |
static int |
StringFunctions.compareToIgnoreCase(String s1,
String s2) |
static boolean |
StringFunctions.contains(String s1,
String s2) |
static double |
MathFunctions.copySign(double magnitude,
double sign) |
static double |
MathFunctions.cos(double x) |
static double |
MathFunctions.cosh(double x) |
static boolean |
StringFunctions.endsWith(String s1,
String s2) |
static void |
ErrorFunctions.error(String s)
Throw an exception causing BASIC runtime error.
|
static double |
MathFunctions.exp(double a) |
static double |
MathFunctions.expm1(double x) |
static Double |
MathFunctions.floatF(Object s)
Convert a value to floating point.
|
static double |
MathFunctions.floor(double x) |
static Long |
UtilityFunctions.getByte(byte[] buffer,
Long i) |
static Long |
MathFunctions.getExponent(double d) |
static byte[] |
UtilityFunctions.getStringBytes(String s) |
static double |
MathFunctions.hypot(double x,
double y) |
static double |
MathFunctions.IEEEremainder(double f1,
double f2) |
static Long |
StringFunctions.index(String s1,
String s2)
Implements the functionality of the method
s1.indexOf(s2) |
static Long |
StringFunctions.indexAfter(String s1,
String s2,
int i)
Implements the functionality of the method
s1.indexOf(s2,i) |
static Long |
MathFunctions.integer(Object s)
Convert a value to integer.
|
static Boolean |
UtilityFunctions.isDefined(Object s) |
static boolean |
StringFunctions.isEmpty(String s1) |
static Boolean |
UtilityFunctions.isUndef(Object s) |
static Long |
StringFunctions.lastIndex(String s1,
String s2)
Implements the functionality of the method
s1.lastIndexOf(s2) |
static Long |
StringFunctions.lastIndexAfter(String s1,
String s2,
int i)
Implements the functionality of the method
s1.lastIndexOf(s2,i) |
static String |
StringFunctions.lcase(String s)
Return a string lower cased.
|
static Long |
UtilityFunctions.length(Object arg) |
static double |
MathFunctions.log(double x) |
static double |
MathFunctions.log10(double x) |
static double |
MathFunctions.log1p(double x) |
static String |
StringFunctions.ltrim(String s)
Trim the white spaces from the start of the string.
|
static Number |
MathFunctions.max(Number a,
Number b) |
static String |
StringFunctions.mid(String s,
int start,
int len)
Return a substring from the string that starts at the position
start and has a length of len . |
static Number |
MathFunctions.min(Number a,
Number b) |
static Object |
UtilityFunctions.newObject(String klass)
This method can be used to call the default (parameter less) constructor
of a class.
|
static double |
MathFunctions.pow(double a,
double b) |
static double |
MathFunctions.random() |
static String |
StringFunctions.replaceAll(String s1,
String regex,
String s2) |
static String |
StringFunctions.replaceFirst(String s1,
String regex,
String s2) |
static String |
StringFunctions.right(String s,
int len)
Return
len number of characters from the right (the end) of the
string. |
static double |
MathFunctions.rint(double a) |
static double |
MathFunctions.round(double x) |
static String |
StringFunctions.rtrim(String s)
Trim the white spaces from the end of the string.
|
static double |
MathFunctions.scalb(double d,
int scaleFactor) |
static void |
UtilityFunctions.setByte(byte[] buffer,
Long i,
Long v) |
static double |
MathFunctions.signum(double d) |
static double |
MathFunctions.sin(double x) |
static double |
MathFunctions.sinh(double x) |
static String |
StringFunctions.space(int len)
Return a string that is
len number of space characters. |
static double |
MathFunctions.sqrt(double a) |
static boolean |
StringFunctions.startsWith(String s1,
String s2) |
static String |
StringFunctions.string(int len,
String s)
Return a string that is
len times the character in s . |
static String |
UtilityFunctions.stringifyBuffer(byte[] buffer) |
static int |
StringFunctions.strlen(String s1) |
static String |
StringFunctions.strreverse(String s)
Return a string with the characters reversed.
|
static double |
MathFunctions.tan(double x) |
static double |
MathFunctions.tanh(double x) |
static double |
MathFunctions.toDegrees(double angrad) |
static double |
MathFunctions.toRadians(double angdeg) |
static String |
StringFunctions.trim(String s) |
static String |
StringFunctions.ucase(String s)
Return a string upper cased.
|
static Object |
UtilityFunctions.undef()
This function returns the undef value.
|
Modifier and Type | Method and Description |
---|---|
static String |
FileHandlingFunctions.absoluteFileName(String fileName) |
static void |
FileHandlingFunctions.close(FileHandler fh) |
static void |
FileHandlingFunctions.deleteFile(String fileName) |
static boolean |
FileHandlingFunctions.fileCanExecute(String fileName) |
static boolean |
FileHandlingFunctions.fileExists(String fileName) |
static boolean |
FileHandlingFunctions.fileIsExecutable(String fileName) |
static boolean |
FileHandlingFunctions.fileIsReadable(String fileName) |
static boolean |
FileHandlingFunctions.fileIsWritable(String fileName) |
static Long |
FileHandlingFunctions.fileLength(String fileName) |
static Long |
FileHandlingFunctions.freeSpace(String fileName) |
static boolean |
FileHandlingFunctions.isDirectory(String fileName) |
static boolean |
FileHandlingFunctions.isFile(String fileName) |
static boolean |
FileHandlingFunctions.isHidden(String fileName) |
static Long |
FileHandlingFunctions.lastModified(String fileName) |
static BasicArrayValue |
FileHandlingFunctions.listFiles(String fileName) |
static boolean |
FileHandlingFunctions.mkdir(String fileName) |
static FileHandler |
FileHandlingFunctions.open(String fileName,
String mode)
Opens a file and returns a file handler.
|
static String |
FileHandlingFunctions.parentDirectory(String fileName) |
static void |
FileHandlingFunctions.printf(FileHandler fh,
String line) |
static void |
FileHandlingFunctions.printfln(FileHandler fh,
String line) |
static byte[] |
FileHandlingFunctions.read(FileHandler fh,
int len) |
static String |
FileHandlingFunctions.readLine(FileHandler fh) |
static boolean |
FileHandlingFunctions.renameFile(String fileNameFrom,
String fileNameTo) |
static boolean |
FileHandlingFunctions.setExecutable(String fileName,
boolean executable,
boolean ownerOnly) |
static boolean |
FileHandlingFunctions.setLastModified(String fileName,
Long time) |
static boolean |
FileHandlingFunctions.setReadable(String fileName,
boolean readable,
boolean ownerOnly) |
static boolean |
FileHandlingFunctions.setRedOnly(String fileName) |
static boolean |
FileHandlingFunctions.setWritable(String fileName,
boolean writable,
boolean ownerOnly) |
static void |
FileHandlingFunctions.write(FileHandler fh,
byte[] buffer) |
Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.