net.sourceforge.pmd

Interface Rule

public interface Rule

BSD-style license; for more info see http://pmd.sourceforge.net/license.html
Field Summary
static intLOWEST_PRIORITY
static String[]PRIORITIES
Method Summary
voidaddProperties(Properties properties)
voidaddProperty(String name, String property)
voidapply(List astCompilationUnits, RuleContext ctx)
booleangetBooleanProperty(String name)
StringgetDescription()
doublegetDoubleProperty(String name)
StringgetExample()
StringgetExternalInfoUrl()
intgetIntProperty(String name)
StringgetMessage()
StringgetName()
intgetPriority()
StringgetPriorityName()
PropertiesgetProperties()
StringgetRuleSetName()
StringgetStringProperty(String name)
booleanhasProperty(String name)
booleaninclude()
voidsetDescription(String description)
voidsetExample(String example)
voidsetExternalInfoUrl(String url)
voidsetInclude(boolean include)
voidsetMessage(String message)
voidsetName(String name)
voidsetPriority(int priority)
voidsetRuleSetName(String name)
voidsetUsesDFA()
booleanusesDFA()

Field Detail

LOWEST_PRIORITY

public static final int LOWEST_PRIORITY

PRIORITIES

public static final String[] PRIORITIES

Method Detail

addProperties

public void addProperties(Properties properties)

addProperty

public void addProperty(String name, String property)

apply

public void apply(List astCompilationUnits, RuleContext ctx)

getBooleanProperty

public boolean getBooleanProperty(String name)

getDescription

public String getDescription()

getDoubleProperty

public double getDoubleProperty(String name)

getExample

public String getExample()

getExternalInfoUrl

public String getExternalInfoUrl()

getIntProperty

public int getIntProperty(String name)

getMessage

public String getMessage()

getName

public String getName()

getPriority

public int getPriority()

getPriorityName

public String getPriorityName()

getProperties

public Properties getProperties()

getRuleSetName

public String getRuleSetName()

getStringProperty

public String getStringProperty(String name)

hasProperty

public boolean hasProperty(String name)

include

public boolean include()

setDescription

public void setDescription(String description)

setExample

public void setExample(String example)

setExternalInfoUrl

public void setExternalInfoUrl(String url)

setInclude

public void setInclude(boolean include)

setMessage

public void setMessage(String message)

setName

public void setName(String name)

setPriority

public void setPriority(int priority)

setRuleSetName

public void setRuleSetName(String name)

setUsesDFA

public void setUsesDFA()

usesDFA

public boolean usesDFA()