aQute.libg.clauses
Class Selector
java.lang.Object
aQute.libg.clauses.Selector
public class Selector
- extends Object
Selector
public Selector(String instruction,
boolean negated)
matches
public boolean matches(String value)
isNegated
public boolean isNegated()
getPattern
public String getPattern()
getPattern
public static Selector getPattern(String string)
- Convert a string based pattern to a regular expression based pattern.
This is called an instruction, this object makes it easier to handle the
different cases
- Parameters:
string -
- Returns:
toString
public String toString()
- Overrides:
toString in class Object
getClause
public Clause getClause()
setClause
public void setClause(Clause clause)
getInstructions
public static List<Selector> getInstructions(Clauses clauses)
select
public static <T> List<T> select(Collection<T> domain,
List<Selector> instructions)
Copyright © 2010 aQute SARL. All Rights Reserved.