Package smetana.core
Class JUtils
- java.lang.Object
-
- smetana.core.JUtils
-
public class JUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
USHRT_MAX
-
Constructor Summary
Constructors Constructor Description JUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
abs(double x)
static double
atan2(double a, double b)
static double
atof(CString str)
static int
atoi(CString s)
static double
cos(double x)
static StarStruct
create(java.lang.Class theClass, StarStruct parent)
static int
enumAsInt(java.lang.Class enumClass, java.lang.String name)
static boolean
EQ(java.lang.Object o1, java.lang.Object o2)
static <C extends __ptr__>
__struct__<C>from(java.lang.Class<C> theClass)
static CFunction
function(java.lang.Class codingClass, java.lang.String name)
static CString
getenv(CString var)
static boolean
isdigit(char c)
static void
LOG(java.lang.String s)
static void
LOG2(java.lang.String s)
static int
memcmp(__ptr__ s1, __ptr__ s2, int sz)
static void
memset(__ptr__ obj, int value, size_t nbytes)
static boolean
NEQ(java.lang.Object o1, java.lang.Object o2)
static double
pow(double a, double b)
static void
printDebugEdge(ST_Agedge_s e)
static void
qsort(__ptr__ array, int nb, CFunction compare)
static int
setjmp(jmp_buf jmp)
static double
sin(double x)
static size_t
size_t_array_of_integer(int nb)
static size_t
sizeof(java.lang.Class cl)
static size_t
sizeof(java.lang.String name, int sz)
static double
sqrt(double x)
static CString
strchr(CString str, char c)
static int
strcmp(CString s1, CString s2)
static int
strlen(CString s)
static int
strncmp(CString s1, CString s2, int n)
static void
strncpy(CString destination, CString source, int nb)
static CString
strstr(CString s1, CString s2)
static double
strtod(CString str, CString[] endptr)
static int
strtol(CString str, CString[] endptr, int base)
static char
tolower(char c)
-
-
-
Method Detail
-
sizeof
public static size_t sizeof(java.lang.Class cl)
-
sizeof
public static size_t sizeof(java.lang.String name, int sz)
-
size_t_array_of_integer
public static size_t size_t_array_of_integer(int nb)
-
atof
public static double atof(CString str)
-
strlen
public static int strlen(CString s)
-
abs
public static double abs(double x)
-
cos
public static double cos(double x)
-
sin
public static double sin(double x)
-
sqrt
public static double sqrt(double x)
-
atan2
public static double atan2(double a, double b)
-
pow
public static double pow(double a, double b)
-
isdigit
public static boolean isdigit(char c)
-
atoi
public static int atoi(CString s)
-
tolower
public static char tolower(char c)
-
function
public static CFunction function(java.lang.Class codingClass, java.lang.String name)
-
enumAsInt
public static int enumAsInt(java.lang.Class enumClass, java.lang.String name)
-
LOG
public static void LOG(java.lang.String s)
-
LOG2
public static void LOG2(java.lang.String s)
-
EQ
public static boolean EQ(java.lang.Object o1, java.lang.Object o2)
-
NEQ
public static boolean NEQ(java.lang.Object o1, java.lang.Object o2)
-
setjmp
public static int setjmp(jmp_buf jmp)
-
printDebugEdge
public static void printDebugEdge(ST_Agedge_s e)
-
from
public static <C extends __ptr__> __struct__<C> from(java.lang.Class<C> theClass)
-
create
public static StarStruct create(java.lang.Class theClass, StarStruct parent)
-
-