|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdods.dap.Util
The Util class holds static methods used by this package.
| Constructor Summary | |
(package private) |
Util()
|
| Method Summary | |
(package private) static String |
escattr(String s)
This function escapes non-printable characters and quotes. |
(package private) static String[] |
sortedNames(Vector v)
Takes a Vector of BaseTypes, retrieves their
names into an array of Strings, and performs a Quick Sort
on that array. |
(package private) static void |
uniqueNames(Vector v,
String varName,
String typeName)
Compares elements in a Vector of BaseTypes and
throw a BadSemanticsException if there are any
duplicate elements. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
Util()
| Method Detail |
static void uniqueNames(Vector v,
String varName,
String typeName)
throws BadSemanticsException
Vector of BaseTypes and
throw a BadSemanticsException if there are any
duplicate elements.
v - The Vector to checkvarName - the name of the variable which called ustypeName - the type name of the variable which called us
BadSemanticsException - if there are duplicate elements
IndexOutOfBoundsException - if size doesn't match the number
of elements in the Enumeration
static String[] sortedNames(Vector v)
throws BadSemanticsException
Vector of BaseTypes, retrieves their
names into an array of Strings, and performs a Quick Sort
on that array.
v - The Vector to check
String
BadSemanticsException - if there is an element with no namestatic String escattr(String s)
printVal output DString data in the
same way as the C++ version. Since Java supports Unicode, this will
need to be altered if it's desired to print DString as
UTF-8 or some other character encoding.
s - the input String.
String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||