Class AssemblyResolutionResults
java.lang.Object
org.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblyResolution>
org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyResolution>
ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolutionResults
- All Implemented Interfaces:
Serializable
,Iterable<AssemblyResolution>
,Collection<AssemblyResolution>
,Set<AssemblyResolution>
public class AssemblyResolutionResults
extends org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyResolution>
A set of possible assembly resolutions for a single SLEIGH constructor
Since the assembler works from the leaves up, it's unclear in what context a given token appears. Thus, every possible encoding is collected and passed upward. As resolution continues, many of the possible encodings are pruned out. When the resolver reaches the root, we end up with every possible encoding (less some prefixes) of an instruction. This object stores the possible encodings, including error records describing the pruned intermediate results.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final DbgTimer
protected final Set
<AssemblyResolution> -
Constructor Summary
ModifierConstructorDescriptionConstruct a new (mutable) empty set of resolutionsprotected
AssemblyResolutionResults
(Set<AssemblyResolution> resolutions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
A synonym foraddAll(Collection)
that accepts only another resolution setboolean
boolean
addAll
(Collection<? extends AssemblyResolution> c) protected AssemblyResolutionResults
apply
(AbstractAssemblyResolutionFactory<?, ?> factory, AssemblyResolutionResults.Applicator applicator) protected AssemblyResolutionResults
apply
(AbstractAssemblyResolutionFactory<?, ?> factory, Function<AssemblyResolvedPatterns, AssemblyResolution> function) protected Set
<AssemblyResolution> Get an unmodifiable reference to this setboolean
Methods inherited from class org.apache.commons.collections4.set.AbstractSetDecorator
equals, hashCode
Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecorator
clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
DBG
-
resolutions
-
-
Constructor Details
-
AssemblyResolutionResults
public AssemblyResolutionResults()Construct a new (mutable) empty set of resolutions -
AssemblyResolutionResults
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<AssemblyResolution>
- Specified by:
add
in interfaceSet<AssemblyResolution>
- Overrides:
add
in classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblyResolution>
-
absorb
A synonym foraddAll(Collection)
that accepts only another resolution set- Parameters:
that
- the other set
-
addAll
- Specified by:
addAll
in interfaceCollection<AssemblyResolution>
- Specified by:
addAll
in interfaceSet<AssemblyResolution>
- Overrides:
addAll
in classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblyResolution>
-
getResolutions
Get an unmodifiable reference to this set- Returns:
- the set
-
decorated
- Overrides:
decorated
in classorg.apache.commons.collections4.set.AbstractSetDecorator<AssemblyResolution>
-
remove
-
apply
protected AssemblyResolutionResults apply(AbstractAssemblyResolutionFactory<?, ?> factory, AssemblyResolutionResults.Applicator applicator) -
apply
protected AssemblyResolutionResults apply(AbstractAssemblyResolutionFactory<?, ?> factory, Function<AssemblyResolvedPatterns, AssemblyResolution> function)
-