Package eu.bandm.tools.d2d2.infra
Class PrefixMap
java.lang.Object
eu.bandm.tools.d2d2.infra.PrefixMap
Deprecated.
Better use
../../ramus/ana/Trie.java
Supports auto completion by several maps which link prefices to full
identifiers.
Attention: contents cannot decrease, but can only grow monotonuously.
Attention: contents cannot decrease, but can only grow monotonuously.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Deprecated.The length of the longest string contained.Deprecated.Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
insertAll
(Collection<String> ss) Deprecated.Deprecated.Returns the longest common prefix of all strings contained.longestCommonPrefix
(String prePrefix) Deprecated.Returns the longest common prefix of all strings starting with a certain prefix.
If the prefix is not conatained at all, a javanew Error()
is thrown.prefixedBy
(String s) Deprecated.Returns all contained strings which contain the argument as a prefix.
-
Field Details
-
prefix2full
Deprecated. -
length2prefix
Deprecated. -
depth
protected int depthDeprecated.The length of the longest string contained.
-
-
Constructor Details
-
PrefixMap
public PrefixMap()Deprecated.
-
-
Method Details
-
insertAll
Deprecated. -
insert
Deprecated. -
prefixedBy
Deprecated.Returns all contained strings which contain the argument as a prefix. -
longestCommonPrefix
Deprecated.Returns the longest common prefix of all strings contained. -
longestCommonPrefix
Deprecated.Returns the longest common prefix of all strings starting with a certain prefix.
If the prefix is not conatained at all, a javanew Error()
is thrown.
FIXME besser "null" zurueckliefern !!!! ????
-