Uses of Class
net.sourceforge.pmd.lang.java.ast.JModifier
-
Packages that use JModifier Package Description net.sourceforge.pmd.lang.java.ast 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 JModifier Modifier and Type Method Description static @NonNull JModifier
JModifier. fromToken(@NonNull String token)
Gets a modifier from its name.static JModifier
JModifier. valueOf(String name)
Returns the enum constant of this type with the specified name.static JModifier[]
JModifier. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in net.sourceforge.pmd.lang.java.ast that return types with arguments of type JModifier Modifier and Type Method Description Set<JModifier>
ASTModifierList. getEffectiveModifiers()
Returns the declared modifiers, plus the modifiers that are implicitly bestowed by the context or the type of this declaration.Set<JModifier>
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 JModifier Modifier and Type Method Description boolean
ASTModifierList. hasAll(JModifier mod1, JModifier... mods)
Returns true if the effective modifiers contain all of the mentioned modifiers.boolean
ASTModifierList. hasAllExplicitly(JModifier mod1, JModifier... mods)
Returns true if the explicit modifiers contain all of the mentioned modifiers.boolean
ASTModifierList. hasAny(JModifier mod1, JModifier... mods)
Returns true if the effective modifiers contain any of the mentioned modifiers.boolean
ASTModifierList. hasAnyExplicitly(JModifier mod1, JModifier... mods)
Returns true if the explicit modifiers contain any of the mentioned modifiers.default boolean
ModifierOwner. hasExplicitModifiers(JModifier mod1, JModifier... mod)
Returns true if this node has all the given modifiers explicitly written in the source.default boolean
ModifierOwner. 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 Modifier and Type Method Description static int
JModifier. toReflect(Collection<JModifier> mods)
-