com.svincent.smalljava
Class SmallJavaUtil

java.lang.Object
  |
  +--com.svincent.smalljava.SmallJavaUtil

public class SmallJavaUtil
extends java.lang.Object

Various utility methods used by (and to help use) Smalljava.

Author:
Shawn Vincent

Method Summary
static java.lang.String getBytecodeClassname(java.lang.String javaClassname)
          Process the given classname, replacing '.' characters with '/' characters.
static java.lang.String getImplementationVersion()
          Get the implementation version of the current Smalljava package.
static java.lang.String getSpecificationVersion()
          Get the specification version of the current Smalljava package.
static boolean isCompatibleWith(java.lang.String specVersion)
          Returns 'true' if the current Smalljava library being used is compatible with the given version.
static void main(java.lang.String[] args)
           
static void printBanner(java.io.PrintWriter out)
          Prints an informative banner about Smalljava.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isCompatibleWith

public static boolean isCompatibleWith(java.lang.String specVersion)
Returns 'true' if the current Smalljava library being used is compatible with the given version.

For example,

   if (SmallJavaUtil.isCompatibleWith ("2.0"))
     // --- do some 2.0 specific things
 

getSpecificationVersion

public static java.lang.String getSpecificationVersion()
Get the specification version of the current Smalljava package. Returns a string containing decimal integers separated by "."'s. This string may have leading zeros.

getImplementationVersion

public static java.lang.String getImplementationVersion()
Get the implementation version of the current Smalljava package.

printBanner

public static void printBanner(java.io.PrintWriter out)
Prints an informative banner about Smalljava.

getBytecodeClassname

public static java.lang.String getBytecodeClassname(java.lang.String javaClassname)
Process the given classname, replacing '.' characters with '/' characters.

main

public static void main(java.lang.String[] args)



This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.