public final class GenericRepresentation<T> extends org.assertj.core.presentation.StandardRepresentation
AbstractAssert.withRepresentation(org.assertj.core.presentation.Representation)
.Modifier and Type | Field and Description |
---|---|
static GenericRepresentation<IToken> |
TOKEN_LINE_REPRESENTATION
Representation for tokens that prints the token line number
(
IToken.getLineNumber() ) in addition to the token text. |
static GenericRepresentation<IToken> |
TOKEN_OFFSET_REPRESENTATION
Representation for tokens that prints the token offset
(
IToken.getOffset() ) in addition to the token text. |
Constructor and Description |
---|
GenericRepresentation(java.util.function.Function<T,java.lang.String> representationProvider) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toStringOf(java.lang.Object object) |
customFormat, fallbackToStringOf, format, format, formatArray, formatPrimitiveArray, getMaxElementsForPrinting, getMaxLengthForSingleLineDescription, hasCustomFormatterFor, multiLineFormat, multiLineFormat, registerFormatterForType, removeAllRegisteredFormatters, resetDefaults, setMaxElementsForPrinting, setMaxLengthForSingleLineDescription, singleLineFormat, singleLineFormat, smartFormat, smartFormat, toString, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, unambiguousToStringOf
public static final GenericRepresentation<IToken> TOKEN_OFFSET_REPRESENTATION
IToken.getOffset()
) in addition to the token text.public static final GenericRepresentation<IToken> TOKEN_LINE_REPRESENTATION
IToken.getLineNumber()
) in addition to the token text.public GenericRepresentation(java.util.function.Function<T,java.lang.String> representationProvider)
public java.lang.String toStringOf(java.lang.Object object)
toStringOf
in interface org.assertj.core.presentation.Representation
toStringOf
in class org.assertj.core.presentation.StandardRepresentation