Package net.sourceforge.pmd.properties
Class RegexProperty.RegexPBuilder
- java.lang.Object
-
- net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilder<E,T>
-
- net.sourceforge.pmd.properties.builders.SingleValuePropertyBuilder<Pattern,RegexProperty.RegexPBuilder>
-
- net.sourceforge.pmd.properties.RegexProperty.RegexPBuilder
-
- Enclosing class:
- RegexProperty
@Deprecated public static final class RegexProperty.RegexPBuilder extends SingleValuePropertyBuilder<Pattern,RegexProperty.RegexPBuilder>
Deprecated.Builder for aRegexProperty
.
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.properties.builders.SingleValuePropertyBuilder
defaultValue
-
Fields inherited from class net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilder
description, isDefinedInXML, name, uiOrder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RegexProperty
build()
Deprecated.Builds the descriptor and returns it.RegexProperty.RegexPBuilder
defaultValue(String val)
Deprecated.Specify a default pattern for the property.-
Methods inherited from class net.sourceforge.pmd.properties.builders.SingleValuePropertyBuilder
defaultValue
-
Methods inherited from class net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilder
desc, getName, uiOrder
-
-
-
-
Method Detail
-
defaultValue
public RegexProperty.RegexPBuilder defaultValue(String val)
Deprecated.Specify a default pattern for the property. The argument must be a valid regex pattern.- Parameters:
val
- Regex pattern- Returns:
- The same builder
-
build
public RegexProperty build()
Deprecated.Description copied from class:PropertyDescriptorBuilder
Builds the descriptor and returns it.- Specified by:
build
in classPropertyDescriptorBuilder<Pattern,RegexProperty.RegexPBuilder>
- Returns:
- The built descriptor
-
-