I - input symbol typepublic class GrowingVPDAlphabet<I> extends AbstractVPDAlphabet<VPDSym<I>>
VPDAlphabet implementation that allows to add new symbols after its construction.
Wraps input symbols in a VPDSym instance to allow faster mappings from symbols to indexes.VPDAlphabet.SymbolTypemodCount| Constructor and Description |
|---|
GrowingVPDAlphabet() |
| Modifier and Type | Method and Description |
|---|---|
VPDSym<I> |
addNewSymbol(I userObject,
VPDAlphabet.SymbolType type) |
VPDSym<I> |
getCallSymbol(int index) |
int |
getCallSymbolIndex(VPDSym<I> symbol) |
Collection<VPDSym<I>> |
getCallSymbols() |
VPDSym<I> |
getInternalSymbol(int index) |
int |
getInternalSymbolIndex(VPDSym<I> symbol) |
Collection<VPDSym<I>> |
getInternalSymbols() |
int |
getNumCalls() |
int |
getNumInternals() |
int |
getNumReturns() |
VPDSym<I> |
getReturnSymbol(int index) |
int |
getReturnSymbolIndex(VPDSym<I> symbol) |
Collection<VPDSym<I>> |
getReturnSymbols() |
VPDSym<I> |
getSymbol(int index) |
int |
getSymbolIndex(VPDSym<I> symbol) |
VPDAlphabet.SymbolType |
getSymbolType(VPDSym<I> symbol) |
int |
size() |
getCallAlphabet, getInternalAlphabet, getReturnAlphabetgetadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitcallReturnBalance, isCallMatched, isCallSymbol, isInternalSymbol, isReturnMatched, isReturnSymbol, isWellMatched, longestWellMatchedPrefix, longestWellMatchedSuffixapply, applyAsInt, compare, containsSymbol, translateFrom, writeToArrayadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraycomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArraypublic VPDSym<I> getSymbol(int index) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getSymbolIndex(VPDSym<I> symbol) throws IllegalArgumentException
IllegalArgumentExceptionpublic VPDSym<I> getCallSymbol(int index) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getCallSymbolIndex(VPDSym<I> symbol) throws IllegalArgumentException
IllegalArgumentExceptionpublic Collection<VPDSym<I>> getCallSymbols()
public VPDSym<I> getInternalSymbol(int index) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getInternalSymbolIndex(VPDSym<I> symbol) throws IllegalArgumentException
IllegalArgumentExceptionpublic Collection<VPDSym<I>> getInternalSymbols()
public VPDSym<I> getReturnSymbol(int index) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getReturnSymbolIndex(VPDSym<I> symbol) throws IllegalArgumentException
IllegalArgumentExceptionpublic Collection<VPDSym<I>> getReturnSymbols()
public int getNumCalls()
public int getNumInternals()
public int getNumReturns()
public VPDAlphabet.SymbolType getSymbolType(VPDSym<I> symbol)
public int size()
public VPDSym<I> addNewSymbol(I userObject, VPDAlphabet.SymbolType type)
Copyright © 2019. All rights reserved.