Packages

trait PrettyUtil extends AnyRef

Utility methods for constructing Pretty instances.

Linear Supertypes
Known Subclasses
ApplicationId, CommandId, DomainAlias, WorkflowId, GetTransactionById, CantonStatus, CommunityCantonStatus, EnterpriseCantonStatus, ApiType, Grpc, Http, CommunityDbConfig, H2, Postgres, CryptoProvider, Jce, Tink, DbConfig, EnterpriseDbConfig, H2, Oracle, Postgres, H2DbConfig, PostgresDbConfig, InstanceName, NonNegativeNumeric, Port, PositiveNumeric, RefinedNumeric, CommunityLocalDomainReference, CommunityRemoteDomainReference, DomainManagerNodeReference, DomainReference, EnterpriseDomainReference, EnterpriseLocalDomainReference, EnterpriseRemoteDomainReference, GrpcRemoteInstanceReference, InstanceReference, InstanceReferenceWithSequencerConnection, LocalDomainManagerReference, LocalDomainReference, LocalInstanceReference, LocalMediatorReference, LocalParticipantReference, LocalSequencerNodeReference, MediatorReference, ParticipantReference, RemoteDomainManagerReference, RemoteDomainReference, RemoteInstanceReference, RemoteMediatorReference, RemoteParticipantReference, RemoteSequencerNodeReference, SequencerNodeReference, CertificateId, CryptoKeyFormat, Der, Raw, Symbolic, Tink, DecryptionError, DecryptionKeyError, FailedToDecrypt, FailedToDeserialize, InvalidEncryptionKey, InvalidSymmetricKey, KeyStoreError, UnknownEncryptionKey, EncryptionError, FailedToEncrypt, InvalidEncryptionKey, InvalidSymmetricKey, EncryptionKeyGenerationError, EncryptionPrivateStoreError, EncryptionPublicStoreError, FingerprintError, GeneralError, NameInvalidError, UnsupportedKeyScheme, EncryptionKeyScheme, EciesP256HkdfHmacSha256Aes128Gcm, EncryptionPublicKey, Fingerprint, Hash, HkdfError, HkdfHmacError, HkdfKeyTooShort, HkdfOutputNegative, HkdfOutputTooLong, Hmac, HmacAlgorithm, HmacSha256, HmacError, EmptyHmacSecret, FailedToComputeHmac, HmacPrivateStoreError, InvalidHmacLength, InvalidHmacSecret, MissingHmacSecret, UnknownHmacAlgorithm, HmacSecret, JavaKeyConversionError, GeneralError, InvalidKey, KeyStoreError, UnsupportedAlgorithm, UnsupportedKeyFormat, UnsupportedKeyScheme, KeyPurpose, Encryption, Signing, Salt, SaltAlgorithm, Hmac, SaltError, HmacGenerationError, InvalidSaltCreation, Signature, SignatureCheckError, GeneralError, InvalidCryptoScheme, InvalidKeyError, InvalidSignature, SignatureWithWrongKey, SignerHasNoValidKeys, SigningError, FailedToSign, GeneralError, InvalidSigningKey, KeyStoreError, UnknownSigningKey, SigningKeyGenerationError, FingerprintError, GeneralError, NameInvalidError, SigningPrivateStoreError, SigningPublicStoreError, UnsupportedKeyScheme, SigningKeyScheme, EcDsaP256, EcDsaP384, Ed25519, Sm2, SigningPublicKey, SymmetricKeyScheme, Aes128Gcm, SyncCryptoError, KeyNotAvailable, StoreError, SyncCryptoDecryptionError, SyncCryptoEncryptionError, SyncCryptoSigningError, CryptoPrivateStoreError, FailedToDeleteKey, FailedToInsertHmacSecret, FailedToInsertKey, FailedToListKeys, FailedToLoadHmacSecret, FailedToReadKey, HmacSecretAlreadyExists, KeyAlreadyExists, CryptoPublicStoreError, CertificateAlreadyExists, FailedToInsertCertificate, FailedToInsertKey, FailedToListCertificates, FailedToListKeys, FailedToReadKey, KeyAlreadyExists, ActionDescription, CreateActionDescription, ExerciseActionDescription, FetchActionDescription, InvalidActionDescription, LookupByKeyActionDescription, AssignedKey, BlindedNode, CantonTimestamp, CantonTimestampSecond, CommonMetadata, ConfirmingParty, FreeKey, FullInformeeTree, FullTransferInTree, FullTransferOutTree, GenTransactionTree, GenTransferViewTree, Informee, KeyResolution, LightTransactionViewTree, MerkleSeq, MerkleSeqElement, MerkleTree, MerkleTreeInnerNode, MerkleTreeLeaf, ParticipantMetadata, PlainInformee, SubmitterMetadata, TimedTask, Timestamp, TransactionView, TransactionViewTree, TransferInCommonData, TransferInView, TransferInViewTree, TransferOutCommonData, TransferOutView, TransferOutViewTree, ViewCommonData, ViewParticipantData, ViewTree, ViewType, TransactionViewType, TransferInViewType, TransferOutViewType, InvalidWitnesses, ResponseAggregation, ViewState, ReadState, PayloadId, SequencerMemberId, DomainStatus, MediatorNodeStatus, NodeStatus, Failure, NotInitialized, Status, Success, ParticipantStatus, SequencerHealthStatus, SequencerNodeStatus, SimpleStatus, TopologyQueueStatus, CommandResult, Failed, MaxRetriesReached, Success, Pretty, PrettyPrinting, PrettyUtil, RepairContext, DomainConnectionConfig, RecordTime, FailedToConfigureIndexer, FailedToConfigureLedgerApiStorage, FailedToStartLedgerApiServer, FailedToStopIndexer, FailedToStopLedgerApiServer, LedgerApiServerError, LedgerApiServerErrorWithoutCause, CausalityUpdate, AcsCommitment, CausalityMessageKind, DeliveryMessageKind, MalformedMediatorRequestMessage, MalformedMessage, MessageKind, RequestKind, ResultKind, TopologyTransaction, UnspecifiedMessageKind, MessageProcessingStartingPoint, ProcessingStartingPoints, ConflictingContractData, ContractStoreError, DecisionTimeElapsed, MalformedPayload, NoMediatorError, ProcessorError, RequestProcessingError, RequestTrackerError, ResultProcessingError, SequencerDeliverError, SequencerRequestError, SequencerTimeoutError, SubmissionProcessingError, TimeoutResultTooEarly, UnknownPendingRequest, ViewMessageDecryptionError, WrongRootHash, NonterminalRequestState, RequestData, RequestState, Clean, Confirmed, Pending, RequestStateWithCursor, FailedToStoreContract, FieldConversionError, GenericStepsError, Error, SubmissionAlreadyInFlight, Rejection, Error, TransactionProcessorError, TransactionSubmissionError, ViewParticipantDataError, TransactionUpdate, TransferInUpdate, TransferOutUpdate, ActivenessCheck, ActivenessCheckResult, ActivenessResult, ActivenessSet, CommitSet, LockedStates, ImmutableLockableState, LockableState, LockableStatesCheckHandle, MutableLockableState, TimedTask, CommitSetAlreadyExists, CommitSetError, RequestAlreadyExists, RequestNotFound, RequestTrackerError, ResultAlreadyExists, ResultError, ResultNotFound, ChangeIdHash, ConfirmationRequestCreationError, ContractConsistencyError, ContractKeyConsistencyError, DamlAuthorizationError, EncryptedViewMessageCreationError, KeySeedError, MalformedLfTransaction, MalformedSubmitter, ParticipantAuthorizationError, RecipientsCreationError, SeedGeneratorError, TransactionTreeFactoryError, EncryptedViewMessageCreationError, FailedToEncryptViewMessage, FailedToExpandKey, FailedToGenerateEncryptionKey, FailedToSignViewMessage, UnableToDetermineKey, UnableToDetermineParticipant, InFlightSubmission, SequencedSubmission, SubmissionSequencingInfo, SubmissionTrackingData, TransactionSubmissionTrackingData, CauseWithTemplate, RejectionCause, TimeoutCause, ContractLookupError, DivergingKeyResolutionError, PackageUnknownTo, SubmitterMetadataError, TooFewSalts, TransactionTreeConversionError, UnknownPackageError, ViewParticipantDataError, UnsequencedSubmission, MarkTooLow, ContractDataMismatch, CreatingTransactionIdMismatch, IdentityStateNotAvailable, NoParticipantForReceivingParty, NoTransferData, NonInitiatorSubmitsBeforeExclusivityTimeout, PartyNotHosted, ResultTimestampExceedsDecisionTime, TransferInProcessorError, TransferOutIncomplete, UnexpectedDomain, AdminPartiesMismatch, AdminPartyPermissionErrors, AutomaticTransferInError, ContractStoreFailed, InvalidResult, PermissionErrors, RecipientsMismatch, StakeholderHostingErrors, TargetDomainIsOriginDomain, TransferOutProcessorError, UnexpectedDomain, UnknownContract, CausalityInformationMissing, CreatingTransactionIdNotFound, DecryptionError, DomainNotReady, DuplicateTransferTreeHash, EncryptionError, FailedToCreateResponse, GenericStepsError, MetadataNotFound, NoStakeholders, NoSubmissionPermission, NoTimeProofFromDomain, ReceivedMultipleRequests, ReceivedNoRequests, ReceivedWrongRootHash, SeedGeneratorError, StakeholderMismatch, SubmittingPartyMustBeStakeholder, TransferProcessorError, TransferStoreFailed, UnknownDomain, ReferenceToFutureContractError, Active, Archived, Status, TransferredAway, CommandDeduplicationData, OffsetAndPublicationTime, Assigned, InconsistentKeyAllocationStatus, Status, Unassigned, ContractLookupError, ContractStoreError, DefiniteAnswerEvent, DuplicateContract, EventLogId, DomainEventLogId, ParticipantEventLogId, InFlightByMessageId, InFlightBySequencingInfo, InFlightReference, DeduplicationInfo, Publication, ParticipantPruningStatus, StoredContract, UnknownContract, UnknownContracts, ReplaceRequest, TimestampedEvent, EventId, TimelyRejectionEventId, TransactionEventId, Error, StateChange, TimeOfChange, ConfirmationPolicy, Full, Signatory, Vip, ContractMetadata, CreatedContract, InputContract, RequestId, RollbackContext, RootHash, SerializableContract, TransferId, ViewHash, AcsCommitment, CausalityMessage, CommitmentPeriod, ConfirmationRequest, DeliveredTransferOutResult, DomainTopologyTransactionMessage, EmptyRootHashMessagePayload, EncryptedViewMessage, EncryptedViewMessageDecryptionError, HkdfExpansionError, MissingParticipantKey, SymmetricDecryptError, SyncCryptoDecryptError, WrongDomainIdInEncryptedViewMessage, WrongRandomnessLength, InformeeMessage, LocalApprove, LocalReject, Reject, Reject, Reject, Reject, Reject, Reject, Malformed, Reject, Reject, Reject, Reject, Reject, Reject, Reject, Reject, Reject, Reject, Reject, Reject, Reject, LocalVerdict, MalformedMediatorRequestResult, MediatorRequest, MediatorResponse, ProtocolMessage, RegisterTopologyTransactionRequest, RegisterTopologyTransactionResponse, RegularMediatorResult, RootHashMessage, RootHashMessagePayload, SerializedRootHashMessagePayload, SignedProtocolMessage, SignedProtocolMessageContent, TransactionResultMessage, TransferDomainId, TransferInDomainId, TransferInMediatorMessage, TransferOutDomainId, TransferOutMediatorMessage, TransferResult, VectorClock, Verdict, Approve, MediatorReject, Reject, Reject, Reject, Reject, Reject, Reject, RejectReasons, Timeout, PruningPhase, Completed, Started, PruningStatus, DbLockConfigError, DbLockCounter, DbLockError, FailedToAcquireLock, FailedToCheckLock, FailedToReleaseLock, InvalidDatabaseConfig, LockAlreadyAcquired, LockAlreadyInAcquisition, LockAlreadyInReleasing, LockAlreadyReleased, LockCheckRejected, LockInvalidState, LockNotAcquired, LockNotFree, LostLock, UnsupportedDatabaseConfig, UnsupportedDatabaseProfile, DbLockId, DbLockMode, Exclusive, Shared, State, Connected, Disconnected, Disconnecting, Init, Lost, Recovering, DbLockedConnectionError, DbConnectionNotAvailable, DbLockNotAcquired, DatabaseConfigError, DatabaseError, DatabaseVersionError, Error, FlywayError, PendingMigrationError, Profile, H2, Oracle, Postgres, WithDbLockError, ConnectionError, DatabaseConfigurationError, LockAcquisitionError, OperationError, GrpcSequencerConnection, HttpSequencerConnection, SequencerConnection, SendAsyncClientError, DuplicateMessageId, RequestFailed, RequestInvalid, RequestRefused, ApplicationHandlerException, ApplicationHandlerFailure, ApplicationHandlerPassive, ApplicationHandlerShutdown, HttpSequencerEndpoints, Batch, ClosedEnvelope, Deliver, DeliverError, DeliverErrorReason, BatchInvalid, BatchRefused, Envelope, MessageId, OpenEnvelope, Recipients, RecipientsTree, SendAsyncError, Overloaded, RequestInvalid, RequestRefused, SenderUnknown, ShuttingDown, Unavailable, UnknownRecipients, SequencedEvent, DeserializationError, SequencedEventRangeOverlapsWithPruning, ByTimestampRange, IgnoredSequencedEvent, OrdinarySequencedEvent, PossiblyIgnoredSequencedEvent, RangeCriterion, NonNegativeFiniteDuration, NonNegativeSeconds, PositiveFiniteDuration, PositiveSeconds, TimeProof, AuthenticatedMember, DomainId, DomainMember, DomainTopologyManagerId, Identifier, Identity, KeyOwner, MediatorId, Member, Namespace, ParticipantId, PartyId, SequencerId, UnauthenticatedMemberId, UniqueIdentifier, StoredTopologyTransaction, StoredTopologyTransactions, TopologyTransactionRejection, NotAuthorized, SignatureCheckFailed, WrongDomain, AddRemoveChangeOp, DomainGovernanceElement, DomainGovernanceMapping, DomainGovernanceTransaction, DomainParametersChange, IdentifierDelegation, MediatorDomainState, NamespaceDelegation, OwnerToKeyMapping, ParticipantState, PartyToParticipant, SignedLegalIdentityClaim, SignedTopologyTransaction, TopologyChangeOp, Add, Positive, Remove, Replace, TopologyElementId, TopologyMapping, TopologyStateElement, TopologyStateUpdate, TopologyStateUpdateElement, TopologyStateUpdateMapping, TopologyTransaction, VettedPackages, TraceContext, NamedTask, SimpleExecutionQueue, CantonVersion, ProtocolVersion, ReleaseVersion
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PrettyUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def adHocPrettyInstance[T <: Product](implicit c: ClassTag[T]): Pretty[T]

    Use this as a temporary solution, to make the code compile during an ongoing migration.

    Use this as a temporary solution, to make the code compile during an ongoing migration. Drawbacks:

    • Instances of Pretty[T] are ignored.
    • No parameter names
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. def customParam[T](getValue: (T) => String, cond: (T) => Boolean = (_: T) => true): (T) => Option[Tree]

    Use this if you need a custom representation of a parameter.

    Use this if you need a custom representation of a parameter. Do not use this to create lengthy strings, as line wrapping is not supported.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def param[T, V](name: String, getValue: (T) => V, cond: (T) => Boolean = (_: T) => true)(implicit arg0: Pretty[V]): (T) => Option[Tree]

    A tree representing both parameter name and value.

  17. def paramIfDefined[T, V](name: String, getValue: (T) => Option[V])(implicit arg0: Pretty[V]): (T) => Option[Tree]
  18. def paramIfNonEmpty[T, V <: IterableOnce[_]](name: String, getValue: (T) => V)(implicit arg0: Pretty[V]): (T) => Option[Tree]
  19. def paramIfTrue[T](label: String, getValue: (T) => Boolean): (T) => Option[Tree]
  20. def paramWithoutValue[T](name: String, cond: (T) => Boolean = (_: T) => true): (T) => Option[Tree]

    A tree representing a parameter name without a parameter value.

    A tree representing a parameter name without a parameter value. Use this for parameters storing confidential or binary data.

  21. def prettyInfix[T, U, V](first: (T) => U, infixOp: String, second: (T) => V)(implicit arg0: Pretty[U], arg1: Pretty[V]): Pretty[T]
  22. def prettyNode[T](label: String, children: (T) => Option[Tree]*): Pretty[T]

    A tree consisting of a labelled node with the given children.

  23. def prettyOfClass[T](getParamTrees: (T) => Option[Tree]*): Pretty[T]

    A tree representing the type name and parameter trees.

  24. def prettyOfObject[T <: Product]: Pretty[T]

    A tree presenting the type name only.

    A tree presenting the type name only. (E.g., for case objects.)

  25. def prettyOfParam[T, V](getValue: (T) => V)(implicit arg0: Pretty[V]): Pretty[T]

    Use this to give a class with a singleton parameter the same pretty representation as the parameter.

  26. def prettyOfString[T](toString: (T) => String): Pretty[T]

    Creates a pretty instance from a string function.

    Creates a pretty instance from a string function. Do not use this with lengthy strings, as line wrapping is not supported.

  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def unnamedParam[T, V](getValue: (T) => V, cond: (T) => Boolean = (_: T) => true)(implicit arg0: Pretty[V]): (T) => Option[Tree]

    A tree representing a parameter value without a parameter name.

  30. def unnamedParamIfDefined[T, V](getValue: (T) => Option[V])(implicit arg0: Pretty[V]): (T) => Option[Tree]
  31. def unnamedParamIfNonEmpty[T, V <: IterableOnce[_]](getValue: (T) => V)(implicit arg0: Pretty[V]): (T) => Option[Tree]
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped