Top Inners Constructors Methods
org.eclipse.xtend.lib.annotations

public Class DelegateProcessor

extends Object
implements TransformationParticipant<MutableMemberDeclaration>
Class Inheritance
All Implemented Interfaces
org.eclipse.xtend.lib.macro.TransformationParticipant
Annotations
@Beta
@SuppressWarnings:all
Imports
com.google.common.annotations.Beta, com.google.common.collect.Iterables, .Sets, java.util.Arrays, .Collections, .HashMap, .LinkedHashSet, .List, .Map, .Objects, .Set, java.util.function.Consumer, org.eclipse.xtend.lib.macro.TransformationContext, .TransformationParticipant, org.eclipse.xtend.lib.macro.declaration.AnnotationReference, .FieldDeclaration, .InterfaceDeclaration, .MemberDeclaration, .MethodDeclaration, .MutableMemberDeclaration, .MutableMethodDeclaration, .MutableTypeParameterDeclaration, .ParameterDeclaration, .ResolvedMethod, .ResolvedParameter, .ResolvedTypeParameter, .Type, .TypeDeclaration, .TypeReference, org.eclipse.xtend2.lib.StringConcatenation, .StringConcatenationClient, org.eclipse.xtext.xbase.lib.CollectionLiterals, .Conversions, .Extension, .Functions.Function1, .Functions.Function2, .IterableExtensions, .ListExtensions, .Procedures.Procedure1, .XbaseGenerated

Since
2.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DelegateProcessorback to summary
public DelegateProcessor()

Method Detail

doTransformback to summary
public void doTransform(final List<? extends MutableMemberDeclaration> elements, final TransformationContext context)

Implements org.eclipse.xtend.lib.macro.TransformationParticipant.doTransform.

Doc from org.eclipse.xtend.lib.macro.TransformationParticipant.doTransform.

Invoked by the compiler

Annotations
@Override
org.eclipse.xtend.lib.annotations back to summary

public Class DelegateProcessor.Util

extends Object
Class Inheritance
Annotations
@Beta

Since
2.7

Field Summary

Modifier and TypeField and Description
private TransformationContext

Constructor Summary

AccessConstructor and Description
public
Util(final TransformationContext context)

Method Summary

Modifier and TypeMethod and Description
protected CharSequence
protected CharSequence
protected TypeReference
protected TypeReference
protected boolean
protected boolean
public boolean
private void
public CharSequence
public Set<TypeReference>
public Iterable<? extends MemberDeclaration>
public Set<TypeReference>
public Set<ResolvedMethod>
public TypeReference
public boolean
public boolean
public boolean
public MutableMethodDeclaration
implementMethod(final MutableMemberDeclaration delegate, final ResolvedMethod resolvedMethod)

public boolean
public boolean
public boolean
public Set<TypeReference>
public Iterable<? extends MemberDeclaration>
public TypeReference
replace(final TypeReference target, final Map<? extends TypeReference, ? extends TypeReference> mappings)

public TypeReference
replace(final TypeReference target, final TypeReference oldType, final TypeReference newType)

public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private TransformationContext context
Annotations
@Extension

Constructor Detail

Utilback to summary
public Util(final TransformationContext context)

Method Detail

_delegateAccessback to summary
protected CharSequence _delegateAccess(final FieldDeclaration it, final MethodDeclaration method)
_delegateAccessback to summary
protected CharSequence _delegateAccess(final MethodDeclaration it, final MethodDeclaration method)
_getTypeback to summary
protected TypeReference _getType(final FieldDeclaration it)
_getTypeback to summary
protected TypeReference _getType(final MethodDeclaration it)
_isValidDelegateback to summary
protected boolean _isValidDelegate(final FieldDeclaration it)
_isValidDelegateback to summary
protected boolean _isValidDelegate(final MethodDeclaration it)
areListedInterfacesValidback to summary
public boolean areListedInterfacesValid(final MemberDeclaration delegate)
collectAllSuperTypesback to summary
private void collectAllSuperTypes(final TypeReference it, final Set<TypeReference> seen)
delegateAccessback to summary
public CharSequence delegateAccess(final MemberDeclaration it, final MethodDeclaration method)
Annotations
@XbaseGenerated
getDelegatedInterfacesback to summary
public Set<TypeReference> getDelegatedInterfaces(final MemberDeclaration delegate)
getDelegatesback to summary
public Iterable<? extends MemberDeclaration> getDelegates(final TypeDeclaration it)
getImplementedInterfacesback to summary
public Set<TypeReference> getImplementedInterfaces(final TypeReference it)
getMethodsToImplementback to summary
public Set<ResolvedMethod> getMethodsToImplement(final MemberDeclaration delegate)
getTypeback to summary
public TypeReference getType(final MemberDeclaration it)
Annotations
@XbaseGenerated
hasDelegationConflictsback to summary
public boolean hasDelegationConflicts(final MemberDeclaration delegate)
hasValidSignatureback to summary
public boolean hasValidSignature(final MethodDeclaration it)
hasValidTypeback to summary
public boolean hasValidType(final MemberDeclaration it)
implementMethodback to summary
public MutableMethodDeclaration implementMethod(final MutableMemberDeclaration delegate, final ResolvedMethod resolvedMethod)
isObjectMethodback to summary
public boolean isObjectMethod(final ResolvedMethod it)
isStaticback to summary
public boolean isStatic(final ResolvedMethod it)
isValidDelegateback to summary
public boolean isValidDelegate(final MemberDeclaration it)
Annotations
@XbaseGenerated
listedInterfacesback to summary
public Set<TypeReference> listedInterfaces(final MemberDeclaration it)
otherDelegatesback to summary
public Iterable<? extends MemberDeclaration> otherDelegates(final MemberDeclaration delegate)
replaceback to summary
public TypeReference replace(final TypeReference target, final Map<? extends TypeReference, ? extends TypeReference> mappings)
replaceback to summary
public TypeReference replace(final TypeReference target, final TypeReference oldType, final TypeReference newType)
returnIfNeededback to summary
public String returnIfNeeded(final ResolvedMethod it)