@Beta public static class DelegateProcessor.Util extends 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 Iterable<? extends MemberDeclaration> otherDelegates(MemberDeclaration delegate)
public boolean areListedInterfacesValid(MemberDeclaration delegate)
public Iterable<? extends MemberDeclaration> getDelegates(TypeDeclaration it)
public Set<TypeReference> listedInterfaces(MemberDeclaration it)
public Set<TypeReference> getImplementedInterfaces(TypeReference it)
public Set<TypeReference> getDelegatedInterfaces(MemberDeclaration delegate)
public Set<ResolvedMethod> getMethodsToImplement(MemberDeclaration delegate)
public boolean isObjectMethod(ResolvedMethod it)
public MutableMethodDeclaration implementMethod(MutableMemberDeclaration delegate, ResolvedMethod resolvedMethod)
public TypeReference replace(TypeReference target, Map<? extends TypeReference,? extends TypeReference> mappings)
public TypeReference replace(TypeReference target, TypeReference oldType, TypeReference newType)
protected CharSequence _delegateAccess(FieldDeclaration it, MethodDeclaration method)
protected CharSequence _delegateAccess(MethodDeclaration it, MethodDeclaration method)
public String returnIfNeeded(ResolvedMethod it)
public boolean isValidDelegate(MemberDeclaration it)
public TypeReference getType(MemberDeclaration it)
public CharSequence delegateAccess(MemberDeclaration it, MethodDeclaration method)
Copyright © 2015. All Rights Reserved.