public class ExpressionDependencies extends Object implements Streamable<ExpressionDependencies.ExpressionDependency>
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpressionDependencies.ExpressionDependency
Value object to describe a dependency to a method or property/field that is referenced from a SpEL expression.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitand, and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, of, stream, toList, toSet, toStreamable, toStreamableforEach, spliteratorpublic static ExpressionDependencies none()
ExpressionDependencies object.public static ExpressionDependencies of(Collection<ExpressionDependencies.ExpressionDependency> dependencies)
ExpressionDependencies holding the given dependencies or
none if the collection is empty.public static ExpressionDependencies merged(Iterable<ExpressionDependencies> dependencies)
ExpressionDependencies object representing the merged collection of dependencies withing the given ExpressionDependencies collection.ExpressionDependencies holding a set of merged dependencies or
none if the given Iterable is empty.public static ExpressionDependencies discover(Expression expression)
expression root.expression - the SpEL expression to inspect.ExpressionDependencies.public static ExpressionDependencies discover(SpelNode root, boolean topLevelOnly)
expression root.root - the SpEL expression to inspect.topLevelOnly - whether to include top-level dependencies only. Top-level dependencies are dependencies that
indicate the start of a compound expression and required to resolve the next expression item.ExpressionDependencies.public ExpressionDependencies mergeWith(ExpressionDependencies other)
ExpressionDependencies that contains all dependencies from this object and other. The
merged dependencies are guaranteed to not contain duplicates.other - the other ExpressionDependencies object.ExpressionDependencies object.public Iterator<ExpressionDependencies.ExpressionDependency> iterator()
iterator in interface Iterable<ExpressionDependencies.ExpressionDependency>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.