Class AvoidUsingHardCodedIPRule
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.rule.AbstractRule
-
- net.sourceforge.pmd.lang.java.rule.AbstractJavaRule
-
- net.sourceforge.pmd.lang.java.rule.bestpractices.AvoidUsingHardCodedIPRule
-
- All Implemented Interfaces:
JavaParserVisitor
,ImmutableLanguage
,PropertySource
,Rule
public class AvoidUsingHardCodedIPRule extends AbstractJavaRule
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyDescriptor<List<String>>
CHECK_ADDRESS_TYPES_DESCRIPTOR
protected boolean
checkIPv4
Deprecated.protected boolean
checkIPv4MappedIPv6
Deprecated.protected boolean
checkIPv6
Deprecated.static String
IPV4
Deprecated.static String
IPV4_MAPPED_IPV6
Deprecated.protected static Pattern
IPV4_PATTERN
Deprecated.protected static String
IPV4_REGEXP
Deprecated.static String
IPV6
Deprecated.protected static Pattern
IPV6_PATTERN
Deprecated.protected static String
IPV6_REGEXP
Deprecated.-
Fields inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
propertyDescriptors, propertyValuesByDescriptor
-
Fields inherited from interface net.sourceforge.pmd.Rule
VIOLATION_SUPPRESS_REGEX_DESCRIPTOR, VIOLATION_SUPPRESS_XPATH_DESCRIPTOR
-
-
Constructor Summary
Constructors Constructor Description AvoidUsingHardCodedIPRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
dysfunctionReason()
boolean
hasChosenAddressTypes()
Deprecated.protected boolean
isHexCharacter(char c)
Deprecated.protected boolean
isIPv4(char firstChar, String s)
Deprecated.protected boolean
isIPv6(char firstChar, String s, boolean checkIPv6, boolean checkIPv4MappedIPv6)
Deprecated.protected boolean
isLatinDigit(char c)
Deprecated.Object
visit(ASTCompilationUnit node, Object data)
Object
visit(ASTLiteral node, Object data)
-
Methods inherited from class net.sourceforge.pmd.lang.java.rule.AbstractJavaRule
apply, getDeclaringType, importsPackage, isQualifiedName, isSuppressed, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitAll
-
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule
addExample, addRuleChainVisit, addRuleChainVisit, addViolation, addViolation, addViolation, addViolationWithMessage, addViolationWithMessage, addViolationWithMessage, asCtx, deepCopy, deepCopyValuesTo, end, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getParserOptions, getPriority, getPropertySourceType, getRuleChainVisits, getRuleClass, getRuleSetName, getSince, hashCode, isDeprecated, isDfa, isMultifile, isRuleChain, isTypeResolution, setDeprecated, setDescription, setDfa, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setMultifile, setName, setPriority, setRuleClass, setRuleSetName, setSince, setTypeResolution, setUsesDFA, setUsesMultifile, setUsesTypeResolution, start, usesDFA, usesMultifile, usesRuleChain, usesTypeResolution
-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
-
-
-
Field Detail
-
IPV4
@Deprecated @InternalApi public static final String IPV4
Deprecated.- See Also:
- Constant Field Values
-
IPV6
@Deprecated @InternalApi public static final String IPV6
Deprecated.- See Also:
- Constant Field Values
-
IPV4_MAPPED_IPV6
@Deprecated @InternalApi public static final String IPV4_MAPPED_IPV6
Deprecated.- See Also:
- Constant Field Values
-
CHECK_ADDRESS_TYPES_DESCRIPTOR
public static final PropertyDescriptor<List<String>> CHECK_ADDRESS_TYPES_DESCRIPTOR
-
IPV4_REGEXP
@Deprecated @InternalApi protected static final String IPV4_REGEXP
Deprecated.- See Also:
- Constant Field Values
-
IPV6_REGEXP
@Deprecated @InternalApi protected static final String IPV6_REGEXP
Deprecated.
-
IPV4_PATTERN
@Deprecated @InternalApi protected static final Pattern IPV4_PATTERN
Deprecated.
-
IPV6_PATTERN
@Deprecated @InternalApi protected static final Pattern IPV6_PATTERN
Deprecated.
-
checkIPv4
@Deprecated @InternalApi protected boolean checkIPv4
Deprecated.
-
checkIPv6
@Deprecated @InternalApi protected boolean checkIPv6
Deprecated.
-
checkIPv4MappedIPv6
@Deprecated @InternalApi protected boolean checkIPv4MappedIPv6
Deprecated.
-
-
Method Detail
-
visit
public Object visit(ASTCompilationUnit node, Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classAbstractJavaRule
-
visit
public Object visit(ASTLiteral node, Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classAbstractJavaRule
-
isLatinDigit
@Deprecated @InternalApi protected boolean isLatinDigit(char c)
Deprecated.
-
isHexCharacter
@Deprecated @InternalApi protected boolean isHexCharacter(char c)
Deprecated.
-
isIPv4
@Deprecated @InternalApi protected boolean isIPv4(char firstChar, String s)
Deprecated.
-
isIPv6
@Deprecated @InternalApi protected boolean isIPv6(char firstChar, String s, boolean checkIPv6, boolean checkIPv4MappedIPv6)
Deprecated.
-
hasChosenAddressTypes
@Deprecated @InternalApi public boolean hasChosenAddressTypes()
Deprecated.
-
dysfunctionReason
public String dysfunctionReason()
- Specified by:
dysfunctionReason
in interfacePropertySource
- Overrides:
dysfunctionReason
in classAbstractPropertySource
-
-