Class 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
    • Constructor Summary

      Constructors 
      ChangeConstructor Description
      AssemblyResolutionResults()
      Construct a new (mutable) empty set of resolutions
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      ChangeModifier and Type Method Description
      void absorb​(AssemblyResolutionResults that)
      A synonym for addAll(Collection) that accepts only another resolution set
      boolean add​(AssemblyResolution ar)  
      boolean addAll​(java.util.Collection<? extends AssemblyResolution> c)  
      protected java.util.Set<AssemblyResolution> decorated()  
      java.util.Set<AssemblyResolution> getResolutions()
      Get an unmodifiable reference to this set
      boolean remove​(AssemblyResolution ar)  
      static AssemblyResolutionResults singleton​(AssemblyResolvedConstructor rc)
      Construct an immutable single-entry set consisting of the one given resolution
      • 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
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray