aQute.lib.osgi
Class Instruction

java.lang.Object
  extended by aQute.lib.osgi.Instruction

public class Instruction
extends java.lang.Object


Constructor Summary
Instruction(java.lang.String instruction, boolean negated)
           
 
Method Summary
 java.lang.String getPattern()
           
static Instruction getPattern(java.lang.String string)
          Convert a string based pattern to a regular expression based pattern.
 boolean isNegated()
           
 boolean matches(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instruction

public Instruction(java.lang.String instruction,
                   boolean negated)
Method Detail

matches

public boolean matches(java.lang.String value)

isNegated

public boolean isNegated()

getPattern

public java.lang.String getPattern()

getPattern

public static Instruction getPattern(java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object