Java Code Examples for org.eclipse.xtend.lib.macro.RegisterGlobalsContext#registerInterface()
The following examples show how to use
org.eclipse.xtend.lib.macro.RegisterGlobalsContext#registerInterface() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AddNestedTypesProcessor.java From xtext-xtend with Eclipse Public License 2.0 | 6 votes |
@Override public void doRegisterGlobals(final List<? extends TypeDeclaration> annotatedSourceElements, final RegisterGlobalsContext context) { for (final TypeDeclaration type : annotatedSourceElements) { { String _qualifiedName = type.getQualifiedName(); String _plus = (_qualifiedName + ".NestedClass"); context.registerClass(_plus); String _qualifiedName_1 = type.getQualifiedName(); String _plus_1 = (_qualifiedName_1 + ".NestedInterface"); context.registerInterface(_plus_1); String _qualifiedName_2 = type.getQualifiedName(); String _plus_2 = (_qualifiedName_2 + ".NestedAnnotationType"); context.registerAnnotationType(_plus_2); String _qualifiedName_3 = type.getQualifiedName(); String _plus_3 = (_qualifiedName_3 + ".NestedEnumerationType"); context.registerEnumerationType(_plus_3); } } }
Example 2
Source File: ExtractProcessor.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public void doRegisterGlobals(final ClassDeclaration annotatedClass, final RegisterGlobalsContext context) { context.registerInterface(this.getInterfaceName(annotatedClass)); }
Example 3
Source File: AddInterfaceWithDefaultProcessor.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public void doRegisterGlobals(final ClassDeclaration annotatedClass, final RegisterGlobalsContext context) { context.registerInterface("de.test.Test"); }
Example 4
Source File: AnnotationWithNestedEnumProcessor.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public void doRegisterGlobals(final ClassDeclaration annotatedClass, final RegisterGlobalsContext context) { context.registerInterface(this.getInterfaceName(annotatedClass)); }
Example 5
Source File: AddInterfaceProcessor.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public void doRegisterGlobals(final ClassDeclaration annotatedClass, final RegisterGlobalsContext context) { context.registerInterface("de.test.Test"); }