Class AggregatedElements


  • public final class AggregatedElements
    extends java.lang.Object
    Utility class for aggregating metadata.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<com.squareup.javapoet.ClassName> aggregatedElementProxyName​(javax.lang.model.element.TypeElement aggregatedElement)
      Returns the class name of the proxy or Optional.empty() if a proxy is not needed.
      static com.google.common.collect.ImmutableSet<javax.lang.model.element.TypeElement> from​(java.lang.String aggregatingPackage, com.squareup.javapoet.ClassName aggregatingAnnotation, javax.lang.model.util.Elements elements)
      Returns all aggregated elements in the aggregating package after validating them.
      static com.google.common.collect.ImmutableSet<javax.lang.model.element.TypeElement> unwrapProxies​(com.google.common.collect.ImmutableSet<javax.lang.model.element.TypeElement> aggregatedElements, javax.lang.model.util.Elements elements)
      Returns back the set of input aggregatedElements with all proxies unwrapped.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • aggregatedElementProxyName

        public static java.util.Optional<com.squareup.javapoet.ClassName> aggregatedElementProxyName​(javax.lang.model.element.TypeElement aggregatedElement)
        Returns the class name of the proxy or Optional.empty() if a proxy is not needed.
      • unwrapProxies

        public static com.google.common.collect.ImmutableSet<javax.lang.model.element.TypeElement> unwrapProxies​(com.google.common.collect.ImmutableSet<javax.lang.model.element.TypeElement> aggregatedElements,
                                                                                                                 javax.lang.model.util.Elements elements)
        Returns back the set of input aggregatedElements with all proxies unwrapped.
      • from

        public static com.google.common.collect.ImmutableSet<javax.lang.model.element.TypeElement> from​(java.lang.String aggregatingPackage,
                                                                                                        com.squareup.javapoet.ClassName aggregatingAnnotation,
                                                                                                        javax.lang.model.util.Elements elements)
        Returns all aggregated elements in the aggregating package after validating them.