Package spoon.support.modelobs.context
Class ListContext
java.lang.Object
spoon.support.modelobs.context.Context
spoon.support.modelobs.context.CollectionContext<List<?>>
spoon.support.modelobs.context.ListContext
defines a list context
-
Field Summary
Fields inherited from class spoon.support.modelobs.context.CollectionContext
copyOfTheCollection
-
Constructor Summary
ConstructorDescriptionListContext(CtElement element, CtRole role, List<?> original)
ListContext(CtElement element, CtRole role, List<?> original, int position)
-
Method Summary
Modifier and TypeMethodDescriptionint
the position where the change has been made (returns -1 if no position is defined).Methods inherited from class spoon.support.modelobs.context.Context
getChangedProperty, getElementWhereChangeHappens
-
Constructor Details
-
ListContext
-
ListContext
-
-
Method Details
-
getPosition
public int getPosition()the position where the change has been made (returns -1 if no position is defined).- Returns:
- the position of the change
-