de.uni_paderborn.fujaba.codegen
Class JavaChecker

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.JavaChecker

public class JavaChecker
extends java.lang.Object

Version:
$Revision: 1.2 $ $Date: 2004/10/20 17:49:37 $
Author:
mm

Field Summary
private static JavaChecker instance
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.String[] javaKeywords
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.HashSet javaKeywordsSet
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
private JavaChecker()
          Constructor for class JavaChecker
 
Method Summary
private  void createJavaKeywordsSet()
          No comment provided by developer, please add a comment to improve documentation.
static JavaChecker get()
          No comment provided by developer, please add a comment to improve documentation.
 boolean isValidJavaIdentifier(java.lang.String name)
          checks if the given string is a valid Java identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaKeywords

private final java.lang.String[] javaKeywords
No comment provided by developer, please add a comment to improve documentation.


javaKeywordsSet

private java.util.HashSet javaKeywordsSet
No comment provided by developer, please add a comment to improve documentation.


instance

private static JavaChecker instance
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

JavaChecker

private JavaChecker()
Constructor for class JavaChecker

Method Detail

get

public static JavaChecker get()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

createJavaKeywordsSet

private void createJavaKeywordsSet()
No comment provided by developer, please add a comment to improve documentation.


isValidJavaIdentifier

public boolean isValidJavaIdentifier(java.lang.String name)
checks if the given string is a valid Java identifier.

Parameters:
name - the string to be checked
Returns:
true if the given string is a valid Java identifier, false otherwise.