|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.runtime.SaffronUtil
Miscellaneous utility functions used by generated code.
Constructor Summary | |
SaffronUtil()
|
Method Summary | |
static Class[] |
classesForName(String name)
Looks up a class by name, returns an array of one class if the class is not found, an array of zero classes if not. |
static boolean[] |
copyInto(Collection v,
boolean[] a)
Copies a collection into a boolean array. |
static int[] |
copyInto(Collection v,
int[] a)
Copies a collection into an int array. |
static Object[] |
copyInto(Collection c,
Object[] a)
Copies a collection into an array. |
static boolean[] |
copyInto(Vector v,
boolean[] a)
Copies a vector into a boolean array. |
static int[] |
copyInto(Vector v,
int[] a)
Copies a vector into a int array. |
static Object[] |
copyInto(Vector v,
Object[] a)
Copies a vector into an array. |
static double |
doubleValue(Object o)
Converts an Object to an double. |
static boolean |
equals(Object o,
Object p)
Returns whether two objects are equal or are both null. |
static int |
intValue(Object o)
Converts an Object to an int. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SaffronUtil()
Method Detail |
public static boolean[] copyInto(Vector v, boolean[] a)
boolean
array. Equivalent to Vector.copyInto(java.lang.Object[])
.
public static int[] copyInto(Vector v, int[] a)
int
array. Equivalent to Vector.copyInto(java.lang.Object[])
.
public static Object[] copyInto(Vector v, Object[] a)
a
.
public static boolean[] copyInto(Collection v, boolean[] a)
boolean
array. Equivalent to
Collection.toArray(Object[])
.
public static int[] copyInto(Collection v, int[] a)
int
array. Equivalent to
Collection.toArray(Object[])
.
public static Object[] copyInto(Collection c, Object[] a)
a
.
Equivalent to Collection.toArray(Object[])
.
public static final double doubleValue(Object o)
public static final int intValue(Object o)
public static Class[] classesForName(String name)
public static boolean equals(Object o, Object p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |