public class ComponentAstPredicatesFactory extends Object
ComponentAsts.| Modifier and Type | Method and Description |
|---|---|
static Predicate<List<ComponentAst>> |
currentElemement(Predicate<ComponentAst> currentElementPredicate)
Filter a component hierarchy by evaluating the provided component against the last hierarchy element.
|
static Predicate<ComponentAst> |
equalsComponentId(String componentId)
|
static Predicate<ComponentAst> |
equalsIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier)
Filter
ComponentAst with equals ComponentIdentifier |
static Predicate<ComponentAst> |
equalsLocation(org.mule.runtime.api.component.location.ComponentLocation location)
Filter
ComponentAst with equals ComponentLocation |
static Predicate<ComponentAst> |
equalsNamespace(String namespace)
Filter
ComponentAst with equals identifier namespace |
static Predicate<List<ComponentAst>> |
topLevelElement()
Filter component hierarchies that represent just a top-level component.
|
public static Predicate<ComponentAst> equalsIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier)
ComponentAst with equals ComponentIdentifieridentifier - the ComponentIdentifier to check for.identifierpublic static Predicate<ComponentAst> equalsComponentId(String componentId)
componentId - the componentId to check for.componentIdpublic static Predicate<ComponentAst> equalsNamespace(String namespace)
ComponentAst with equals identifier namespacenamespace - the namespace to check for.identifierpublic static Predicate<ComponentAst> equalsLocation(org.mule.runtime.api.component.location.ComponentLocation location)
ComponentAst with equals ComponentLocationlocation - the ComponentLocation to check for.locationpublic static Predicate<List<ComponentAst>> topLevelElement()
public static Predicate<List<ComponentAst>> currentElemement(Predicate<ComponentAst> currentElementPredicate)
currentElementPredicate - the predicate to apply to the last element of the component hierarchy being inspected.Copyright © 2022 MuleSoft, Inc.. All rights reserved.