|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xbase.compiler.CompilationTestHelper
public class CompilationTestHelper
Nested Class Summary | |
---|---|
static interface |
CompilationTestHelper.Result
A result contains information about various aspects of a compiled piece of code. |
Constructor Summary | |
---|---|
CompilationTestHelper()
|
Method Summary | |
---|---|
void |
assertCompilesTo(java.lang.CharSequence source,
java.lang.CharSequence expected)
Asserts that the expected code is generated for the given source. |
void |
compile(java.lang.CharSequence source,
IAcceptor<CompilationTestHelper.Result> acceptor)
Parses, validates and compiles the given source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompilationTestHelper()
Method Detail |
---|
public void assertCompilesTo(java.lang.CharSequence source, java.lang.CharSequence expected)
source
- some valid source code written in the language under testexpected
- the expected Java source code.public void compile(java.lang.CharSequence source, IAcceptor<CompilationTestHelper.Result> acceptor)
source
- some code written in the language under test.acceptor
- gets called once for each file generated in IGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |