Package net.sourceforge.pmd.lang
Class ParserOptions
- java.lang.Object
-
- net.sourceforge.pmd.lang.ParserOptions
-
public class ParserOptions extends Object
Represents a set of configuration options for aParser
. For each unique combination of ParserOptions a Parser will be used to create an AST. Therefore, implementations must implementObject.equals(Object)
andObject.hashCode()
.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
suppressMarker
Deprecated.UsegetSuppressMarker()
instead.
-
Constructor Summary
Constructors Constructor Description ParserOptions()
ParserOptions(String languageId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
defineProperty(PropertyDescriptor<?> propertyDescriptor)
protected <T> void
defineProperty(PropertyDescriptor<T> propertyDescriptor, T initialValue)
boolean
equals(Object obj)
<T> T
getProperty(PropertyDescriptor<T> propertyDescriptor)
String
getSuppressMarker()
int
hashCode()
protected void
overridePropertiesFromEnv()
Overrides the default PropertyDescriptors with values found in environment variables.protected <T> void
setProperty(PropertyDescriptor<T> propertyDescriptor, T initialValue)
void
setSuppressMarker(String suppressMarker)
-
-
-
Field Detail
-
suppressMarker
@Deprecated protected String suppressMarker
Deprecated.UsegetSuppressMarker()
instead.
-
-
Constructor Detail
-
ParserOptions
public ParserOptions()
-
ParserOptions
public ParserOptions(String languageId)
-
-
Method Detail
-
getSuppressMarker
public String getSuppressMarker()
-
setSuppressMarker
public void setSuppressMarker(String suppressMarker)
-
defineProperty
protected final void defineProperty(PropertyDescriptor<?> propertyDescriptor)
-
defineProperty
protected final <T> void defineProperty(PropertyDescriptor<T> propertyDescriptor, T initialValue)
-
setProperty
protected final <T> void setProperty(PropertyDescriptor<T> propertyDescriptor, T initialValue)
-
getProperty
public final <T> T getProperty(PropertyDescriptor<T> propertyDescriptor)
-
overridePropertiesFromEnv
protected final void overridePropertiesFromEnv()
Overrides the default PropertyDescriptors with values found in environment variables. TODO: Move this to net.sourceforge.pmd.PMD#parserFor when CLI options are implemented
-
-