本文整理了Java中net.sourceforge.pmd.Rule.getPropertyDescriptors
方法的一些代码示例,展示了Rule.getPropertyDescriptors
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rule.getPropertyDescriptors
方法的具体详情如下:
包路径:net.sourceforge.pmd.Rule
类名称:Rule
方法名:getPropertyDescriptors
暂无
代码示例来源:origin: pmd/pmd
@Override
public List<PropertyDescriptor<?>> getPropertyDescriptors() {
return rule.getPropertyDescriptors();
}
代码示例来源:origin: pmd/pmd
if (!rule.getPropertyDescriptors().isEmpty()) {
result += "\\n\\n### [PMD properties](" + PMD_PROPERTIES_URL + ")\\n\\n";
result += "Name | Value | Description\\n";
result += "--- | --- | ---\\n";
for (PropertyDescriptor<?> property : rule.getPropertyDescriptors()) {
String propertyName = property.name().replaceAll("\\_", "\\\\_");
if (INTERNAL_DEV_PROPERTIES.contains(propertyName)) {
代码示例来源:origin: pmd/pmd
List<PropertyDescriptor<?>> properties = new ArrayList<>(rule.getPropertyDescriptors());
代码示例来源:origin: pmd/pmd
if (!rule.getPropertyDescriptors().contains(descriptor)) {
rule.definePropertyDescriptor(descriptor);
代码示例来源:origin: pmd/pmd
assertEquals(message + ", Rule examples", rule1.getExamples(), rule2.getExamples());
List<PropertyDescriptor<?>> propertyDescriptors1 = rule1.getPropertyDescriptors();
List<PropertyDescriptor<?>> propertyDescriptors2 = rule2.getPropertyDescriptors();
assertEquals(message + ", Rule property descriptor ", propertyDescriptors1, propertyDescriptors2);
for (int j = 0; j < propertyDescriptors1.size(); j++) {
代码示例来源:origin: pmd/pmd
rule.getRuleClass(), rule.isDfa(), rule.isTypeResolution(), rule.isMultifile(),
rule.getDescription(),
rule.getPriority(), rule.getPropertyDescriptors(), rule.getPropertiesByPropertyDescriptor(),
rule.getExamples());
代码示例来源:origin: net.sourceforge.pmd/pmd-core
@Override
public List<PropertyDescriptor<?>> getPropertyDescriptors() {
return rule.getPropertyDescriptors();
}
代码示例来源:origin: net.sourceforge.pmd/pmd-core
if (!rule.getPropertyDescriptors().isEmpty()) {
result += "\\n\\n### [PMD properties](" + PMD_PROPERTIES_URL + ")\\n\\n";
result += "Name | Value | Description\\n";
result += "--- | --- | ---\\n";
for (PropertyDescriptor<?> property : rule.getPropertyDescriptors()) {
String propertyName = property.name().replaceAll("\\_", "\\\\_");
if (INTERNAL_DEV_PROPERTIES.contains(propertyName)) {
代码示例来源:origin: net.sourceforge.pmd/pmd-core
if (!rule.getPropertyDescriptors().contains(descriptor)) {
rule.definePropertyDescriptor(descriptor);
代码示例来源:origin: net.sourceforge.pmd/pmd-test
assertEquals(message + ", Rule examples", rule1.getExamples(), rule2.getExamples());
List<PropertyDescriptor<?>> propertyDescriptors1 = rule1.getPropertyDescriptors();
List<PropertyDescriptor<?>> propertyDescriptors2 = rule2.getPropertyDescriptors();
assertEquals(message + ", Rule property descriptor ", propertyDescriptors1, propertyDescriptors2);
for (int j = 0; j < propertyDescriptors1.size(); j++) {
代码示例来源:origin: net.sourceforge.pmd/pmd-core
rule.getRuleClass(), rule.isDfa(), rule.isTypeResolution(), rule.isMultifile(),
rule.getDescription(),
rule.getPriority(), rule.getPropertyDescriptors(), rule.getPropertiesByPropertyDescriptor(),
rule.getExamples());
内容来源于网络,如有侵权,请联系作者删除!