Uses of Class
org.terracotta.context.query.Matcher
-
Packages that use Matcher Package Description org.terracotta.context.query -
-
Uses of Matcher in org.terracotta.context.query
Methods in org.terracotta.context.query that return Matcher Modifier and Type Method Description static <T> Matcher<T>Matchers. allOf(Matcher<? super T>... matchers)Returns a matcher that matches when against objects which match all of the supplied matchers.static <T> Matcher<T>Matchers. anyOf(Matcher<? super T>... matchers)Returns a matcher that matches when against objects which match any of the supplied matchers.static Matcher<ContextElement>Matchers. attributes(Matcher<Map<String,Object>> matcher)Returns a matcher that matches context elements whoseContextElement.attributes()match against the supplied matcher.static Matcher<TreeNode>Matchers. context(Matcher<ContextElement> matcher)Returns a matcher that matches tree nodes whoseTreeNode.getContext()match against the supplied matcher.static Matcher<Map<String,Object>>Matchers. hasAttribute(String key, Object value)Returns a matcher that matches attribute maps that include the given attribute entry.static Matcher<Map<String,Object>>Matchers. hasAttribute(String key, Matcher<? extends Object> value)Returns a matcher that matches attribute maps the include an attribute with the given name, and whose value matches the given matcher.static Matcher<ContextElement>Matchers. identifier(Matcher<Class<?>> matcher)Returns a matcher that matches context elements whoseContextElement.identifier()match against the supplied matcher.static <T> Matcher<T>Matchers. not(Matcher<T> matcher)static Matcher<Class<?>>Matchers. subclassOf(Class<?> klazz)Returns a matcher that matches classes that are sub-types of the supplied class.Methods in org.terracotta.context.query with parameters of type Matcher Modifier and Type Method Description static <T> Matcher<T>Matchers. allOf(Matcher<? super T>... matchers)Returns a matcher that matches when against objects which match all of the supplied matchers.static <T> Matcher<T>Matchers. anyOf(Matcher<? super T>... matchers)Returns a matcher that matches when against objects which match any of the supplied matchers.static Matcher<ContextElement>Matchers. attributes(Matcher<Map<String,Object>> matcher)Returns a matcher that matches context elements whoseContextElement.attributes()match against the supplied matcher.static Matcher<TreeNode>Matchers. context(Matcher<ContextElement> matcher)Returns a matcher that matches tree nodes whoseTreeNode.getContext()match against the supplied matcher.QueryBuilderQueryBuilder. filter(Matcher<? super TreeNode> filter)Filters the current node set using the suppliedMatcher.static Matcher<Map<String,Object>>Matchers. hasAttribute(String key, Matcher<? extends Object> value)Returns a matcher that matches attribute maps the include an attribute with the given name, and whose value matches the given matcher.static Matcher<ContextElement>Matchers. identifier(Matcher<Class<?>> matcher)Returns a matcher that matches context elements whoseContextElement.identifier()match against the supplied matcher.static <T> Matcher<T>Matchers. not(Matcher<T> matcher)
-