Uses of Enum
spoon.reflect.path.CtRole
Packages that use 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
Methods in spoon.metamodel that return CtRoleModifier and TypeMethodDescriptionMetamodelProperty.getRole()
static CtRole
Metamodel.getRoleOfMethod(CtMethod<?> method)
Methods in spoon.metamodel that return types with arguments of type CtRoleMethods in spoon.metamodel with parameters of type CtRole -
Uses of CtRole in spoon.pattern
Methods in spoon.pattern with parameters of type CtRoleModifier 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
Methods in spoon.pattern.internal.matcher with parameters of type CtRole -
Uses of CtRole in spoon.pattern.internal.node
Methods in spoon.pattern.internal.node with parameters of type CtRoleModifier 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
Methods in spoon.reflect.declaration that return CtRoleMethods in spoon.reflect.declaration with parameters of type CtRoleModifier 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
Methods in spoon.reflect.meta that return CtRole -
Uses of CtRole in spoon.reflect.meta.impl
Methods in spoon.reflect.meta.impl with parameters of type CtRoleModifier 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
Methods in spoon.reflect.path that return CtRoleModifier 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.Methods in spoon.reflect.path that return types with arguments of type CtRoleMethods in spoon.reflect.path with parameters of type CtRoleModifier and TypeMethodDescriptionMatch on elements by their role. -
Uses of CtRole in spoon.reflect.path.impl
Methods in spoon.reflect.path.impl that return CtRoleConstructors in spoon.reflect.path.impl with parameters of type CtRole -
Uses of CtRole in spoon.reflect.visitor
Fields in spoon.reflect.visitor declared as CtRoleFields in spoon.reflect.visitor with type parameters of type CtRoleModifier and TypeFieldDescriptionImportAnalyzer.IGNORED_ROLES_WHEN_IMPLICIT
ImportAnalyzer.IGNORED_ROLES_WHEN_IMPLICIT
ImportAnalyzer.IGNORED_ROLES_WHEN_IMPLICIT
ImportAnalyzer.IGNORED_ROLES_WHEN_IMPLICIT
Methods in spoon.reflect.visitor with parameters of type CtRoleModifier 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
Methods in spoon.reflect.visitor.chain with parameters of type CtRoleModifier 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
Methods in spoon.support.gui with parameters of type CtRole -
Uses of CtRole in spoon.support.modelobs
Methods in spoon.support.modelobs that return types with arguments of type CtRoleModifier 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)
Methods in spoon.support.modelobs with parameters of type CtRoleModifier 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
Methods in spoon.support.modelobs.context that return CtRoleConstructors in spoon.support.modelobs.context with parameters of type CtRoleModifierConstructorDescriptionCollectionContext(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
Methods in spoon.support.reflect.declaration that return CtRoleMethods in spoon.support.reflect.declaration with parameters of type CtRoleModifier 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
Fields in spoon.support.sniper.internal declared as CtRoleMethods in spoon.support.sniper.internal that return CtRoleModifier and TypeMethodDescriptionElementPrinterEvent.getRole()
PrinterEvent.getRole()
TokenPrinterEvent.getRole()
ElementSourceFragment.getRoleInParent()
Methods in spoon.support.sniper.internal that return types with arguments of type CtRoleMethods in spoon.support.sniper.internal with parameters of type CtRoleConstructors in spoon.support.sniper.internal with parameters of type CtRole -
Uses of CtRole in spoon.support.util
Methods in spoon.support.util that return CtRole -
Uses of CtRole in spoon.support.util.internal
Methods in spoon.support.util.internal that return CtRole -
Uses of CtRole in spoon.support.visitor.equals
Fields in spoon.support.visitor.equals declared as CtRoleMethods in spoon.support.visitor.equals that return CtRoleModifier and TypeMethodDescriptionEqualsChecker.getNotEqualRole()
EqualsVisitor.getNotEqualRole()
Methods in spoon.support.visitor.equals with parameters of type CtRoleModifier 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
Methods in spoon.support.visitor.java with parameters of type CtRoleModifier 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
Methods in spoon.support.visitor.java.internal with parameters of type CtRoleModifier 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)