aQute.lib.osgi

Class Instruction

public class Instruction extends Object

Constructor Summary
Instruction(String instruction, boolean negated)
Method Summary
booleanequals(Object other)
MatchergetMatcher(String value)
StringgetPattern()
static InstructiongetPattern(String string)
Convert a string based pattern to a regular expression based pattern.
inthashCode()
booleanisNegated()
booleanisOptional()
booleanmatches(String value)
voidsetOptional()
StringtoString()

Constructor Detail

Instruction

public Instruction(String instruction, boolean negated)

Method Detail

equals

public boolean equals(Object other)

getMatcher

public Matcher getMatcher(String value)

getPattern

public String getPattern()

getPattern

public static Instruction 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:

hashCode

public int hashCode()

isNegated

public boolean isNegated()

isOptional

public boolean isOptional()

matches

public boolean matches(String value)

setOptional

public void setOptional()

toString

public String toString()