org.eclipse.xtend.lib.annotations.Delegate Java Examples
The following examples show how to use
org.eclipse.xtend.lib.annotations.Delegate.
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: SARLValidator.java From sarl with Apache License 2.0 | 5 votes |
/** Replies if the given annotation is an active annotation for object-oriented elements. * * @param annotation the annotation. * @return {@code true} if the annotation should be used only for OO elements. * @see #isAOActiveAnnotation(XAnnotation) */ @SuppressWarnings("static-method") protected boolean isOOActiveAnnotation(XAnnotation annotation) { final String name = annotation.getAnnotationType().getQualifiedName(); return Strings.equal(Accessors.class.getName(), name) || Strings.equal(Data.class.getName(), name) || Strings.equal(Delegate.class.getName(), name) || Strings.equal(ToString.class.getName(), name); }
Example #2
Source File: GeneratorNodeProcessor.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@Delegate public ITextRegionWithLineInformation getDelegate() { if (delegate == null) { throw new IllegalStateException("region not completed"); } return delegate; }
Example #3
Source File: DelegateProcessor.java From xtext-lib with Eclipse Public License 2.0 | 5 votes |
public Iterable<? extends MemberDeclaration> getDelegates(final TypeDeclaration it) { final Function1<MemberDeclaration, Boolean> _function = (MemberDeclaration it_1) -> { AnnotationReference _findAnnotation = it_1.findAnnotation(this.context.findTypeGlobally(Delegate.class)); return Boolean.valueOf((_findAnnotation != null)); }; return IterableExtensions.filter(it.getDeclaredMembers(), _function); }
Example #4
Source File: TransformationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public ProblemSupport getProblemSupport() { return this.unit.getProblemSupport(); }
Example #5
Source File: InferredTypeReferenceImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public TypeReference throwInferredTypeException(final String methodName) { String _message = this.message(methodName); throw new IllegalStateException(_message); }
Example #6
Source File: RegisterGlobalsContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public TypeLookupImpl getTypeLookup() { return this.compilationUnit.getTypeLookup(); }
Example #7
Source File: RegisterGlobalsContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public FileLocations getFileLocations() { return this.compilationUnit.getFileLocations(); }
Example #8
Source File: RegisterGlobalsContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public FileSystemSupport getFileSystemSupport() { return this.compilationUnit.getFileSystemSupport(); }
Example #9
Source File: TransformationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public Associator getAssociator() { return this.unit.getAssociator(); }
Example #10
Source File: TransformationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public Tracability getTracability() { return this.unit.getTracability(); }
Example #11
Source File: TransformationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public FileLocations getFileLocations() { return this.unit.getFileLocations(); }
Example #12
Source File: TransformationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public FileSystemSupport getFileSystemSupport() { return this.unit.getFileSystemSupport(); }
Example #13
Source File: TransformationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public AnnotationReferenceProvider getAnnotationReferenceProvider() { return this.unit.getAnnotationReferenceProvider(); }
Example #14
Source File: TransformationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public TypeReferenceProvider getTypeReferenceProvider() { return this.unit.getTypeReferenceProvider(); }
Example #15
Source File: TransformationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public TypeLookup getTypeLookup() { return this.unit.getTypeLookup(); }
Example #16
Source File: ValidationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public Tracability getTracability() { return this.unit.getTracability(); }
Example #17
Source File: ValidationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public FileLocations getFileLocations() { return this.unit.getFileLocations(); }
Example #18
Source File: ValidationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public FileSystemSupport getFileSystemSupport() { return this.unit.getFileSystemSupport(); }
Example #19
Source File: ValidationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public AnnotationReferenceProvider getAnnotationReferenceProvider() { return this.unit.getAnnotationReferenceProvider(); }
Example #20
Source File: ValidationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public TypeReferenceProvider getTypeReferenceProvider() { return this.unit.getTypeReferenceProvider(); }
Example #21
Source File: ValidationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public TypeLookup getTypeLookup() { return this.unit.getTypeLookup(); }
Example #22
Source File: ValidationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public ProblemSupport getProblemSupport() { return this.unit.getProblemSupport(); }
Example #23
Source File: CodeGenerationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public Tracability getTracability() { return this.unit.getTracability(); }
Example #24
Source File: CodeGenerationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public GlobalTypeLookup getGlobalTypeLookup() { return this.unit.getTypeLookup(); }
Example #25
Source File: CodeGenerationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public MutableFileSystemSupport getFileSystemSupport() { return this.unit.getFileSystemSupport(); }
Example #26
Source File: CodeGenerationContextImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Delegate public FileLocations getFileLocations() { return this.unit.getFileLocations(); }
Example #27
Source File: DelegateProcessor.java From xtext-lib with Eclipse Public License 2.0 | 4 votes |
public Set<TypeReference> listedInterfaces(final MemberDeclaration it) { return IterableExtensions.<TypeReference>toSet(((Iterable<TypeReference>)Conversions.doWrapArray(it.findAnnotation(this.context.findTypeGlobally(Delegate.class)).getClassArrayValue("value")))); }