Class MethodPropertyModule
- java.lang.Object
-
- net.sourceforge.pmd.properties.modules.PackagedPropertyModule<java.lang.reflect.Method>
-
- net.sourceforge.pmd.properties.modules.MethodPropertyModule
-
public class MethodPropertyModule extends PackagedPropertyModule<java.lang.reflect.Method>
Factorises common functionality for method properties.- Author:
- Clément Fournier
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ARRAY_FLAG
static char
CLASS_METHOD_DELIMITER
static char
METHOD_ARG_DELIMITER
static char[]
METHOD_GROUP_DELIMITERS
-
Constructor Summary
Constructors Constructor Description MethodPropertyModule(java.lang.String[] legalPackageNames, java.util.List<java.lang.reflect.Method> defaults)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
asString(java.lang.reflect.Method method)
protected java.lang.String
itemTypeName()
Returns the name of the type of item.protected java.lang.String
packageNameOf(java.lang.reflect.Method method)
Returns the package name of the item.-
Methods inherited from class net.sourceforge.pmd.properties.modules.PackagedPropertyModule
addAttributesTo, legalPackageNames, packageNamesIn, valueErrorFor
-
-
-
-
Field Detail
-
CLASS_METHOD_DELIMITER
public static final char CLASS_METHOD_DELIMITER
- See Also:
- Constant Field Values
-
METHOD_ARG_DELIMITER
public static final char METHOD_ARG_DELIMITER
- See Also:
- Constant Field Values
-
METHOD_GROUP_DELIMITERS
public static final char[] METHOD_GROUP_DELIMITERS
-
ARRAY_FLAG
public static final java.lang.String ARRAY_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
packageNameOf
protected java.lang.String packageNameOf(java.lang.reflect.Method method)
Description copied from class:PackagedPropertyModule
Returns the package name of the item.- Specified by:
packageNameOf
in classPackagedPropertyModule<java.lang.reflect.Method>
- Parameters:
method
- Item (not null)- Returns:
- Package name of the item
-
itemTypeName
protected java.lang.String itemTypeName()
Description copied from class:PackagedPropertyModule
Returns the name of the type of item.- Specified by:
itemTypeName
in classPackagedPropertyModule<java.lang.reflect.Method>
- Returns:
- The name of the type of item
-
asString
public static java.lang.String asString(java.lang.reflect.Method method)
-
-