public final class CLOC extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CLOC.Builder
Facilitates the construction of
CLOC command instances. |
| Modifier and Type | Method and Description |
|---|---|
static CLOC.Builder |
command()
Obtain a new
Builder for constructing a command. |
com.fasterxml.jackson.databind.node.ObjectNode |
countFiles()
Count the number of files, reporting results by language.
|
com.fasterxml.jackson.databind.node.ObjectNode |
linesByFile()
Count the physical lines of source code, reporting results by file.
|
com.fasterxml.jackson.databind.node.ObjectNode |
linesByFileAndLanguage()
Count the physical lines of source code, reporting results by file and language.
|
com.fasterxml.jackson.databind.node.ObjectNode |
linesByLanguage()
Count the physical lines of source code, reporting results by language.
|
static void |
setOutputMapper(@Nullable com.fasterxml.jackson.databind.json.JsonMapper mapper)
Set the
JsonMapper to use for parsing the output of the command. |
public static void setOutputMapper(@Nullable
@Nullable com.fasterxml.jackson.databind.json.JsonMapper mapper)
JsonMapper to use for parsing the output of the command.mapper - the mapper to use, or null to revert to the default instance.public static CLOC.Builder command()
Builder for constructing a command.public com.fasterxml.jackson.databind.node.ObjectNode linesByLanguage()
throws CLOCException
CLOCException - if an error occurs while executing the command.public com.fasterxml.jackson.databind.node.ObjectNode linesByFile()
throws CLOCException
CLOCException - if an error occurs while executing the command.public com.fasterxml.jackson.databind.node.ObjectNode linesByFileAndLanguage()
throws CLOCException
CLOCException - if an error occurs while executing the command.public com.fasterxml.jackson.databind.node.ObjectNode countFiles()
throws CLOCException
CLOCException - if an error occurs while executing the command.Copyright © 2024 SEART. All rights reserved.