Package dev.nokee.commons.names
Class CppNames
java.lang.Object
dev.nokee.commons.names.CppNames
Task and configuration names for cpp-library, cpp-application and cpp-unit-test plugins.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringapiConfigurationName(CppComponent component) Returns thequalifyingNameApiconfiguration name.static StringcompileTaskName(CppBinary binary) Returns thecompileQualifyingNameCpptask name.static StringcompileTaskName(CppBinary binary, String language) Returns thecompileQualifyingNameLanguagetask name.static StringcppApiElementsConfigurationName(CppComponent component) Returns thequalifyingNameCppApiElementsconfiguration name.static StringcppCompileConfigurationName(CppBinary binary) Returns thecppCompileQualifyingNameconfiguration name.static StringReturns thebinaryNameImplementationconfiguration name.static StringimplementationConfigurationName(CppComponent component) Returns thequalifyingNameImplementationconfiguration name.static StringReturns thequalifyingNameLinkElementsconfiguration name.static StringlinkTaskName(CppBinary binary) Returns thelinkQualifyingNametask name.static StringnativeLinkConfigurationName(CppBinary binary) Returns thenativeLinkQualifyingNameconfiguration name.static StringReturns thenativeRuntimeQualifyingNameconfiguration name.static CppNames.ForBinarystatic CppNames.ForComponentof(CppComponent component) static QualifyingNamequalifyingName(Named componentOrBinary) Returns the qualifying name for nested domain object of the specified C++ component or binary.static StringReturns thequalifyingNameRuntimeElementsconfiguration name.
-
Constructor Details
-
CppNames
public CppNames()
-
-
Method Details
-
of
-
of
-
qualifyingName
Returns the qualifying name for nested domain object of the specified C++ component or binary.We use deep modeling of the domain object name to allow horizontal name translation. Because of the accordion naming scheme, some dimensions of the name may be lost. For this reason, we will try our best to account for those lost dimensions.
- Parameters:
componentOrBinary- the C++ component/binary object to extract the qualifying name from, must not be null- Returns:
- a qualifying name
-
cppApiElementsConfigurationName
Returns thequalifyingNameCppApiElementsconfiguration name. For example:- cppApiElements
CppTestSuite, for convenience only- Parameters:
component- the C++ component object that qualify the configuration name, must not be null- Returns:
- a configuration name
-
implementationConfigurationName
Returns thequalifyingNameImplementationconfiguration name. For example:- implementation - for
ProductionCppComponent - testImplementation - for
CppTestSuite
- Parameters:
component- the C++ component object that qualify the configuration name, must not be null- Returns:
- a configuration name
- See Also:
- implementation - for
-
apiConfigurationName
Returns thequalifyingNameApiconfiguration name. For example:- api - for
CppLibrary
- Parameters:
component- the C++ component object that qualify the configuration name, must not be null- Returns:
- a configuration name
- api - for
-
implementationConfigurationName
Returns thebinaryNameImplementationconfiguration name. For example:- mainReleaseImplementation
- mainLinuxDebugImplementation
- testExecutableImplementation - for
CppTestExecutable
- Parameters:
binary- the C++ binary object that qualify the configuration name, must not be null- Returns:
- a configuration name
-
linkElementsConfigurationName
Returns thequalifyingNameLinkElementsconfiguration name. For example:- releaseLinkElements
- linuxDebugLinkElements
CppTestExecutable.- Parameters:
binary- the C++ binary object that qualify the configuration name, must not be null- Returns:
- a configuration name
-
runtimeElementsConfigurationName
Returns thequalifyingNameRuntimeElementsconfiguration name. For example:- releaseRuntimeElements
- linuxDebugRuntimeElements
CppTestExecutable.- Parameters:
binary- the C++ binary object that qualify the configuration name, must not be null- Returns:
- a configuration name
-
nativeLinkConfigurationName
Returns thenativeLinkQualifyingNameconfiguration name. For example:- nativeLinkRelease
- nativeLinkLinuxDebug
- nativeLinkTest
- Parameters:
binary- the C++ binary object that qualify the configuration name, must not be null- Returns:
- a configuration name
-
nativeRuntimeConfigurationName
Returns thenativeRuntimeQualifyingNameconfiguration name. For example:- nativeRuntimeRelease
- nativeRuntimeLinuxDebug
- nativeRuntimeTest
- Parameters:
binary- the C++ binary object that qualify the configuration name, must not be null- Returns:
- a configuration name
-
compileTaskName
Returns thecompileQualifyingNameCpptask name. For example:- compileReleaseCpp
- compileLinuxDebugCpp
- compileTestCpp
- Parameters:
binary- the C++ binary object that qualify the task name, must not be null- Returns:
- a task name
-
compileTaskName
Returns thecompileQualifyingNameLanguagetask name. For example:- compileReleaseC
- compileTestDebugObjCpp
- Parameters:
binary- the C++ binary object that qualify the task name, must not be nulllanguage- the implementation language to compile, must not be null- Returns:
- a task name
-
linkTaskName
Returns thelinkQualifyingNametask name. For example:- linkRelease
- linkLinuxDebug
- linkTest
- Parameters:
binary- the C++ binary object that qualify the task name, must not be null- Returns:
- a task name
-
cppCompileConfigurationName
Returns thecppCompileQualifyingNameconfiguration name. For example:- cppCompileRelease
- cppCompileLinuxDebug
- cppCompileTest
- Parameters:
binary- the C++ binary object that qualify the configuration name, must not be null- Returns:
- a configuration name
-