Uses of Class
spoon.reflect.path.CtRole
-
Packages that use CtRole Package Description spoon.metamodel Ready to go meta? This package contains classes that model the Spoon metamodel itself.spoon.pattern spoon.pattern.internal.matcher spoon.pattern.internal.node spoon.reflect.annotations spoon.reflect.declaration This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).spoon.reflect.meta spoon.reflect.meta.impl spoon.reflect.path spoon.reflect.path.impl spoon.reflect.visitor This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.spoon.reflect.visitor.chain spoon.support.gui spoon.support.modelobs spoon.support.modelobs.context spoon.support.reflect.declaration spoon.support.sniper.internal spoon.support.util spoon.support.visitor.equals spoon.support.visitor.java spoon.support.visitor.java.internal -
-
Uses of CtRole in spoon.metamodel
Methods in spoon.metamodel that return CtRole Modifier and Type Method Description CtRole
MetamodelProperty. getRole()
static CtRole
Metamodel. getRoleOfMethod(CtMethod<?> method)
Methods in spoon.metamodel that return types with arguments of type CtRole Modifier and Type Method Description Map<CtRole,MetamodelProperty>
MetamodelConcept. getRoleToProperty()
Methods in spoon.metamodel with parameters of type CtRole Modifier and Type Method Description MetamodelProperty
MetamodelConcept. getProperty(CtRole role)
-
Uses of CtRole in spoon.pattern
Methods in spoon.pattern with parameters of type CtRole Modifier and Type Method Description PatternParameterConfigurator
PatternParameterConfigurator. byRole(CtRole role, CtElement... elements)
Attribute defined by `role` of `element` will be substituted by parameter valuePatternParameterConfigurator
PatternParameterConfigurator. byRole(CtRole role, Filter<?> filter)
Attribute defined by `role` of all elements matched byFilter
will be substituted by parameter value -
Uses of CtRole in spoon.pattern.internal.matcher
Methods in spoon.pattern.internal.matcher with parameters of type CtRole Modifier and Type Method Description void
MatchingScanner. scan(CtRole role, Collection<? extends CtElement> elements)
void
MatchingScanner. scan(CtRole role, Map<String,? extends CtElement> elements)
void
MatchingScanner. scan(CtRole role, CtElement element)
-
Uses of CtRole in spoon.pattern.internal.node
Methods in spoon.pattern.internal.node with parameters of type CtRole Modifier and Type Method Description RootNode
ElementNode. getNodeOfRole(CtRole attributeRole)
RootNode
ElementNode. getOrCreateNodeOfRole(CtRole role, Map<CtElement,RootNode> patternElementToSubstRequests)
<T> T
ElementNode. getValueOfRole(CtRole role, Class<T> type)
RootNode
ElementNode. setNodeOfRole(CtRole role, RootNode newAttrNode)
-
Uses of CtRole in spoon.reflect.annotations
Methods in spoon.reflect.annotations that return CtRole Modifier and Type Method Description CtRole[]
role()
CtRole
role()
CtRole
role()
-
Uses of CtRole in spoon.reflect.declaration
Methods in spoon.reflect.declaration that return CtRole Modifier and Type Method Description CtRole
CtElement. getRoleInParent()
Methods in spoon.reflect.declaration with parameters of type CtRole Modifier and Type Method Description <T> T
CtElement. getValueByRole(CtRole role)
<E extends CtElement,T>
ECtElement. setValueByRole(CtRole role, T value)
Sets a field according to a role. -
Uses of CtRole in spoon.reflect.meta
Methods in spoon.reflect.meta that return CtRole Modifier and Type Method Description CtRole
RoleHandler. getRole()
-
Uses of CtRole in spoon.reflect.meta.impl
Methods in spoon.reflect.meta.impl with parameters of type CtRole Modifier and Type Method Description static RoleHandler
RoleHandlerHelper. getOptionalRoleHandler(Class<? extends CtElement> targetClass, CtRole role)
static RoleHandler
RoleHandlerHelper. getRoleHandler(Class<? extends CtElement> targetClass, CtRole role)
-
Uses of CtRole in spoon.reflect.path
Methods in spoon.reflect.path that return CtRole Modifier and Type Method Description static CtRole
CtRole. fromName(String name)
Get theCtRole
associated to the field nameCtRole
CtRole. getMatchingSubRoleFor(CtElement item)
CtRole
CtRole. getSuperRole()
static CtRole
CtRole. valueOf(String name)
Returns the enum constant of this type with the specified name.static CtRole[]
CtRole. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in spoon.reflect.path that return types with arguments of type CtRole Modifier and Type Method Description List<CtRole>
CtRole. getSubRoles()
Methods in spoon.reflect.path with parameters of type CtRole Modifier and Type Method Description CtPathBuilder
CtPathBuilder. role(CtRole role, String[]... args)
Match on elements by their role. -
Uses of CtRole in spoon.reflect.path.impl
Methods in spoon.reflect.path.impl that return CtRole Modifier and Type Method Description CtRole
CtRolePathElement. getRole()
Constructors in spoon.reflect.path.impl with parameters of type CtRole Constructor Description CtRolePathElement(CtRole role)
-
Uses of CtRole in spoon.reflect.visitor
Fields in spoon.reflect.visitor declared as CtRole Modifier and Type Field Description protected CtRole
EarlyTerminatingScanner. scannedRole
Fields in spoon.reflect.visitor with type parameters of type CtRole Modifier and Type Field Description protected static Set<CtRole>
ImportAnalyzer. IGNORED_ROLES_WHEN_IMPLICIT
protected static Set<CtRole>
ImportAnalyzer. IGNORED_ROLES_WHEN_IMPLICIT
protected static Set<CtRole>
ImportAnalyzer. IGNORED_ROLES_WHEN_IMPLICIT
protected static Set<CtRole>
ImportAnalyzer. IGNORED_ROLES_WHEN_IMPLICIT
Methods in spoon.reflect.visitor with parameters of type CtRole Modifier and Type Method Description abstract void
CtAbstractBiScanner. biScan(CtRole role, CtElement element, CtElement other)
This method is called to compare `element` and `other` according to the role when traversing two trees in parallel.protected void
CtBiScannerDefault. biScan(CtRole role, Collection<? extends CtElement> elements, Collection<? extends CtElement> others)
void
CtBiScannerDefault. biScan(CtRole role, CtElement element, CtElement other)
protected void
EarlyTerminatingScanner. doScan(CtRole role, CtElement element, ScanningMode mode)
This method is called ONLY when the listener decides that the current element and children should be visited.protected void
ForceFullyQualifiedProcessor. handleTypeReference(CtTypeReference<?> reference, LexicalScope nameScope, CtRole role)
protected void
ForceImportProcessor. handleTypeReference(CtTypeReference<?> reference, LexicalScope nameScope, CtRole role)
protected void
ImportCleaner. handleTypeReference(CtTypeReference<?> reference, ImportCleaner.Context context, CtRole role)
protected void
ImportConflictDetector. handleTypeReference(CtTypeReference<?> ref, LexicalScope nameScope, CtRole role)
protected void
EarlyTerminatingScanner. onElement(CtRole role, CtElement element)
Called for each scanned element.void
CtScanner. scan(CtRole role, Object o)
Generically scans an object that can be an element, a reference, or a collection of those.void
CtScanner. scan(CtRole role, Collection<? extends CtElement> elements)
Generically scans a collection of meta-model elements.void
CtScanner. scan(CtRole role, Map<String,? extends CtElement> elements)
Generically scans a Map of meta-model elements.void
CtScanner. scan(CtRole role, CtElement element)
Generically scans a meta-model element.void
EarlyTerminatingScanner. scan(CtRole role, Object o)
void
EarlyTerminatingScanner. scan(CtRole role, Collection<? extends CtElement> elements)
void
EarlyTerminatingScanner. scan(CtRole role, Map<String,? extends CtElement> elements)
void
EarlyTerminatingScanner. scan(CtRole role, CtElement element)
-
Uses of CtRole in spoon.reflect.visitor.chain
Methods in spoon.reflect.visitor.chain with parameters of type CtRole Modifier and Type Method Description default ScanningMode
CtScannerListener. enter(CtRole role, CtElement element)
Called before the scanner enters an elementdefault void
CtScannerListener. exit(CtRole role, CtElement element)
This method is called after the element and all its children have been visited. -
Uses of CtRole in spoon.support.gui
Methods in spoon.support.gui with parameters of type CtRole Modifier and Type Method Description void
SpoonTreeBuilder. scan(CtRole role, CtElement element)
-
Uses of CtRole in spoon.support.modelobs
Methods in spoon.support.modelobs that return types with arguments of type CtRole Modifier and Type Method Description Set<CtRole>
ChangeCollector. getChanges(CtElement currentElement)
Return the set ofCtRole
s for which children have changed from `currentElement` since thisChangeCollector
was attached Warning: change in IMPLICIT are ignoredSet<CtRole>
ChangeCollector. getDirectChanges(CtElement currentElement)
Methods in spoon.support.modelobs with parameters of type CtRole Modifier and Type Method Description protected void
ChangeCollector. onChange(CtElement currentElement, CtRole role)
Called whenever anything changes in the spoon modelprotected void
SourceFragmentCreator. onChange(CtElement currentElement, CtRole role)
void
ActionBasedChangeListenerImpl. onListAdd(CtElement currentElement, CtRole role, List field, int index, CtElement newValue)
void
ActionBasedChangeListenerImpl. onListAdd(CtElement currentElement, CtRole role, List field, CtElement newValue)
void
EmptyModelChangeListener. onListAdd(CtElement currentElement, CtRole role, List field, int index, CtElement newValue)
void
EmptyModelChangeListener. onListAdd(CtElement currentElement, CtRole role, List field, CtElement newValue)
void
FineModelChangeListener. onListAdd(CtElement currentElement, CtRole role, List field, int index, CtElement newValue)
a newValue is appended to the list corresponding to the role in the AST nodevoid
FineModelChangeListener. onListAdd(CtElement currentElement, CtRole role, List field, CtElement newValue)
a newValue is appended to the list corresponding to the role in the AST nodevoid
ActionBasedChangeListenerImpl. onListDelete(CtElement currentElement, CtRole role, List field, int index, CtElement oldValue)
void
ActionBasedChangeListenerImpl. onListDelete(CtElement currentElement, CtRole role, List field, Collection<? extends CtElement> oldValue)
void
EmptyModelChangeListener. onListDelete(CtElement currentElement, CtRole role, List field, int index, CtElement oldValue)
void
EmptyModelChangeListener. onListDelete(CtElement currentElement, CtRole role, List field, Collection<? extends CtElement> oldValue)
void
FineModelChangeListener. onListDelete(CtElement currentElement, CtRole role, List field, int index, CtElement oldValue)
an oldValue is deleted in the list corresponding to the role in the AST nodevoid
FineModelChangeListener. onListDelete(CtElement currentElement, CtRole role, List field, Collection<? extends CtElement> oldValue)
an oldValue is deleted in the list corresponding to the role in the AST nodevoid
ActionBasedChangeListenerImpl. onListDeleteAll(CtElement currentElement, CtRole role, List field, List oldValue)
void
EmptyModelChangeListener. onListDeleteAll(CtElement currentElement, CtRole role, List field, List oldValue)
void
FineModelChangeListener. onListDeleteAll(CtElement currentElement, CtRole role, List field, List oldValue)
a list corresponding to the role in the AST node is emptied<K,V>
voidActionBasedChangeListenerImpl. onMapAdd(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement newValue)
<K,V>
voidEmptyModelChangeListener. onMapAdd(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement newValue)
<K,V>
voidFineModelChangeListener. onMapAdd(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement newValue)
a newValue is appended to the map corresponding to the role in the AST node<K,V>
voidActionBasedChangeListenerImpl. onMapDeleteAll(CtElement currentElement, CtRole role, Map<K,V> field, Map<K,V> oldValue)
<K,V>
voidEmptyModelChangeListener. onMapDeleteAll(CtElement currentElement, CtRole role, Map<K,V> field, Map<K,V> oldValue)
<K,V>
voidFineModelChangeListener. onMapDeleteAll(CtElement currentElement, CtRole role, Map<K,V> field, Map<K,V> oldValue)
a map corresponding to the role in the AST node is emptiedvoid
ActionBasedChangeListenerImpl. onObjectDelete(CtElement currentElement, CtRole role, CtElement oldValue)
void
EmptyModelChangeListener. onObjectDelete(CtElement currentElement, CtRole role, CtElement oldValue)
void
FineModelChangeListener. onObjectDelete(CtElement currentElement, CtRole role, CtElement oldValue)
a field corresponding to the role is being set to nullvoid
ActionBasedChangeListenerImpl. onObjectUpdate(CtElement currentElement, CtRole role, Object newValue, Object oldValue)
void
ActionBasedChangeListenerImpl. onObjectUpdate(CtElement currentElement, CtRole role, CtElement newValue, CtElement oldValue)
void
EmptyModelChangeListener. onObjectUpdate(CtElement currentElement, CtRole role, Object newValue, Object oldValue)
void
EmptyModelChangeListener. onObjectUpdate(CtElement currentElement, CtRole role, CtElement newValue, CtElement oldValue)
void
FineModelChangeListener. onObjectUpdate(CtElement currentElement, CtRole role, Object newValue, Object oldValue)
a field corresponding to the role is being set in the AST nodevoid
FineModelChangeListener. onObjectUpdate(CtElement currentElement, CtRole role, CtElement newValue, CtElement oldValue)
a field corresponding to the role is being set in the AST nodevoid
ActionBasedChangeListenerImpl. onSetAdd(CtElement currentElement, CtRole role, Set field, CtElement newValue)
<T extends Enum>
voidActionBasedChangeListenerImpl. onSetAdd(CtElement currentElement, CtRole role, Set field, T newValue)
void
EmptyModelChangeListener. onSetAdd(CtElement currentElement, CtRole role, Set field, CtElement newValue)
<T extends Enum>
voidEmptyModelChangeListener. onSetAdd(CtElement currentElement, CtRole role, Set field, T newValue)
void
FineModelChangeListener. onSetAdd(CtElement currentElement, CtRole role, Set field, CtElement newValue)
a newValue is appended to the set corresponding to the role in the AST node<T extends Enum>
voidFineModelChangeListener. onSetAdd(CtElement currentElement, CtRole role, Set field, T newValue)
a newValue is appended to the set corresponding to the role in the AST nodevoid
ActionBasedChangeListenerImpl. onSetDelete(CtElement currentElement, CtRole role, Set field, Collection<ModifierKind> oldValue)
void
ActionBasedChangeListenerImpl. onSetDelete(CtElement currentElement, CtRole role, Set field, CtElement oldValue)
void
ActionBasedChangeListenerImpl. onSetDelete(CtElement currentElement, CtRole role, Set field, ModifierKind oldValue)
void
EmptyModelChangeListener. onSetDelete(CtElement currentElement, CtRole role, Set field, Collection<ModifierKind> oldValue)
void
EmptyModelChangeListener. onSetDelete(CtElement currentElement, CtRole role, Set field, CtElement oldValue)
void
EmptyModelChangeListener. onSetDelete(CtElement currentElement, CtRole role, Set field, ModifierKind oldValue)
void
FineModelChangeListener. onSetDelete(CtElement currentElement, CtRole role, Set field, Collection<ModifierKind> oldValue)
an oldValue is deleted in the set corresponding to the role in the AST nodevoid
FineModelChangeListener. onSetDelete(CtElement currentElement, CtRole role, Set field, CtElement oldValue)
an oldValue is deleted in the set corresponding to the role in the AST nodevoid
FineModelChangeListener. onSetDelete(CtElement currentElement, CtRole role, Set field, ModifierKind oldValue)
an oldValue is deleted in the set corresponding to the role in the AST nodevoid
ActionBasedChangeListenerImpl. onSetDeleteAll(CtElement currentElement, CtRole role, Set field, Set oldValue)
void
EmptyModelChangeListener. onSetDeleteAll(CtElement currentElement, CtRole role, Set field, Set oldValue)
void
FineModelChangeListener. onSetDeleteAll(CtElement currentElement, CtRole role, Set field, Set oldValue)
a set corresponding to the role in the AST node is emptied -
Uses of CtRole in spoon.support.modelobs.context
Methods in spoon.support.modelobs.context that return CtRole Modifier and Type Method Description CtRole
Context. getChangedProperty()
the role that has been modifiedConstructors in spoon.support.modelobs.context with parameters of type CtRole Constructor Description CollectionContext(CtElement element, CtRole role, T copyOfTheCollection)
Context(CtElement element, CtRole changedProperty)
ListContext(CtElement element, CtRole role, List<?> original)
ListContext(CtElement element, CtRole role, List<?> original, int position)
MapContext(CtElement element, CtRole role, Map<K,V> map)
MapContext(CtElement element, CtRole role, Map<K,V> map, K key)
ObjectContext(CtElement ctElement, CtRole role)
SetContext(CtElement element, CtRole role, Set<?> original)
-
Uses of CtRole in spoon.support.reflect.declaration
Methods in spoon.support.reflect.declaration that return CtRole Modifier and Type Method Description CtRole
CtElementImpl. getRoleInParent()
Methods in spoon.support.reflect.declaration with parameters of type CtRole Modifier and Type Method Description <T> T
CtElementImpl. getValueByRole(CtRole role)
<E extends CtElement,T>
ECtElementImpl. setValueByRole(CtRole role, T value)
-
Uses of CtRole in spoon.support.sniper.internal
Fields in spoon.support.sniper.internal declared as CtRole Modifier and Type Field Description protected CtRole
ElementPrinterEvent. role
Methods in spoon.support.sniper.internal that return CtRole Modifier and Type Method Description CtRole
ElementPrinterEvent. getRole()
CtRole
PrinterEvent. getRole()
CtRole
TokenPrinterEvent. getRole()
CtRole
ElementSourceFragment. getRoleInParent()
Methods in spoon.support.sniper.internal that return types with arguments of type CtRole Modifier and Type Method Description Set<CtRole>
ChangeResolver. getChanges(SourcePositionHolder element)
Methods in spoon.support.sniper.internal with parameters of type CtRole Modifier and Type Method Description boolean
ChangeResolver. isRoleModified(CtRole ctRole)
Constructors in spoon.support.sniper.internal with parameters of type CtRole Constructor Description ElementPrinterEvent(CtRole role, CtElement element)
-
Uses of CtRole in spoon.support.util
Methods in spoon.support.util that return CtRole Modifier and Type Method Description protected abstract CtRole
ModelList. getRole()
protected abstract CtRole
ModelSet. getRole()
-
Uses of CtRole in spoon.support.visitor.equals
Fields in spoon.support.visitor.equals declared as CtRole Modifier and Type Field Description protected CtRole
EqualsVisitor. notEqualRole
Methods in spoon.support.visitor.equals that return CtRole Modifier and Type Method Description CtRole
EqualsChecker. getNotEqualRole()
CtRole
EqualsVisitor. getNotEqualRole()
Methods in spoon.support.visitor.equals with parameters of type CtRole Modifier and Type Method Description protected void
EqualsVisitor. biScan(CtRole role, Collection<? extends CtElement> elements, Collection<? extends CtElement> others)
void
EqualsVisitor. biScan(CtRole role, CtElement element, CtElement other)
protected boolean
EqualsVisitor. fail(CtRole role, Object element, Object other)
protected void
EqualsChecker. setNotEqual(CtRole role)
-
Uses of CtRole in spoon.support.visitor.java
Methods in spoon.support.visitor.java with parameters of type CtRole Modifier and Type Method Description <T> void
JavaReflectionTreeBuilder. visitArrayReference(CtRole role, Type typeArray)
<T extends GenericDeclaration>
voidJavaReflectionTreeBuilder. visitTypeParameterReference(CtRole role, TypeVariable<T> parameter)
<T> void
JavaReflectionTreeBuilder. visitTypeReference(CtRole role, Class<T> clazz)
void
JavaReflectionTreeBuilder. visitTypeReference(CtRole role, ParameterizedType type)
void
JavaReflectionTreeBuilder. visitTypeReference(CtRole role, WildcardType type)
-
Uses of CtRole in spoon.support.visitor.java.internal
Methods in spoon.support.visitor.java.internal with parameters of type CtRole Modifier and Type Method Description void
AnnotationRuntimeBuilderContext. addTypeReference(CtRole role, CtTypeReference<?> typeReference)
void
ExecutableRuntimeBuilderContext. addTypeReference(CtRole role, CtTypeReference<?> typeReference)
void
RuntimeBuilderContext. addTypeReference(CtRole role, CtTypeReference<?> ctTypeReference)
void
TypeReferenceRuntimeBuilderContext. addTypeReference(CtRole role, CtTypeReference<?> ctTypeReference)
void
TypeRuntimeBuilderContext. addTypeReference(CtRole role, CtTypeReference<?> typeReference)
void
VariableRuntimeBuilderContext. addTypeReference(CtRole role, CtTypeReference<?> ctTypeReference)
-