net.sourceforge.pmd.Rule.getPropertyDescriptors()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(150)

本文整理了Java中net.sourceforge.pmd.Rule.getPropertyDescriptors方法的一些代码示例,展示了Rule.getPropertyDescriptors的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rule.getPropertyDescriptors方法的具体详情如下:
包路径:net.sourceforge.pmd.Rule
类名称:Rule
方法名:getPropertyDescriptors

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());

相关文章