aQute.bnd.osgi
Class Instructions

java.lang.Object
  extended by aQute.bnd.osgi.Instructions
All Implemented Interfaces:
Map<Instruction,Attrs>

public class Instructions
extends Object
implements Map<Instruction,Attrs>


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static Instructions ALWAYS
           
 
Constructor Summary
Instructions()
           
Instructions(Collection<String> other)
           
Instructions(Instructions other)
           
Instructions(Parameters contained)
           
Instructions(String h)
           
 
Method Summary
 void append(Parameters other)
           
 void clear()
           
 boolean containsKey(Instruction name)
           
 boolean containsKey(Object name)
          Deprecated. 
 boolean containsValue(Attrs value)
           
 boolean containsValue(Object value)
          Deprecated. 
 Set<Map.Entry<Instruction,Attrs>> entrySet()
           
 Instruction finder(String value)
           
 Attrs get(Instruction key)
           
 Attrs get(Object key)
          Deprecated. 
 boolean isEmpty()
           
 Set<Instruction> keySet()
           
 Instruction matcher(String value)
           
 boolean matches(String value)
           
 Attrs put(Instruction key, Attrs value)
           
 void putAll(Map<? extends Instruction,? extends Attrs> map)
           
<T> Collection<T>
reject(Collection<T> set)
           
 Attrs remove(Instruction var0)
           
 Attrs remove(Object var0)
          Deprecated. 
<T> Collection<T>
select(Collection<T> set, boolean emptyIsAll)
           
<T> Collection<T>
select(Collection<T> set, Set<Instruction> unused, boolean emptyIsAll)
           
 Map<File,Attrs> select(File base)
          Turn this Instructions into a map of File -> Attrs.
 int size()
           
 String toString()
           
 Collection<Attrs> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

ALWAYS

public static Instructions ALWAYS
Constructor Detail

Instructions

public Instructions(Instructions other)

Instructions

public Instructions(Collection<String> other)

Instructions

public Instructions()

Instructions

public Instructions(Parameters contained)

Instructions

public Instructions(String h)
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<Instruction,Attrs>

containsKey

public boolean containsKey(Instruction name)

containsKey

@Deprecated
public boolean containsKey(Object name)
Deprecated. 

Specified by:
containsKey in interface Map<Instruction,Attrs>

containsValue

public boolean containsValue(Attrs value)

containsValue

@Deprecated
public boolean containsValue(Object value)
Deprecated. 

Specified by:
containsValue in interface Map<Instruction,Attrs>

entrySet

public Set<Map.Entry<Instruction,Attrs>> entrySet()
Specified by:
entrySet in interface Map<Instruction,Attrs>

get

@Deprecated
public Attrs get(Object key)
Deprecated. 

Specified by:
get in interface Map<Instruction,Attrs>

get

public Attrs get(Instruction key)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<Instruction,Attrs>

keySet

public Set<Instruction> keySet()
Specified by:
keySet in interface Map<Instruction,Attrs>

put

public Attrs put(Instruction key,
                 Attrs value)
Specified by:
put in interface Map<Instruction,Attrs>

putAll

public void putAll(Map<? extends Instruction,? extends Attrs> map)
Specified by:
putAll in interface Map<Instruction,Attrs>

remove

@Deprecated
public Attrs remove(Object var0)
Deprecated. 

Specified by:
remove in interface Map<Instruction,Attrs>

remove

public Attrs remove(Instruction var0)

size

public int size()
Specified by:
size in interface Map<Instruction,Attrs>

values

public Collection<Attrs> values()
Specified by:
values in interface Map<Instruction,Attrs>

toString

public String toString()
Overrides:
toString in class Object

append

public void append(Parameters other)

select

public <T> Collection<T> select(Collection<T> set,
                                boolean emptyIsAll)

select

public <T> Collection<T> select(Collection<T> set,
                                Set<Instruction> unused,
                                boolean emptyIsAll)

reject

public <T> Collection<T> reject(Collection<T> set)

matcher

public Instruction matcher(String value)

finder

public Instruction finder(String value)

matches

public boolean matches(String value)

select

public Map<File,Attrs> select(File base)
Turn this Instructions into a map of File -> Attrs. You can specify a base directory, which will match all files in that directory against the specification or you can use literal instructions to get files from anywhere.

Parameters:
base - The directory to list files from.
Returns:
The map that links files to attributes


Copyright © 2014 aQute SARL. All rights reserved.