Index
All Classes|All Packages
A
- AbstractCacheableFormatter - Class in net.revelc.code.formatter
- AbstractCacheableFormatter() - Constructor for class net.revelc.code.formatter.AbstractCacheableFormatter
- addProfile(Profile) - Method in class net.revelc.code.formatter.model.Profiles
-
Adds the profile.
- addSetting(Setting) - Method in class net.revelc.code.formatter.model.Profile
-
Adds the setting.
- AUTO - net.revelc.code.formatter.LineEnding
C
- ConfigReader - Class in net.revelc.code.formatter.model
-
This class reads a config file for Eclipse code formatter.
- ConfigReader() - Constructor for class net.revelc.code.formatter.model.ConfigReader
- ConfigReadException - Exception in net.revelc.code.formatter.model
-
An exception thrown when there is an error reading settings from the code formatter profile of an Eclipse formatter config file.
- ConfigReadException(String) - Constructor for exception net.revelc.code.formatter.model.ConfigReadException
-
Instantiates a new config read exception.
- ConfigurationSource - Interface in net.revelc.code.formatter
- CR - net.revelc.code.formatter.LineEnding
- CRLF - net.revelc.code.formatter.LineEnding
- CSS - net.revelc.code.formatter.Type
- CssFormatter - Class in net.revelc.code.formatter.css
- CssFormatter() - Constructor for class net.revelc.code.formatter.css.CssFormatter
D
- determineLineEnding(String) - Static method in enum net.revelc.code.formatter.LineEnding
-
Returns the most occurring line-ending characters in the file text or null if no line-ending occurs the most.
- doFormat(String, LineEnding) - Method in class net.revelc.code.formatter.AbstractCacheableFormatter
- doFormat(String, LineEnding) - Method in class net.revelc.code.formatter.css.CssFormatter
- doFormat(String, LineEnding) - Method in class net.revelc.code.formatter.java.JavaFormatter
- doFormat(String, LineEnding) - Method in class net.revelc.code.formatter.javascript.JavascriptFormatter
- doFormat(String, LineEnding) - Method in class net.revelc.code.formatter.json.JsonFormatter
- doFormat(String, LineEnding) - Method in class net.revelc.code.formatter.jsoup.JsoupBasedFormatter
- doFormat(String, LineEnding) - Method in class net.revelc.code.formatter.xml.XMLFormatter
- doFormatFile(File, FormatterMojo.ResultCollector, Properties, String, boolean) - Method in class net.revelc.code.formatter.FormatterMojo
-
Format individual file.
- doFormatFile(File, FormatterMojo.ResultCollector, Properties, String, boolean) - Method in class net.revelc.code.formatter.ValidateMojo
E
- encoding - Variable in class net.revelc.code.formatter.AbstractCacheableFormatter
- execute() - Method in class net.revelc.code.formatter.FormatterMojo
-
Execute.
- execute() - Method in class net.revelc.code.formatter.HelpMojo
- execute() - Method in class net.revelc.code.formatter.ValidateMojo
F
- FAIL - net.revelc.code.formatter.Result
- formatFile(File, String, LineEnding) - Method in class net.revelc.code.formatter.AbstractCacheableFormatter
- formatFile(File, String, LineEnding) - Method in interface net.revelc.code.formatter.Formatter
-
Format individual file.
- Formatter - Interface in net.revelc.code.formatter
- FormatterMojo - Class in net.revelc.code.formatter
-
A Maven plugin mojo to format Java source code using the Eclipse code formatter.
- FormatterMojo() - Constructor for class net.revelc.code.formatter.FormatterMojo
G
- getChars() - Method in enum net.revelc.code.formatter.LineEnding
- getCompilerCodegenTargetPlatform() - Method in interface net.revelc.code.formatter.ConfigurationSource
- getCompilerCodegenTargetPlatform() - Method in class net.revelc.code.formatter.FormatterMojo
- getCompilerCompliance() - Method in interface net.revelc.code.formatter.ConfigurationSource
- getCompilerCompliance() - Method in class net.revelc.code.formatter.FormatterMojo
- getCompilerSources() - Method in interface net.revelc.code.formatter.ConfigurationSource
- getCompilerSources() - Method in class net.revelc.code.formatter.FormatterMojo
- getEncoding() - Method in interface net.revelc.code.formatter.ConfigurationSource
- getEncoding() - Method in class net.revelc.code.formatter.FormatterMojo
- getId() - Method in class net.revelc.code.formatter.model.Setting
-
Gets the id.
- getKind() - Method in class net.revelc.code.formatter.model.Profile
-
Gets the kind.
- getLog() - Method in interface net.revelc.code.formatter.ConfigurationSource
- getProfiles() - Method in class net.revelc.code.formatter.model.Profiles
-
Gets the profiles.
- getRegions(String, Pattern) - Static method in class net.revelc.code.formatter.java.JavaFormatter
- getSettings() - Method in class net.revelc.code.formatter.model.Profile
-
Gets the settings.
- getTargetDirectory() - Method in interface net.revelc.code.formatter.ConfigurationSource
- getTargetDirectory() - Method in class net.revelc.code.formatter.FormatterMojo
- getValue() - Method in class net.revelc.code.formatter.model.Setting
-
Gets the value.
H
- HelpMojo - Class in net.revelc.code.formatter
-
Display help information on formatter-maven-plugin.
Callmvn formatter:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details. - HelpMojo() - Constructor for class net.revelc.code.formatter.HelpMojo
- HTML - net.revelc.code.formatter.Type
- HTMLFormatter - Class in net.revelc.code.formatter.html
- HTMLFormatter() - Constructor for class net.revelc.code.formatter.html.HTMLFormatter
I
- init(Map<String, String>, ConfigurationSource) - Method in class net.revelc.code.formatter.AbstractCacheableFormatter
- init(Map<String, String>, ConfigurationSource) - Method in class net.revelc.code.formatter.css.CssFormatter
- init(Map<String, String>, ConfigurationSource) - Method in interface net.revelc.code.formatter.Formatter
-
Initialize the
CodeFormatter
instance to be used by this component. - init(Map<String, String>, ConfigurationSource) - Method in class net.revelc.code.formatter.java.JavaFormatter
- init(Map<String, String>, ConfigurationSource) - Method in class net.revelc.code.formatter.javascript.JavascriptFormatter
- init(Map<String, String>, ConfigurationSource) - Method in class net.revelc.code.formatter.json.JsonFormatter
- init(Map<String, String>, ConfigurationSource) - Method in class net.revelc.code.formatter.jsoup.JsoupBasedFormatter
- init(Map<String, String>, ConfigurationSource) - Method in class net.revelc.code.formatter.xml.XMLFormatter
- initCfg(ConfigurationSource) - Method in class net.revelc.code.formatter.AbstractCacheableFormatter
- isInitialized() - Method in class net.revelc.code.formatter.css.CssFormatter
- isInitialized() - Method in interface net.revelc.code.formatter.Formatter
-
return true if this formatter have been initialized
- isInitialized() - Method in class net.revelc.code.formatter.java.JavaFormatter
- isInitialized() - Method in class net.revelc.code.formatter.javascript.JavascriptFormatter
- isInitialized() - Method in class net.revelc.code.formatter.json.JsonFormatter
- isInitialized() - Method in class net.revelc.code.formatter.jsoup.JsoupBasedFormatter
- isInitialized() - Method in class net.revelc.code.formatter.xml.XMLFormatter
J
- JAVA - net.revelc.code.formatter.Type
- JavaFormatter - Class in net.revelc.code.formatter.java
- JavaFormatter() - Constructor for class net.revelc.code.formatter.java.JavaFormatter
- JAVASCRIPT - net.revelc.code.formatter.Type
- JavascriptFormatter - Class in net.revelc.code.formatter.javascript
- JavascriptFormatter() - Constructor for class net.revelc.code.formatter.javascript.JavascriptFormatter
- JSON - net.revelc.code.formatter.Type
- JsonFormatter - Class in net.revelc.code.formatter.json
- JsonFormatter() - Constructor for class net.revelc.code.formatter.json.JsonFormatter
- JsoupBasedFormatter - Class in net.revelc.code.formatter.jsoup
- JsoupBasedFormatter() - Constructor for class net.revelc.code.formatter.jsoup.JsoupBasedFormatter
K
- KEEP - net.revelc.code.formatter.LineEnding
L
- LF - net.revelc.code.formatter.LineEnding
- LineEnding - Enum in net.revelc.code.formatter
- log - Variable in class net.revelc.code.formatter.AbstractCacheableFormatter
N
- net.revelc.code.formatter - package net.revelc.code.formatter
-
Formatter Mojo package.
- net.revelc.code.formatter.css - package net.revelc.code.formatter.css
-
CSS Formatter Extension package.
- net.revelc.code.formatter.html - package net.revelc.code.formatter.html
-
HTML Formatter Extension package.
- net.revelc.code.formatter.java - package net.revelc.code.formatter.java
-
Java Formatter Extension package.
- net.revelc.code.formatter.javascript - package net.revelc.code.formatter.javascript
-
Javascript Formatter Extension package.
- net.revelc.code.formatter.json - package net.revelc.code.formatter.json
-
JSON Formatter Extension package.
- net.revelc.code.formatter.jsoup - package net.revelc.code.formatter.jsoup
-
Jsoup Base Formatter Extension package used by html formatter.
- net.revelc.code.formatter.model - package net.revelc.code.formatter.model
-
Formatter Model Package with configuration reader, profile, rule sets, and settings.
- net.revelc.code.formatter.xml - package net.revelc.code.formatter.xml
-
XML Formatter Extension package.
P
- Profile - Class in net.revelc.code.formatter.model
-
A class representing the profile XML element in the Eclipse formatter config file, including the kind attribute and Map of setting id and value.
- Profile() - Constructor for class net.revelc.code.formatter.model.Profile
- PROFILE_KIND - Static variable in class net.revelc.code.formatter.model.Profiles
-
The Constant PROFILE_KIND.
- Profiles - Class in net.revelc.code.formatter.model
-
A class representing the profiles XML element in the Eclipse formatter config file, including a List of profile setting Maps with id and value.
- Profiles() - Constructor for class net.revelc.code.formatter.model.Profiles
R
- read(InputStream) - Method in class net.revelc.code.formatter.model.ConfigReader
-
Read from the
input
and return it's configuration settings as aMap
. - Result - Enum in net.revelc.code.formatter
S
- setExclusionPattern(String) - Method in class net.revelc.code.formatter.java.JavaFormatter
- setId(String) - Method in class net.revelc.code.formatter.model.Setting
-
Sets the id.
- setKind(String) - Method in class net.revelc.code.formatter.model.Profile
-
Sets the kind.
- Setting - Class in net.revelc.code.formatter.model
-
A class representing the setting XML element in the Eclipse formatter config file, including the id and value attributes.
- Setting() - Constructor for class net.revelc.code.formatter.model.Setting
- setValue(String) - Method in class net.revelc.code.formatter.model.Setting
-
Sets the value.
- SKIPPED - net.revelc.code.formatter.Result
- SUCCESS - net.revelc.code.formatter.Result
T
- toString() - Method in enum net.revelc.code.formatter.Type
- Type - Enum in net.revelc.code.formatter
-
Supported types to be formatted
U
- UNKNOWN - net.revelc.code.formatter.LineEnding
V
- ValidateMojo - Class in net.revelc.code.formatter
-
This mojo is very similar to Formatter mojo, but it is focused on CI servers.
- ValidateMojo() - Constructor for class net.revelc.code.formatter.ValidateMojo
- valueOf(String) - Static method in enum net.revelc.code.formatter.LineEnding
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.revelc.code.formatter.Result
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.revelc.code.formatter.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum net.revelc.code.formatter.LineEnding
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.revelc.code.formatter.Result
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.revelc.code.formatter.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
X
- XML - net.revelc.code.formatter.Type
- XMLFormatter - Class in net.revelc.code.formatter.xml
- XMLFormatter() - Constructor for class net.revelc.code.formatter.xml.XMLFormatter
All Classes|All Packages