Top Description Fields Constructors Methods
org.opentest4j.reporting.events.java

public Class ClassSource

extends ChildElement<Sources, ClassSource>
Class Inheritance
Imports
org.opentest4j.reporting.events.api.Appendable, .ChildElement, .Context, org.opentest4j.reporting.events.core.CoreFactory, .Sources, org.opentest4j.reporting.schema.Namespace, .QualifiedName, java.util.Optional

The classSource element of the Java namespace.

Field Summary

Modifier and TypeField and Description
private static final QualifiedName
private static final QualifiedName

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Appendable<ClassSource>

Returns:

this element
addFilePosition
(int
the line number
line
,
Optional<Integer>
the column number
column
)

Add a filePosition child element to this element.

pack-priv ClassSource
withClassName(String className)

Field Detail

CLASS_NAMEback to summary
private static final QualifiedName CLASS_NAME
ELEMENTback to summary
private static final QualifiedName ELEMENT

Constructor Detail

ClassSourceback to summary
pack-priv ClassSource(Context context)

Method Detail

addFilePositionback to summary
public Appendable<ClassSource> addFilePosition(int line, Optional<Integer> column)

Add a filePosition child element to this element.

Parameters
line:int

the line number

column:Optional<Integer>

the column number

Returns:Appendable<ClassSource>

this element

withClassNameback to summary
pack-priv ClassSource withClassName(String className)