org.eclipse.xtext.generator.grammarAccess
Class GrammarAccessUtil

java.lang.Object
  extended by org.eclipse.xtext.generator.grammarAccess.GrammarAccessUtil

public class GrammarAccessUtil
extends java.lang.Object

Author:
Moritz Eysholdt

Constructor Summary
GrammarAccessUtil()
           
 
Method Summary
static java.lang.String getClassName(org.eclipse.emf.ecore.EObject obj)
           
static java.lang.String getGrammarAccessFQName(Grammar grammar, Naming naming)
           
static java.lang.String getUniqueElementName(AbstractElement ele)
           
static boolean isValidJavaLatinIdentifier(boolean start, char c)
           
static java.lang.String serialize(org.eclipse.emf.ecore.EObject obj, java.lang.String prefix)
           
static java.lang.String toJavaIdentifier(java.lang.String text, java.lang.Boolean uppercaseFirst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrammarAccessUtil

public GrammarAccessUtil()
Method Detail

getClassName

public static java.lang.String getClassName(org.eclipse.emf.ecore.EObject obj)

serialize

public static java.lang.String serialize(org.eclipse.emf.ecore.EObject obj,
                                         java.lang.String prefix)

getGrammarAccessFQName

public static java.lang.String getGrammarAccessFQName(Grammar grammar,
                                                      Naming naming)

getUniqueElementName

public static java.lang.String getUniqueElementName(AbstractElement ele)

isValidJavaLatinIdentifier

public static boolean isValidJavaLatinIdentifier(boolean start,
                                                 char c)

toJavaIdentifier

public static java.lang.String toJavaIdentifier(java.lang.String text,
                                                java.lang.Boolean uppercaseFirst)