Class AssemblyResolutionResults
- java.lang.Object
- 
- org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
- 
- org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyResolution>
- 
- ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolutionResults
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Iterable<AssemblyResolution>,- java.util.Collection<AssemblyResolution>,- java.util.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 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:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.Set<AssemblyResolution>resolutions
 - 
Constructor SummaryConstructors Constructor Description AssemblyResolutionResults()Construct a new (mutable) empty set of resolutions
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabsorb(AssemblyResolutionResults that)A synonym foraddAll(Collection)that accepts only another resolution setbooleanadd(AssemblyResolution ar)booleanaddAll(java.util.Collection<? extends AssemblyResolution> c)protected java.util.Set<AssemblyResolution>decorated()java.util.Set<AssemblyResolution>getResolutions()Get an unmodifiable reference to this setbooleanremove(AssemblyResolution ar)static AssemblyResolutionResultssingleton(AssemblyResolvedConstructor rc)Construct an immutable single-entry set consisting of the one given resolution- 
Methods inherited from class org.apache.commons.collections4.set.AbstractSetDecoratorequals, hashCode
 - 
Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecoratorclear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toString
 
- 
 
- 
- 
- 
Field Detail- 
resolutionsprotected final java.util.Set<AssemblyResolution> resolutions 
 
- 
 - 
Method Detail- 
singletonpublic static AssemblyResolutionResults singleton(AssemblyResolvedConstructor rc) Construct an immutable single-entry set consisting of the one given resolution- Parameters:
- res- the single resolution entry
- Returns:
- the new resolution set
 
 - 
addpublic boolean add(AssemblyResolution ar) - Specified by:
- addin interface- java.util.Collection<AssemblyResolution>
- Specified by:
- addin interface- java.util.Set<AssemblyResolution>
- Overrides:
- addin class- org.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblyResolution>
 
 - 
absorbpublic void absorb(AssemblyResolutionResults that) A synonym foraddAll(Collection)that accepts only another resolution set- Parameters:
- that- the other set
 
 - 
addAllpublic boolean addAll(java.util.Collection<? extends AssemblyResolution> c) - Specified by:
- addAllin interface- java.util.Collection<AssemblyResolution>
- Specified by:
- addAllin interface- java.util.Set<AssemblyResolution>
- Overrides:
- addAllin class- org.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblyResolution>
 
 - 
getResolutionspublic java.util.Set<AssemblyResolution> getResolutions() Get an unmodifiable reference to this set- Returns:
- the set
 
 - 
decoratedprotected java.util.Set<AssemblyResolution> decorated() - Overrides:
- decoratedin class- org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyResolution>
 
 - 
removepublic boolean remove(AssemblyResolution ar) 
 
- 
 
-