Пример #1
0
 @Override
 public Stream<TypeInfo> declaredTypeInfoStream() {
   return element
       .getEnclosedElements()
       .stream()
       .filter(el -> Util.isTypeInfoKind(el))
       .map(TypeElement.class::cast)
       .map(el -> TypeInfoTypeElement.wrap(processingEnv, el));
 }
Пример #2
0
 /**
  * {@inheritDoc} This implementation scans the enclosed elements.
  *
  * @param e {@inheritDoc}
  * @param p {@inheritDoc}
  * @return the result of scanning
  */
 public R visitPackage(PackageElement e, P p) {
   return scan(e.getEnclosedElements(), p);
 }