org.enhydra.xml.xmlc.codegen
Class JavaLang
java.lang.Object
|
+--org.enhydra.xml.xmlc.codegen.JavaLang
- public final class JavaLang
- extends Object
Collection of methods and constants dealing with the Java language.
Field Summary |
static String |
INDENT_STR
Indentation amount, as a string of blanks. |
static char |
lineSeparator
Line seperator to use on this platform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDENT_STR
public static final String INDENT_STR
- Indentation amount, as a string of blanks.
lineSeparator
public static final char lineSeparator
- Line seperator to use on this platform
static void ()
parseClassName
public static String[] parseClassName(String name)
simpleClassName
public static String simpleClassName(Object obj)
simpleClassName
public static String simpleClassName(String className)
getPackageName
public static String getPackageName(String className)
packageNameToFileName
public static String packageNameToFileName(String packageName)
- Convert a package name to a relative platform file name.
packageNameToUnixFileName
public static String packageNameToUnixFileName(String packageName)
- Convert a package name to a relative Unix file name.
createStringConst
public static String createStringConst(String text)
- Generate a Java string constant, quoting `\' and `"' and converting
newlines.
- Parameters:
text
- Text to quote.- Returns:
- The quoted string.
legalJavaIdentifier
public static boolean legalJavaIdentifier(String str)
makeIndent
public static String makeIndent(int len)
- Construct a white-space string of a given length to use
for indentation.
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.