@Beta
public static class DelegateProcessor.Util
extends java.lang.Object
Constructor and Description |
---|
DelegateProcessor.Util(TransformationContext context) |
public DelegateProcessor.Util(TransformationContext context)
protected boolean _isValidDelegate(FieldDeclaration it)
protected boolean _isValidDelegate(MethodDeclaration it)
public boolean hasValidType(MemberDeclaration it)
protected TypeReference _getType(FieldDeclaration it)
protected TypeReference _getType(MethodDeclaration it)
public boolean hasValidSignature(MethodDeclaration it)
public boolean hasDelegationConflicts(MemberDeclaration delegate)
public java.lang.Iterable<? extends MemberDeclaration> otherDelegates(MemberDeclaration delegate)
public boolean areListedInterfacesValid(MemberDeclaration delegate)
public java.lang.Iterable<? extends MemberDeclaration> getDelegates(TypeDeclaration it)
public java.util.Set<TypeReference> listedInterfaces(MemberDeclaration it)
public java.util.Set<TypeReference> getImplementedInterfaces(TypeReference it)
public java.util.Set<TypeReference> getDelegatedInterfaces(MemberDeclaration delegate)
public java.util.Set<ResolvedMethod> getMethodsToImplement(MemberDeclaration delegate)
public boolean isObjectMethod(ResolvedMethod it)
public MutableMethodDeclaration implementMethod(MutableMemberDeclaration delegate, ResolvedMethod resolvedMethod)
public TypeReference replace(TypeReference target, java.util.Map<? extends TypeReference,? extends TypeReference> mappings)
public TypeReference replace(TypeReference target, TypeReference oldType, TypeReference newType)
protected java.lang.CharSequence _delegateAccess(FieldDeclaration it, MethodDeclaration method)
protected java.lang.CharSequence _delegateAccess(MethodDeclaration it, MethodDeclaration method)
public java.lang.String returnIfNeeded(ResolvedMethod it)
public boolean isValidDelegate(MemberDeclaration it)
public TypeReference getType(MemberDeclaration it)
public java.lang.CharSequence delegateAccess(MemberDeclaration it, MethodDeclaration method)