Package org.snt.inmemantlr.memobjects
Class MemoryTupleSet
- java.lang.Object
-
- org.snt.inmemantlr.memobjects.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 Summary
Constructors Constructor Description MemoryTupleSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(MemoryTupleSet mset)
void
addMemoryTuple(MemorySource source, java.util.Set<MemoryByteCode> bytecode)
add a memory (source, bytecode) tuple to the listvoid
forEach(java.util.function.Consumer<? super MemoryTuple> action)
java.util.Iterator<MemoryTuple>
iterator()
int
size()
java.util.Spliterator<MemoryTuple>
spliterator()
java.lang.String
toString()
-
-
-
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 codebytecode
- the corresponding bytecode
-
size
public int size()
-
iterator
public java.util.Iterator<MemoryTuple> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<MemoryTuple>
-
forEach
public void forEach(java.util.function.Consumer<? super MemoryTuple> action)
- Specified by:
forEach
in interfacejava.lang.Iterable<MemoryTuple>
-
spliterator
public java.util.Spliterator<MemoryTuple> spliterator()
- Specified by:
spliterator
in interfacejava.lang.Iterable<MemoryTuple>
-
addAll
public void addAll(MemoryTupleSet mset)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-