org.eclipse.emf.codegen.ecore.genmodel.util
Class GenModelUtil

java.lang.Object
  extended byorg.eclipse.emf.codegen.ecore.genmodel.util.GenModelUtil

public class GenModelUtil
extends Object

This class contains convenient static methods for EMF code generation.

This class, like much of the code in this plug-in, is currently undergoing change and should not be considered API.


Method Summary
static Set getJavaDefaultTypes()
          Returns the short names of the primitives and types in java.lang (i.e. those that don't need qualification).
static Set getJavaReservedWords()
          Returns the set of all Java's keywords and textual literals, as of Java 1.4.
static boolean isJavaDefaultType(String s)
          Tests whether the given string is the name of a primitive or java.lang type.
static boolean isJavaLangType(String s)
          Tests whether the given string is the name of a java.lang type.
static boolean isJavaPrimitiveType(String s)
          Tests whether the given string is the name of a primitive type.
static boolean isJavaReservedWord(String s)
          Tests whether a given string is a Java reserved word.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJavaReservedWords

public static Set getJavaReservedWords()
Returns the set of all Java's keywords and textual literals, as of Java 1.4.


getJavaDefaultTypes

public static Set getJavaDefaultTypes()
Returns the short names of the primitives and types in java.lang (i.e. those that don't need qualification).


isJavaReservedWord

public static boolean isJavaReservedWord(String s)
Tests whether a given string is a Java reserved word.


isJavaDefaultType

public static boolean isJavaDefaultType(String s)
Tests whether the given string is the name of a primitive or java.lang type.


isJavaLangType

public static boolean isJavaLangType(String s)
Tests whether the given string is the name of a java.lang type.


isJavaPrimitiveType

public static boolean isJavaPrimitiveType(String s)
Tests whether the given string is the name of a primitive type.


Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.