Uses of Class
com.puppycrawl.tools.checkstyle.checks.naming.AccessModifier
-
Packages that use AccessModifier Package Description com.puppycrawl.tools.checkstyle.checks.naming Contains the Naming conventions checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.utils Contains utils classes for checkstyle. -
-
Uses of AccessModifier in com.puppycrawl.tools.checkstyle.checks.naming
Fields in com.puppycrawl.tools.checkstyle.checks.naming declared as AccessModifier Modifier and Type Field Description private AccessModifier[]
ParameterNameCheck. accessModifiers
Access modifiers of methods which should be checked.Methods in com.puppycrawl.tools.checkstyle.checks.naming that return AccessModifier Modifier and Type Method Description private static AccessModifier
ParameterNameCheck. getAccessModifier(DetailAST ast)
Returns the access modifier of the method/constructor at the specified AST.static AccessModifier
AccessModifier. getInstance(java.lang.String modifierName)
Factory method which returns an AccessModifier instance that corresponds to the given access modifier name represented as aString
.static AccessModifier
AccessModifier. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AccessModifier[]
AccessModifier. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.puppycrawl.tools.checkstyle.checks.naming with parameters of type AccessModifier Modifier and Type Method Description private boolean
ParameterNameCheck. matchAccessModifiers(AccessModifier accessModifier)
Checks whether a method has the correct access modifier to be checked.void
ParameterNameCheck. setAccessModifiers(AccessModifier... accessModifiers)
Sets access modifiers of methods which should be checked. -
Uses of AccessModifier in com.puppycrawl.tools.checkstyle.utils
Methods in com.puppycrawl.tools.checkstyle.utils that return AccessModifier Modifier and Type Method Description static AccessModifier
CheckUtils. getAccessModifierFromModifiersToken(DetailAST modifiersToken)
ReturnsAccessModifier
based on the information about access modifier taken from the given token of typeTokenTypes.MODIFIERS
.
-