Class ConsumerOperationDescriptor
- java.lang.Object
-
- org.gradle.tooling.events.internal.ConsumerOperationDescriptor
-
- All Implemented Interfaces:
OperationDescriptor
public class ConsumerOperationDescriptor extends java.lang.Object implements OperationDescriptor
Implementation of theOperationDescriptor
interface, for those operations which are performed by the consumer.
-
-
Constructor Summary
Constructors Constructor Description ConsumerOperationDescriptor(java.lang.String displayName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayName()
Returns a human consumable display name for the operation.java.lang.String
getName()
Returns the name of the operation.OperationDescriptor
getParent()
Returns the parent operation, if any.java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:OperationDescriptor
Returns the name of the operation. This name does not necessarily uniquely identify the operation. However, the name can be used by a human to disambiguate between the children of a given operation.- Specified by:
getName
in interfaceOperationDescriptor
- Returns:
- The name of the operation.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:OperationDescriptor
Returns a human consumable display name for the operation. This display name provides enough context for a human to uniquely identify the operation.- Specified by:
getDisplayName
in interfaceOperationDescriptor
- Returns:
- The display name of the operation.
-
getParent
@Nullable public OperationDescriptor getParent()
Description copied from interface:OperationDescriptor
Returns the parent operation, if any.- Specified by:
getParent
in interfaceOperationDescriptor
- Returns:
- The parent operation.
-
-