Uses of Enum
spoon.reflect.path.CtRole
Package
Description
Ready to go meta?
This package contains classes that model the Spoon metamodel itself.
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
-
Uses of CtRole in spoon.metamodel
Modifier and TypeMethodDescriptionMetamodelProperty.getRole()
static CtRole
Metamodel.getRoleOfMethod(CtMethod<?> method)
-
Uses of CtRole in spoon.pattern
Modifier and TypeMethodDescriptionAttribute defined by `role` of `element` will be substituted by parameter valueAttribute defined by `role` of all elements matched byFilter
will be substituted by parameter value -
Uses of CtRole in spoon.pattern.internal.matcher
-
Uses of CtRole in spoon.pattern.internal.node
Modifier and TypeMethodDescriptionElementNode.getNodeOfRole(CtRole attributeRole)
ElementNode.getOrCreateNodeOfRole(CtRole role, Map<CtElement,RootNode> patternElementToSubstRequests)
<T> @Nullable T
ElementNode.getValueOfRole(CtRole role, Class<T> type)
ElementNode.setNodeOfRole(CtRole role, RootNode newAttrNode)
-
Uses of CtRole in spoon.reflect.declaration
Modifier and TypeMethodDescription<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
-
Uses of CtRole in spoon.reflect.meta.impl
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionstatic CtRole
Get theCtRole
associated to the field nameCtRole.getMatchingSubRoleFor(CtElement item)
CtRole.getSuperRole()
static CtRole
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.Modifier and TypeMethodDescriptionMatch on elements by their role. -
Uses of CtRole in spoon.reflect.path.impl
-
Uses of CtRole in spoon.reflect.visitor
Modifier and TypeFieldDescriptionImportAnalyzer.IGNORED_ROLES_WHEN_IMPLICIT
ImportAnalyzer.IGNORED_ROLES_WHEN_IMPLICIT
ImportAnalyzer.IGNORED_ROLES_WHEN_IMPLICIT
ImportAnalyzer.IGNORED_ROLES_WHEN_IMPLICIT
Modifier and TypeMethodDescriptionabstract void
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
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
Called for each scanned element.void
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
Generically scans a Map of meta-model elements.void
Generically scans a meta-model element.void
void
EarlyTerminatingScanner.scan(CtRole role, Collection<? extends CtElement> elements)
void
void
-
Uses of CtRole in spoon.reflect.visitor.chain
Modifier and TypeMethodDescriptiondefault ScanningMode
Called before the scanner enters an elementdefault void
This method is called after the element and all its children have been visited. -
Uses of CtRole in spoon.support.gui
-
Uses of CtRole in spoon.support.modelobs
Modifier and TypeMethodDescriptionChangeCollector.getChanges(CtElement currentElement)
Return the set ofCtRole
s for which children have changed from `currentElement` since thisChangeCollector
was attached Warning: change in IMPLICIT are ignoredChangeCollector.getDirectChanges(CtElement currentElement)
Modifier and TypeMethodDescriptionprotected void
Called whenever anything changes in the spoon modelprotected void
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> void
ActionBasedChangeListenerImpl.onMapAdd(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement newValue)
<K, V> void
EmptyModelChangeListener.onMapAdd(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement newValue)
<K, V> void
FineModelChangeListener.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> void
ActionBasedChangeListenerImpl.onMapDelete(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement oldValue)
<K, V> void
EmptyModelChangeListener.onMapDelete(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement oldValue)
<K, V> void
FineModelChangeListener.onMapDelete(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement oldValue)
A mapping is removed from the map corresponding to the role in the AST node<K, V> void
ActionBasedChangeListenerImpl.onMapDeleteAll(CtElement currentElement, CtRole role, Map<K,V> field, Map<K,V> oldValue)
<K, V> void
EmptyModelChangeListener.onMapDeleteAll(CtElement currentElement, CtRole role, Map<K,V> field, Map<K,V> oldValue)
<K, V> void
FineModelChangeListener.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>
voidvoid
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>
voida 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
ModifierConstructorDescriptionCollectionContext(CtElement element, CtRole role, T copyOfTheCollection)
ListContext(CtElement element, CtRole role, List<?> original)
ListContext(CtElement element, CtRole role, List<?> original, int position)
ObjectContext(CtElement ctElement, CtRole role)
SetContext(CtElement element, CtRole role, Set<?> original)
-
Uses of CtRole in spoon.support.reflect.declaration
Modifier and TypeMethodDescription<T> T
CtElementImpl.getValueByRole(CtRole role)
<E extends CtElement, T>
ECtElementImpl.setValueByRole(CtRole role, T value)
-
Uses of CtRole in spoon.support.sniper.internal
Modifier and TypeMethodDescriptionElementPrinterEvent.getRole()
PrinterEvent.getRole()
TokenPrinterEvent.getRole()
ElementSourceFragment.getRoleInParent()
-
Uses of CtRole in spoon.support.util
-
Uses of CtRole in spoon.support.util.internal
-
Uses of CtRole in spoon.support.visitor.equals
Modifier and TypeMethodDescriptionEqualsChecker.getNotEqualRole()
EqualsVisitor.getNotEqualRole()
Modifier and TypeMethodDescriptionprotected void
EqualsVisitor.biScan(CtRole role, Collection<? extends CtElement> elements, Collection<? extends CtElement> others)
void
protected boolean
protected void
EqualsChecker.setNotEqual(CtRole role)
-
Uses of CtRole in spoon.support.visitor.java
Modifier and TypeMethodDescription<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
Modifier and TypeMethodDescriptionvoid
AnnotationRuntimeBuilderContext.addTypeReference(CtRole role, CtTypeReference<?> typeReference)
void
ExecutableRuntimeBuilderContext.addTypeReference(CtRole role, CtTypeReference<?> typeReference)
void
RecordComponentRuntimeBuilderContext.addTypeReference(CtRole role, CtTypeReference<?> ctTypeReference)
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)