SpannedSubject.EmphasizedText


public interface SpannedSubject.EmphasizedText


Allows assertions about a span's text emphasis mark and its position.

Summary

Public methods

abstract SpannedSubject.AndSpanFlags
withMarkAndPosition(
    @TextEmphasisSpan.MarkShape int markShape,
    @TextEmphasisSpan.MarkFill int markFill,
    @TextAnnotation.Position int position
)

Checks that at least one of the matched spans has the expected mark and position.

Public methods

withMarkAndPosition

abstract SpannedSubject.AndSpanFlags withMarkAndPosition(
    @TextEmphasisSpan.MarkShape int markShape,
    @TextEmphasisSpan.MarkFill int markFill,
    @TextAnnotation.Position int position
)

Checks that at least one of the matched spans has the expected mark and position.

Parameters
@TextEmphasisSpan.MarkShape int markShape

The expected mark shape.

@TextEmphasisSpan.MarkFill int markFill

The expected mark fill style.

@TextAnnotation.Position int position

The expected position of the mark.

Returns
SpannedSubject.AndSpanFlags

A AndSpanFlags object for optional additional assertions on the flags.