org.eclipse.xtext.generator.parser.antlr.splitting
Class UnorderedGroupsSplitter
java.lang.Object
org.eclipse.xtext.generator.parser.antlr.splitting.UnorderedGroupsSplitter
public class UnorderedGroupsSplitter
- extends java.lang.Object
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnorderedGroupsSplitter
public UnorderedGroupsSplitter(java.lang.String content)
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)