|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.compiler.tools.common.Utils
public abstract class Utils
This class defines severals utilities methods used in source code
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static void |
kopi_assert(boolean b)
Check if an assertion is valid |
static String[] |
splitQualifiedName(String name)
Splits a string like: "java/lang/System/out" into two strings: "java/lang/System" and "out" |
static String[] |
splitQualifiedName(String name,
char separator)
Splits a string like: "java/lang/System/out" into two strings: "java/lang/System" and "out" |
static Object[] |
toArray(Vector vect,
Class type)
Creates a typed array from a vector. |
static int[] |
toIntArray(Vector vect)
Creates a int array from a vector. |
static Vector<Object> |
toVector(Object[] array)
Creates a vector and fills it with the elements of the specified array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static final void kopi_assert(boolean b)
RuntimeException
- the entire token referencepublic static Vector<Object> toVector(Object[] array)
array
- the array of elementspublic static Object[] toArray(Vector vect, Class type)
vect
- the vector containing the elementstype
- the type of the elementspublic static int[] toIntArray(Vector vect)
vect
- the vector containing the elementspublic static String[] splitQualifiedName(String name, char separator)
public static String[] splitQualifiedName(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |