Package dev.nokee.commons.names
Class TaskName
java.lang.Object
dev.nokee.commons.names.TaskName
- All Implemented Interfaces:
ElementName,Name,Qualifiable,Comparable<Name>
Represents a task name in Gradle.
Task name has three distinct scheme:
- verb-only: linkTest - see
ElementName.taskName(String) - verb and object: compileTestCpp, processTestResources - see
ElementName.taskName(String, String) - object-only: testClasses, testJar - see
ElementName.taskName()andTaskName.Builder.forObject(String)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskName.Builderbuilder()intbooleangetVerb()inthashCode()static TaskNameReturns anTaskNameinstance where qualifiers are appended to the specified task name.static TaskNameReturns anTaskNameinstance where qualifiers are sandwiched between the specified verb and object (sometime referred as target).propSet()qualifiedBy(Qualifier qualifier) Creates a new qualified name for the specified qualifier.static StringDeprecated.toString()withObject(String object)
-
Method Details
-
getVerb
-
withVerb
-
getObject
-
withObject
-
qualifiedBy
Description copied from interface:ElementNameCreates a new qualified name for the specified qualifier.- Specified by:
qualifiedByin interfaceElementName- Specified by:
qualifiedByin interfaceQualifiable- Parameters:
qualifier- the qualifier for this name, must not be null- Returns:
- a new
QualifiedNamerepresenting the qualifying of this name
-
of
Returns anTaskNameinstance where qualifiers are appended to the specified task name. For example:- taskNameSomeQualifier
- Parameters:
taskName- the task name, must not be null- Returns:
- a qualifiable task name
-
of
Returns anTaskNameinstance where qualifiers are sandwiched between the specified verb and object (sometime referred as target). For example:- verbSomeQualifierObject
- Parameters:
verb- the verb for the task name, must not be nullobject- the object/target for the task name, must not be null- Returns:
- a qualifiable task name
-
taskName
Deprecated.Description copied from interface:ElementNameCreates a task name for the specified name.- Parameters:
verb- the verb (prefix), must not be nullobject- the object (suffix), must not be null- Returns:
- a qualifiable name instance
-
toString
-
builder
-
equals
-
compareTo
-
hashCode
public int hashCode() -
propSet
-
with
-
get
-