Package aQute.bnd.osgi
Class Instructions
- java.lang.Object
-
- aQute.bnd.osgi.Instructions
-
- All Implemented Interfaces:
java.util.Map<Instruction,Attrs>
public class Instructions extends java.lang.Object implements java.util.Map<Instruction,Attrs>
-
-
Field Summary
Fields Modifier and Type Field Description static Instructions
ALWAYS
-
Constructor Summary
Constructors Constructor Description Instructions()
Instructions(Parameters contained)
Instructions(Instructions other)
Instructions(java.lang.String h)
Instructions(java.util.Collection<java.lang.String> other)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
append(Parameters other)
void
clear()
boolean
containsKey(Instruction name)
boolean
containsKey(java.lang.Object name)
Deprecated.boolean
containsValue(Attrs value)
boolean
containsValue(java.lang.Object value)
Deprecated.java.util.Set<java.util.Map.Entry<Instruction,Attrs>>
entrySet()
Instruction
finder(java.lang.String value)
Attrs
get(Instruction key)
Attrs
get(java.lang.Object key)
Deprecated.boolean
isEmpty()
java.util.Set<Instruction>
keySet()
Instruction
matcher(java.lang.String value)
boolean
matches(java.lang.String value)
Attrs
put(Instruction key, Attrs value)
void
putAll(java.util.Map<? extends Instruction,? extends Attrs> map)
<T> java.util.Collection<T>
reject(java.util.Collection<T> set)
Attrs
remove(Instruction var0)
Attrs
remove(java.lang.Object var0)
Deprecated.java.util.Map<java.io.File,Attrs>
select(java.io.File base)
Turn this Instructions into a map of File -> Attrs.<T> java.util.Collection<T>
select(java.util.Collection<T> set, boolean emptyIsAll)
<T> java.util.Collection<T>
select(java.util.Collection<T> set, java.util.Set<Instruction> unused, boolean emptyIsAll)
int
size()
java.lang.String
toString()
java.util.Collection<Attrs>
values()
-
-
-
Field Detail
-
ALWAYS
public static Instructions ALWAYS
-
-
Constructor Detail
-
Instructions
public Instructions(Instructions other)
-
Instructions
public Instructions(java.util.Collection<java.lang.String> other)
-
Instructions
public Instructions()
-
Instructions
public Instructions(Parameters contained)
-
Instructions
public Instructions(java.lang.String h)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<Instruction,Attrs>
-
containsKey
public boolean containsKey(Instruction name)
-
containsKey
@Deprecated public boolean containsKey(java.lang.Object name)
Deprecated.- Specified by:
containsKey
in interfacejava.util.Map<Instruction,Attrs>
-
containsValue
public boolean containsValue(Attrs value)
-
containsValue
@Deprecated public boolean containsValue(java.lang.Object value)
Deprecated.- Specified by:
containsValue
in interfacejava.util.Map<Instruction,Attrs>
-
entrySet
public java.util.Set<java.util.Map.Entry<Instruction,Attrs>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<Instruction,Attrs>
-
get
@Deprecated public Attrs get(java.lang.Object key)
Deprecated.- Specified by:
get
in interfacejava.util.Map<Instruction,Attrs>
-
get
public Attrs get(Instruction key)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<Instruction,Attrs>
-
keySet
public java.util.Set<Instruction> keySet()
- Specified by:
keySet
in interfacejava.util.Map<Instruction,Attrs>
-
put
public Attrs put(Instruction key, Attrs value)
- Specified by:
put
in interfacejava.util.Map<Instruction,Attrs>
-
putAll
public void putAll(java.util.Map<? extends Instruction,? extends Attrs> map)
- Specified by:
putAll
in interfacejava.util.Map<Instruction,Attrs>
-
remove
@Deprecated public Attrs remove(java.lang.Object var0)
Deprecated.- Specified by:
remove
in interfacejava.util.Map<Instruction,Attrs>
-
remove
public Attrs remove(Instruction var0)
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<Instruction,Attrs>
-
values
public java.util.Collection<Attrs> values()
- Specified by:
values
in interfacejava.util.Map<Instruction,Attrs>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
append
public void append(Parameters other)
-
select
public <T> java.util.Collection<T> select(java.util.Collection<T> set, boolean emptyIsAll)
-
select
public <T> java.util.Collection<T> select(java.util.Collection<T> set, java.util.Set<Instruction> unused, boolean emptyIsAll)
-
reject
public <T> java.util.Collection<T> reject(java.util.Collection<T> set)
-
matcher
public Instruction matcher(java.lang.String value)
-
finder
public Instruction finder(java.lang.String value)
-
matches
public boolean matches(java.lang.String value)
-
select
public java.util.Map<java.io.File,Attrs> select(java.io.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
-
-