TapList¶
Fields¶
Constructors¶
Methods¶
addAll¶
addIntoLeaves¶
-
public static void
addIntoLeaves(TapList zonesTree, TapIntList newInts)¶ Adds all integers in TapIntList “newInts” into each TapIntList leaf of the TapList tree “zonesTree”.
addLast¶
addUnlessPresentEquals¶
allSingletonLeaves¶
append¶
assq¶
-
public static <KEYTYPE, VALUETYPE> TapPair<KEYTYPE, VALUETYPE>
assq(KEYTYPE key, TapList<TapPair<KEYTYPE, VALUETYPE>> list)¶ Return the element matching “key” in the association list “list”. Comparison is done with == .
- Parameters
list – The association list, assumed to be a list of TapPair.
- Returns
null if no matching association is found.
assq¶
-
public static Int2ZoneInfo
assq(int key, TapList<Int2ZoneInfo> list)¶ - Parameters
list – The association list, assumed to be a list of Int2ZoneInfo.
- Returns
null if no matching association is found. Comparison is done with == .
assqOne¶
-
public static <T> TapPair<TapIntList, T>
assqOne(int key, TapList<TapPair<TapIntList, T>> list)¶ - Parameters
list – The association list, assumed to be a list of TapPair, with first elements being TapIntList
- Returns
null if no matching association is found. Comparison is done with == .
assqString¶
assqStringInTriplet¶
-
public static <T, U> TapTriplet<String, T, U>
assqStringInTriplet(String string, TapList<TapTriplet<String, T, U>> list)¶ Same as assqString, but the association list is made of TapTriplet.
cassq¶
-
public static <KEYTYPE, VALUETYPE> VALUETYPE
cassq(KEYTYPE key, TapList<TapPair<KEYTYPE, VALUETYPE>> list)¶ Return the value in the element matching “key” in the association list “list”. Comparison is done with == .
- Parameters
list – The association list, assumed to be a list of TapPair
- Returns
null if no matching association is found.
cassq¶
-
public static ZoneInfo
cassq(int key, TapList<Int2ZoneInfo> list)¶ - Parameters
list – The association list, assumed to be a list of Int2ZoneInfo.
- Returns
null if no matching association is found. Comparison is done with == .
cassqString¶
cleanExtraInfoValue¶
contains¶
containsEquals¶
containsEqualsObjectPair¶
containsObjectPair¶
containsOneOfStrings¶
containsSameNameSymbolDecl¶
-
public static boolean
containsSameNameSymbolDecl(TapList<SymbolDecl> list, SymbolDecl symbolDecl)¶ - Returns
true if the given list contains a SymbolDecl with the same name as for the given “symbolDecl”.
containsString¶
containsTree¶
containsTreeEquals¶
containsVariableDecl¶
-
public static boolean
containsVariableDecl(TapList<SymbolDecl> list, VariableDecl varDecl)¶ - Returns
true if the given “varDecl” is found in the given list. Comparison is done with VariableDecl.equalsOther().
copyTree¶
copyTreeNoPointed¶
-
public static TapList<?>
copyTreeNoPointed(TapList<?> model)¶ - Returns
a deep copy of this TapList, which must be a tree of TapIntList’s, Boolean’s, or ToBool’s . Shares (i.e. does not copy) the leaves of the tree. Does not copy pointer destination part. Therefore there is no risk of infinite looping.
cumulOr¶
-
public static BoolVector
cumulOr(TapList<?> tree)¶ OR-accumulates all leaves of tree, which are BoolVector’s, into a single BoolVector and returns it. Does not go inside pointers, therefore there is no risk of infinite looping.
cumulWithOper¶
-
public static TapList<?>
cumulWithOper(TapList<?> target, Object added, int oper)¶ Recursively accumulates tree “added” into tree “target”, using operation “oper”.
- Returns
the resulting tree, which in general is the new contents of “target”. Takes care of cycles in the trees. The leaves of the tree may be all Boolean’s or all BoolVector’s or all TapIntList’s. The result will maybe share structure with the original “target”, but will never share structure with “added”. In other words, the parts of “added” which appear in the result will be deep copies.
delete¶
deleteAll¶
deleteContainsString¶
deleteNth¶
deleteString¶
equalsImportedModules¶
-
protected static boolean
equalsImportedModules(TapList<Instruction> l1, TapList<Instruction> l2)¶
findNamedSymbolDecl¶
-
public static SymbolDecl
findNamedSymbolDecl(TapList<SymbolDecl> list, String name)¶ - Returns
null if no element is found. Comparison is done with String.equals().
findTypeSpec¶
-
public static WrapperTypeSpec
findTypeSpec(TapList<TypeSpec> list, WrapperTypeSpec typeSpec)¶ - Returns
null if no element is found. Comparison is done with WrapperTypeSpec.equalLiterally.
fromObjectArray¶
getSetFieldLocation¶
-
public static TapList<?>
getSetFieldLocation(TapList infoTree, Tree accessTree, boolean createIfAbsent)¶ - Returns
(or creates and returns) the sub-tree of the given tree “infoTree” which is accessed through the given “accessTree” (e.g. %x[3]%toto). When “createIfAbsent” is true, this function never returns null ! When “createIfAbsent” is false, doesn’t modify “infoTree” and may return null if nothing found. This function assumes that it is given a non-null “infoTree” ! CONVENTION [Jan 2008] on the placement of pointer destination info: REMAIN IN SYNC with CONVENTION in DataFlowAnalyzer.includePointedElementsInTreeRec().
intersectTreeEquals¶
length¶
lengthWithCycle¶
negateBooleans¶
nreverse¶
nth¶
oneNonSingleton¶
oneTrue¶
oneTrueInHead¶
parseIdentifier¶
placdl¶
prependNoDups¶
rank¶
rankString¶
rassq¶
-
public static <KEYTYPE, VALUETYPE> TapPair<KEYTYPE, VALUETYPE>
rassq(VALUETYPE value, TapList<TapPair<KEYTYPE, VALUETYPE>> list)¶ Return the first element containing “value” in the association list “list”. Comparison is done with == .
- Parameters
list – The association list, assumed to be a list of TapPair
- Returns
null if no matching association is found.
rassqString¶
removeLast¶
removeNonWritableZones¶
replace¶
replaceExtraInfoValue¶
replaceIntsWithValueInts¶
reverse¶
safeDelete¶
sameTree¶
setAll¶
-
public void
setAll(boolean value)¶ Sets all Boolean leaves to the given value. Assumes this is a TapList tree of Boolean Skips pointer derefs.
split¶
-
public static TapList<Instruction>[]
split(TapList<Instruction> list, TapIntList listRank)¶ coupe la liste en 2n+1 sous-listes n longueur de la liste des positions de coupure suppose que listRank est une liste ordonnee croissante des positions retourne un tableau de 2n+1 Object les indices impairs du tableau correspondent aux contenus reperes par listRank.