de.smartics.pmd.rules.strings
Class StringLiteralEncodingRule

Package class diagram package StringLiteralEncodingRule
java.lang.Object
  extended by net.sourceforge.pmd.CommonAbstractRule
      extended by net.sourceforge.pmd.AbstractJavaRule
          extended by de.smartics.pmd.rules.strings.StringLiteralEncodingRule
All Implemented Interfaces:
net.sourceforge.pmd.ast.JavaParserVisitor, Rule

public class StringLiteralEncodingRule
     
     
extends AbstractJavaRule

Rule to detect usage of characters of disallowed encoding in String literals.


Field Summary
 
Fields inherited from interface net.sourceforge.pmd.Rule
LOWEST_PRIORITY, PRIORITIES
 
Constructor Summary
StringLiteralEncodingRule()
           
 
Method Summary
 String toString()
          Returns the string representation of the class for debugging.
 Object visit(net.sourceforge.pmd.ast.ASTLiteral node, Object data)
          Checks that there are disallowed encoded characters in String literals.
 
Methods inherited from class net.sourceforge.pmd.AbstractJavaRule
addViolation, addViolation, addViolation, addViolationWithMessage, apply, getDeclaringType, importsPackage, isQualifiedName, 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.CommonAbstractRule
addExample, addProperties, addProperty, addRuleChainVisit, asFixedMap, asFixedMap, end, equals, getBooleanProperties, getBooleanProperty, getBooleanProperty, getDescription, getDoubleProperties, getDoubleProperty, getDoubleProperty, getExample, getExamples, getExternalInfoUrl, getIntProperties, getIntProperty, getIntProperty, getMessage, getName, getPriority, getPriorityName, getProperties, getRuleChainVisits, getRuleClass, getRuleSetName, getSince, getStringProperties, getStringProperty, getStringProperty, getTypeProperties, getTypeProperty, hashCode, hasProperty, include, propertiesByName, propertyDescriptorFor, setDescription, setExternalInfoUrl, setInclude, setMessage, setName, setPriority, setProperties, setProperty, setRuleClass, setRuleSetName, setSince, setUsesDFA, setUsesTypeResolution, start, usesDFA, usesRuleChain, usesTypeResolution
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringLiteralEncodingRule

public StringLiteralEncodingRule()
Method Detail

visit

public Object visit(net.sourceforge.pmd.ast.ASTLiteral node,
                    Object data)
Checks that there are disallowed encoded characters in String literals.

Specified by:
visit in interface net.sourceforge.pmd.ast.JavaParserVisitor
Overrides:
visit in class AbstractJavaRule
See Also:
AbstractJavaRule.visit(net.sourceforge.pmd.ast.ASTLiteral, java.lang.Object)

toString

public String toString()
Returns the string representation of the class for debugging.

Overrides:
toString in class Object
Returns:
the string representation of the class for debugging.


Copyright © 2011-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.