CompilationMessage


public final class CompilationMessage


A single message generated during shader compilation.

Summary

Public constructors

CompilationMessage(
    @NonNull String message,
    int type,
    long lineNum,
    long linePos,
    long offset,
    long length
)

Public methods

final long

The length in bytes of the affected source code span.

final long
final long
final @NonNull String

The content of the compilation message.

final long

The byte offset in the source code where the message originates.

final int

The type or severity of the message (error, warning, info).

final void
setLength(long length)

The length in bytes of the affected source code span.

final void
setLineNum(long lineNum)
final void
setLinePos(long linePos)
final void

The content of the compilation message.

final void
setOffset(long offset)

The byte offset in the source code where the message originates.

final void
setType(int type)

The type or severity of the message (error, warning, info).

Public constructors

CompilationMessage

Added in 1.0.0-alpha01
public CompilationMessage(
    @NonNull String message,
    int type,
    long lineNum,
    long linePos,
    long offset,
    long length
)

Public methods

getLength

Added in 1.0.0-alpha01
public final long getLength()

The length in bytes of the affected source code span.

getLineNum

Added in 1.0.0-alpha01
public final long getLineNum()

getLinePos

Added in 1.0.0-alpha01
public final long getLinePos()

getMessage

Added in 1.0.0-alpha01
public final @NonNull String getMessage()

The content of the compilation message.

getOffset

Added in 1.0.0-alpha01
public final long getOffset()

The byte offset in the source code where the message originates.

getType

Added in 1.0.0-alpha01
public final int getType()

The type or severity of the message (error, warning, info).

setLength

Added in 1.0.0-alpha01
public final void setLength(long length)

The length in bytes of the affected source code span.

setLineNum

Added in 1.0.0-alpha01
public final void setLineNum(long lineNum)

setLinePos

Added in 1.0.0-alpha01
public final void setLinePos(long linePos)

setMessage

Added in 1.0.0-alpha01
public final void setMessage(@NonNull String message)

The content of the compilation message.

setOffset

Added in 1.0.0-alpha01
public final void setOffset(long offset)

The byte offset in the source code where the message originates.

setType

Added in 1.0.0-alpha01
public final void setType(int type)

The type or severity of the message (error, warning, info).