Class MemoryTupleSet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<MemoryTuple>

    public class MemoryTupleSet
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Iterable<MemoryTuple>
    this object is used to store already compiled antlr lexers and parsers such that they can be used later on without the need to compile the whole stuff again
    See Also:
    Serialized Form
    • Constructor Detail

      • MemoryTupleSet

        public MemoryTupleSet()
    • Method Detail

      • addMemoryTuple

        public void addMemoryTuple​(MemorySource source,
                                   java.util.Set<MemoryByteCode> bytecode)
        add a memory (source, bytecode) tuple to the list
        Parameters:
        source - the source code
        bytecode - the corresponding bytecode
      • size

        public int size()
      • iterator

        public java.util.Iterator<MemoryTuple> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<MemoryTuple>
      • forEach

        public void forEach​(java.util.function.Consumer<? super MemoryTuple> action)
        Specified by:
        forEach in interface java.lang.Iterable<MemoryTuple>
      • spliterator

        public java.util.Spliterator<MemoryTuple> spliterator()
        Specified by:
        spliterator in interface java.lang.Iterable<MemoryTuple>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object