Class DefaultOperationDescriptor
- java.lang.Object
-
- org.gradle.tooling.events.internal.DefaultOperationDescriptor
-
- All Implemented Interfaces:
OperationDescriptorWrapper,OperationDescriptor
- Direct Known Subclasses:
DefaultProjectConfigurationOperationDescriptor,DefaultTaskOperationDescriptor,DefaultTestOperationDescriptor,DefaultTestOutputOperationDescriptor,DefaultTransformOperationDescriptor,DefaultWorkItemOperationDescriptor
public class DefaultOperationDescriptor extends java.lang.Object implements OperationDescriptor, OperationDescriptorWrapper
Implementation of theOperationDescriptorinterface, for those operations which are performed by the provider.
-
-
Constructor Summary
Constructors Constructor Description DefaultOperationDescriptor(InternalOperationDescriptor internalDescriptor, OperationDescriptor parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Returns a human consumable display name for the operation.InternalOperationDescriptorgetInternalOperationDescriptor()java.lang.StringgetName()Returns the name of the operation.OperationDescriptorgetParent()Returns the parent operation, if any.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultOperationDescriptor
public DefaultOperationDescriptor(InternalOperationDescriptor internalDescriptor, OperationDescriptor parent)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:OperationDescriptorReturns 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:
getNamein interfaceOperationDescriptor- Returns:
- The name of the operation.
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:OperationDescriptorReturns a human consumable display name for the operation. This display name provides enough context for a human to uniquely identify the operation.- Specified by:
getDisplayNamein interfaceOperationDescriptor- Returns:
- The display name of the operation.
-
getParent
@Nullable public OperationDescriptor getParent()
Description copied from interface:OperationDescriptorReturns the parent operation, if any.- Specified by:
getParentin interfaceOperationDescriptor- Returns:
- The parent operation.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getInternalOperationDescriptor
public InternalOperationDescriptor getInternalOperationDescriptor()
- Specified by:
getInternalOperationDescriptorin interfaceOperationDescriptorWrapper
-
-