Uses of Enum Class
net.sourceforge.pmd.lang.java.ast.JModifier
Packages that use JModifier
Package
Description
Contains the classes and interfaces modelling the Java AST.
-
Uses of JModifier in net.sourceforge.pmd.lang.java.ast
Methods in net.sourceforge.pmd.lang.java.ast that return JModifierModifier and TypeMethodDescriptionstatic @NonNull JModifierGets a modifier from its name.static JModifierReturns the enum constant of this class with the specified name.static JModifier[]JModifier.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.sourceforge.pmd.lang.java.ast that return types with arguments of type JModifierModifier and TypeMethodDescriptionASTModifierList.getEffectiveModifiers()Returns the declared modifiers, plus the modifiers that are implicitly bestowed by the context or the type of this declaration.ASTModifierList.getExplicitModifiers()Returns the set of modifiers written out in the source explicitly.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type JModifierModifier and TypeMethodDescriptionbooleanReturns true if the effective modifiers contain all of the mentioned modifiers.booleanASTModifierList.hasAllExplicitly(JModifier mod1, JModifier... mods) Returns true if the explicit modifiers contain all of the mentioned modifiers.booleanReturns true if the effective modifiers contain any of the mentioned modifiers.booleanASTModifierList.hasAnyExplicitly(JModifier mod1, JModifier... mods) Returns true if the explicit modifiers contain any of the mentioned modifiers.default booleanModifierOwner.hasExplicitModifiers(JModifier mod1, JModifier... mod) Returns true if this node has all the given modifiers explicitly written in the source.default booleanModifierOwner.hasModifiers(JModifier mod1, JModifier... mod) Returns true if this node has all the given modifiers either explicitly written or inferred through context.Method parameters in net.sourceforge.pmd.lang.java.ast with type arguments of type JModifier