Uses of Enum
spoon.reflect.declaration.ModifierKind
Packages that use ModifierKind
Package
Description
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines the references to program elements for the meta-model.
This package provides an implementation of the spoon.reflect package.
-
Uses of ModifierKind in spoon.reflect.declaration
Methods in spoon.reflect.declaration that return ModifierKindModifier and TypeMethodDescriptionCtModifiable.getVisibility()
Gets the visibility of this modifiable element.static ModifierKind
Returns the enum constant of this type with the specified name.static ModifierKind[]
ModifierKind.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in spoon.reflect.declaration that return types with arguments of type ModifierKindModifier and TypeMethodDescriptionCtModifiable.getModifiers()
Returns the modifiers of this element, excluding annotations.CtTypeInformation.getModifiers()
Gets modifiers of this type.Methods in spoon.reflect.declaration with parameters of type ModifierKindModifier and TypeMethodDescription<T extends CtModifiable>
TCtModifiable.addModifier(ModifierKind modifier)
add a modifierboolean
CtModifiable.hasModifier(ModifierKind modifier)
Tells if this element contains the given modifier.<T extends CtModifiable>
TCtModifiable.removeModifier(ModifierKind modifier)
remove a modifier<T extends CtModifiable>
TCtModifiable.setVisibility(ModifierKind visibility)
Sets the visibility of this modifiable element (replaces old visibility).Method parameters in spoon.reflect.declaration with type arguments of type ModifierKindModifier and TypeMethodDescription<T extends CtModifiable>
TCtModifiable.setModifiers(Set<ModifierKind> modifiers)
Sets the modifiers.<T extends CtModifiable>
TCtTypeParameter.setModifiers(Set<ModifierKind> modifiers)
-
Uses of ModifierKind in spoon.reflect.factory
Methods in spoon.reflect.factory that return types with arguments of type ModifierKindModifier and TypeMethodDescriptionCodeFactory.modifiers(ModifierKind... modifiers)
Creates a modifier set.Methods in spoon.reflect.factory with parameters of type ModifierKindModifier and TypeMethodDescription<T> CtCatchVariable<T>
CodeFactory.createCatchVariable(CtTypeReference<T> type, String name, ModifierKind... modifierKinds)
Creates a catch variable declaration.<T> CtCatchVariable<T>
Factory.createCatchVariable(CtTypeReference<T> type, String name, ModifierKind... modifierKinds)
<T> CtCatchVariable<T>
FactoryImpl.createCatchVariable(CtTypeReference<T> type, String name, ModifierKind... modifierKinds)
<T> CtField<T>
CodeFactory.createCtField(String name, CtTypeReference<T> type, String exp, ModifierKind... visibilities)
Creates a field.<T> CtField<T>
Factory.createCtField(String name, CtTypeReference<T> type, String exp, ModifierKind... visibilities)
<T> CtField<T>
FactoryImpl.createCtField(String name, CtTypeReference<T> type, String exp, ModifierKind... visibilities)
CodeFactory.modifiers(ModifierKind... modifiers)
Creates a modifier set.Method parameters in spoon.reflect.factory with type arguments of type ModifierKindModifier and TypeMethodDescription<T> CtConstructor<T>
ConstructorFactory.create(CtClass<T> target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
Creates an empty constructor.<T> CtConstructor<T>
ConstructorFactory.create(CtClass<T> target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock<T> body)
Creates a constructor.<T> CtField<T>
FieldFactory.create(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name)
Creates a field.<T> CtField<T>
FieldFactory.create(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)
Creates a field.<R, B extends R>
CtMethod<R>MethodFactory.create(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference<R> returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock<B> body)
Creates a method.<T> CtMethod<T>
MethodFactory.create(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference<T> returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
Creates an empty method.Factory.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
Factory.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
FactoryImpl.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
FactoryImpl.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
Factory.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name)
Factory.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name, CtExpression defaultExpression)
FactoryImpl.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name)
FactoryImpl.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name, CtExpression defaultExpression)
Factory.createMethod(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
Factory.createMethod(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
FactoryImpl.createMethod(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
FactoryImpl.createMethod(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
-
Uses of ModifierKind in spoon.reflect.reference
Methods in spoon.reflect.reference that return types with arguments of type ModifierKindModifier and TypeMethodDescriptionCtTypeReference.getModifiers()
CtVariableReference.getModifiers()
Gets modifiers of the reference. -
Uses of ModifierKind in spoon.support.modelobs
Methods in spoon.support.modelobs with parameters of type ModifierKindModifier and TypeMethodDescriptionvoid
ActionBasedChangeListenerImpl.onSetDelete(CtElement currentElement, CtRole role, Set field, ModifierKind oldValue)
void
EmptyModelChangeListener.onSetDelete(CtElement currentElement, CtRole role, Set field, ModifierKind oldValue)
void
FineModelChangeListener.onSetDelete(CtElement currentElement, CtRole role, Set field, ModifierKind oldValue)
an oldValue is deleted in the set corresponding to the role in the AST nodeMethod parameters in spoon.support.modelobs with type arguments of type ModifierKindModifier and TypeMethodDescriptionvoid
ActionBasedChangeListenerImpl.onSetDelete(CtElement currentElement, CtRole role, Set field, Collection<ModifierKind> oldValue)
void
EmptyModelChangeListener.onSetDelete(CtElement currentElement, CtRole role, Set field, Collection<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 node -
Uses of ModifierKind in spoon.support.reflect
Methods in spoon.support.reflect that return ModifierKindMethods in spoon.support.reflect that return types with arguments of type ModifierKindMethods in spoon.support.reflect with parameters of type ModifierKindModifier and TypeMethodDescriptionCtModifierHandler.addModifier(ModifierKind modifier)
static CtExtendedModifier
CtExtendedModifier.explicit(ModifierKind kind)
Creates an extended modifier of the given kind that is explicit.boolean
CtModifierHandler.hasModifier(ModifierKind modifier)
static CtExtendedModifier
CtExtendedModifier.implicit(ModifierKind kind)
Creates an extended modifier of the given kind that is implicit.CtModifierHandler.removeModifier(ModifierKind modifier)
void
CtExtendedModifier.setKind(ModifierKind kind)
CtModifierHandler.setVisibility(ModifierKind visibility)
Method parameters in spoon.support.reflect with type arguments of type ModifierKindConstructors in spoon.support.reflect with parameters of type ModifierKindModifierConstructorDescriptionCtExtendedModifier(ModifierKind kind)
Deprecated.CtExtendedModifier(ModifierKind kind, boolean implicit)
Creates a new extended modifier of the given kind with the given implicitness. -
Uses of ModifierKind in spoon.support.reflect.code
Methods in spoon.support.reflect.code that return ModifierKindModifier and TypeMethodDescriptionCtCatchVariableImpl.getVisibility()
CtLocalVariableImpl.getVisibility()
Methods in spoon.support.reflect.code that return types with arguments of type ModifierKindModifier and TypeMethodDescriptionCtCatchVariableImpl.getModifiers()
CtLocalVariableImpl.getModifiers()
Methods in spoon.support.reflect.code with parameters of type ModifierKindModifier and TypeMethodDescription<C extends CtModifiable>
CCtCatchVariableImpl.addModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtLocalVariableImpl.addModifier(ModifierKind modifier)
boolean
CtCatchVariableImpl.hasModifier(ModifierKind modifier)
boolean
CtLocalVariableImpl.hasModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtCatchVariableImpl.removeModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtLocalVariableImpl.removeModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtCatchVariableImpl.setVisibility(ModifierKind visibility)
<C extends CtModifiable>
CCtLocalVariableImpl.setVisibility(ModifierKind visibility)
Method parameters in spoon.support.reflect.code with type arguments of type ModifierKindModifier and TypeMethodDescription<C extends CtModifiable>
CCtCatchVariableImpl.setModifiers(Set<ModifierKind> modifiers)
<C extends CtModifiable>
CCtLocalVariableImpl.setModifiers(Set<ModifierKind> modifiers)
-
Uses of ModifierKind in spoon.support.reflect.declaration
Methods in spoon.support.reflect.declaration that return ModifierKindModifier and TypeMethodDescriptionCtAnonymousExecutableImpl.getVisibility()
CtConstructorImpl.getVisibility()
CtFieldImpl.getVisibility()
CtMethodImpl.getVisibility()
CtParameterImpl.getVisibility()
CtTypeImpl.getVisibility()
CtTypeParameterImpl.getVisibility()
Methods in spoon.support.reflect.declaration that return types with arguments of type ModifierKindModifier and TypeMethodDescriptionCtAnonymousExecutableImpl.getModifiers()
CtConstructorImpl.getModifiers()
CtFieldImpl.getModifiers()
CtMethodImpl.getModifiers()
CtParameterImpl.getModifiers()
CtTypeImpl.getModifiers()
CtTypeParameterImpl.getModifiers()
Methods in spoon.support.reflect.declaration with parameters of type ModifierKindModifier and TypeMethodDescription<T extends CtModifiable>
TCtAnonymousExecutableImpl.addModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtConstructorImpl.addModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtFieldImpl.addModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtMethodImpl.addModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtParameterImpl.addModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtRecordImpl.addModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtTypeImpl.addModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtTypeParameterImpl.addModifier(ModifierKind modifier)
boolean
CtAnonymousExecutableImpl.hasModifier(ModifierKind modifier)
boolean
CtConstructorImpl.hasModifier(ModifierKind modifier)
boolean
CtFieldImpl.hasModifier(ModifierKind modifier)
boolean
CtMethodImpl.hasModifier(ModifierKind modifier)
boolean
CtParameterImpl.hasModifier(ModifierKind modifier)
boolean
CtTypeImpl.hasModifier(ModifierKind modifier)
boolean
CtTypeParameterImpl.hasModifier(ModifierKind modifier)
<T extends CtModifiable>
TCtAnonymousExecutableImpl.removeModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtConstructorImpl.removeModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtFieldImpl.removeModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtMethodImpl.removeModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtParameterImpl.removeModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtTypeImpl.removeModifier(ModifierKind modifier)
<C extends CtModifiable>
CCtTypeParameterImpl.removeModifier(ModifierKind modifier)
<T extends CtModifiable>
TCtAnonymousExecutableImpl.setVisibility(ModifierKind visibility)
<C extends CtModifiable>
CCtConstructorImpl.setVisibility(ModifierKind visibility)
<C extends CtModifiable>
CCtFieldImpl.setVisibility(ModifierKind visibility)
<C extends CtModifiable>
CCtMethodImpl.setVisibility(ModifierKind visibility)
<C extends CtModifiable>
CCtParameterImpl.setVisibility(ModifierKind visibility)
<C extends CtModifiable>
CCtTypeImpl.setVisibility(ModifierKind visibility)
<C extends CtModifiable>
CCtTypeParameterImpl.setVisibility(ModifierKind visibility)
Method parameters in spoon.support.reflect.declaration with type arguments of type ModifierKindModifier and TypeMethodDescription<T extends CtModifiable>
TCtAnonymousExecutableImpl.setModifiers(Set<ModifierKind> modifiers)
<C extends CtModifiable>
CCtConstructorImpl.setModifiers(Set<ModifierKind> modifiers)
<C extends CtModifiable>
CCtFieldImpl.setModifiers(Set<ModifierKind> modifiers)
<C extends CtModifiable>
CCtMethodImpl.setModifiers(Set<ModifierKind> modifiers)
<C extends CtModifiable>
CCtParameterImpl.setModifiers(Set<ModifierKind> modifiers)
<C extends CtModifiable>
CCtRecordImpl.setModifiers(Set<ModifierKind> modifiers)
<C extends CtModifiable>
CCtTypeImpl.setModifiers(Set<ModifierKind> modifiers)
<C extends CtModifiable>
CCtTypeParameterImpl.setModifiers(Set<ModifierKind> modifiers)
-
Uses of ModifierKind in spoon.support.reflect.reference
Methods in spoon.support.reflect.reference that return types with arguments of type ModifierKindModifier and TypeMethodDescriptionCtExecutableReferenceImpl.getModifiers()
CtFieldReferenceImpl.getModifiers()
CtTypeReferenceImpl.getModifiers()
CtVariableReferenceImpl.getModifiers()
-
Uses of ModifierKind in spoon.support.util
Methods in spoon.support.util that return types with arguments of type ModifierKindModifier and TypeMethodDescriptionstatic Set<ModifierKind>
RtHelper.getModifiers(int mod)
Return the set of modifiers defined by the modifiers integer (java.lang.reflect).
CtExtendedModifier.explicit(ModifierKind)
to create an explicit modifier.