org.eclipse.xtext.generator.parser.antlr.splitting
Class UnorderedGroupsSplitter

java.lang.Object
  extended by org.eclipse.xtext.generator.parser.antlr.splitting.UnorderedGroupsSplitter

public class UnorderedGroupsSplitter
extends java.lang.Object

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
UnorderedGroupsSplitter(java.lang.String content)
           
 
Method Summary
protected  java.lang.String addPreAndPostfix(java.lang.String line, int braceIdx, java.lang.String fixedLine)
           
protected  org.eclipse.emf.ecore.resource.Resource getResource(java.lang.String input, IResourceFactory resourceFactory)
           
protected  java.lang.String saveResource(org.eclipse.emf.ecore.resource.Resource resource)
           
 boolean shouldSimplify(java.lang.String line)
           
 java.lang.String transform()
           
protected  java.lang.String transformContent(IResourceFactory resourceFactory)
           
 java.lang.String transfromLine(java.lang.String line, IResourceFactory resourceFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnorderedGroupsSplitter

public UnorderedGroupsSplitter(java.lang.String content)
Method Detail

transform

public java.lang.String transform()

transformContent

protected java.lang.String transformContent(IResourceFactory resourceFactory)

transfromLine

public java.lang.String transfromLine(java.lang.String line,
                                      IResourceFactory resourceFactory)
                               throws java.io.IOException
Throws:
java.io.IOException

addPreAndPostfix

protected java.lang.String addPreAndPostfix(java.lang.String line,
                                            int braceIdx,
                                            java.lang.String fixedLine)

saveResource

protected java.lang.String saveResource(org.eclipse.emf.ecore.resource.Resource resource)
                                 throws java.io.IOException
Throws:
java.io.IOException

getResource

protected org.eclipse.emf.ecore.resource.Resource getResource(java.lang.String input,
                                                              IResourceFactory resourceFactory)
                                                       throws java.io.IOException
Throws:
java.io.IOException

shouldSimplify

public boolean shouldSimplify(java.lang.String line)