Top Description Inners Methods
org.eclipse.xtend.lib.macro.declaration

public Interface CompilationStrategy

Annotations
@Beta
Imports
com.google.common.annotations.Beta

A compilation strategy can be assigned instead of an expression see {MutableExecutableDeclaration. It's used to take control over generating Java statements and expressions directly.
Author
Sven Efftinge

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
CompilationStrategy.CompilationContext

A strategy provided during compilation.

Method Summary

Modifier and TypeMethod and Description
public CharSequence

Returns:

the Java code
compile
(CompilationStrategy.CompilationContext
- a compilation context, providing useful services.
ctx
)

call back method invoked during compliation

Method Detail

compileback to summary
public CharSequence compile(CompilationStrategy.CompilationContext ctx)

call back method invoked during compliation

Parameters
ctx:CompilationStrategy.CompilationContext

- a compilation context, providing useful services.

Returns:CharSequence

the Java code

org.eclipse.xtend.lib.macro.declaration back to summary

public Interface CompilationStrategy.CompilationContext


A strategy provided during compilation.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the serialized form of the type reference, taking imports into account.
toJavaCode
(TypeReference
the type reference to serialize
typeref
)

Method Detail

toJavaCodeback to summary
public String toJavaCode(TypeReference typeref)
Parameters
typeref:TypeReference

the type reference to serialize

Returns:String

the serialized form of the type reference, taking imports into account.