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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final DbgTimerprotected final Set<AssemblyResolution> -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstruct a new (mutable) empty set of resolutionsprotectedAssemblyResolutionResults(Set<AssemblyResolution> resolutions) -
Method Summary
Modifier and TypeMethodDescriptionvoidA synonym foraddAll(Collection)that accepts only another resolution setbooleanbooleanaddAll(Collection<? extends AssemblyResolution> c) protected AssemblyResolutionResultsapply(AbstractAssemblyResolutionFactory<?, ?> factory, AssemblyResolutionResults.Applicator applicator) protected AssemblyResolutionResultsapply(AbstractAssemblyResolutionFactory<?, ?> factory, Function<AssemblyResolvedPatterns, AssemblyResolution> function) protected Set<AssemblyResolution> Get an unmodifiable reference to this setbooleanMethods inherited from class org.apache.commons.collections4.set.AbstractSetDecorator
equals, hashCodeMethods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecorator
clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
addin interfaceCollection<AssemblyResolution>- Specified by:
addin interfaceSet<AssemblyResolution>- Overrides:
addin 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:
addAllin interfaceCollection<AssemblyResolution>- Specified by:
addAllin interfaceSet<AssemblyResolution>- Overrides:
addAllin classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblyResolution>
-
getResolutions
Get an unmodifiable reference to this set- Returns:
- the set
-
decorated
- Overrides:
decoratedin 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)
-