Class AssemblyParseState
- java.lang.Object
- 
- org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
- 
- org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyParseStateItem>
- 
- ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseState
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<AssemblyParseState>,- java.lang.Iterable<AssemblyParseStateItem>,- java.util.Collection<AssemblyParseStateItem>,- java.util.Set<AssemblyParseStateItem>
 
 public class AssemblyParseState extends org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyParseStateItem> implements java.lang.Comparable<AssemblyParseState> A state in an LR(0) parsing machine Each item consists of a kernel and an implied closure. Only the kernel is necessary to define the item, but the whole closure must be considered when deriving new states.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AssemblyParseState(AssemblyGrammar grammar)Construct a new state associated with the given grammarAssemblyParseState(AssemblyGrammar grammar, AssemblyParseStateItem item)Construct a new state associated with the given grammar, seeded with the given item
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AssemblyParseState that)protected java.util.Set<AssemblyParseStateItem>decorated()booleanequals(java.lang.Object that)java.util.Set<AssemblyParseStateItem>getClosure()Get the closure of this item, caching the resultinthashCode()java.lang.StringtoString()- 
Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecoratoradd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray
 
- 
 
- 
- 
- 
Constructor Detail- 
AssemblyParseStatepublic AssemblyParseState(AssemblyGrammar grammar) Construct a new state associated with the given grammar- Parameters:
- grammar- the grammar
 
 - 
AssemblyParseStatepublic AssemblyParseState(AssemblyGrammar grammar, AssemblyParseStateItem item) Construct a new state associated with the given grammar, seeded with the given item- Parameters:
- grammar- the grammar
- item- an item in the state
 
 
- 
 - 
Method Detail- 
decoratedprotected java.util.Set<AssemblyParseStateItem> decorated() - Overrides:
- decoratedin class- org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyParseStateItem>
 
 - 
getClosurepublic java.util.Set<AssemblyParseStateItem> getClosure() Get the closure of this item, caching the result- Returns:
- the closure
 
 - 
equalspublic boolean equals(java.lang.Object that) - Specified by:
- equalsin interface- java.util.Collection<AssemblyParseStateItem>
- Specified by:
- equalsin interface- java.util.Set<AssemblyParseStateItem>
- Overrides:
- equalsin class- org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyParseStateItem>
 
 - 
compareTopublic int compareTo(AssemblyParseState that) - Specified by:
- compareToin interface- java.lang.Comparable<AssemblyParseState>
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- org.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblyParseStateItem>
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- java.util.Collection<AssemblyParseStateItem>
- Specified by:
- hashCodein interface- java.util.Set<AssemblyParseStateItem>
- Overrides:
- hashCodein class- org.apache.commons.collections4.set.AbstractSetDecorator<AssemblyParseStateItem>
 
 
- 
 
-