Module io.inverno.core.compiler
Class AbstractInfo<E extends QualifiedName>
java.lang.Object
io.inverno.core.compiler.spi.support.AbstractInfo<E>
- All Implemented Interfaces:
Info,ReporterInfo
Base Info implementation.
- Author:
- Jeremy Kuhn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReports an error on this info.Returns the qualified name identifying the info.booleanhasError()Indicates whether this info has errors.booleanIndicates whether this info has warnings.voidReports a warning on this info.
-
Constructor Details
-
AbstractInfo
Creates an info.
- Parameters:
name- the qualified namereporter- the reporter
-
-
Method Details
-
hasError
public boolean hasError()Description copied from interface:ReporterInfoIndicates whether this info has errors.
- Specified by:
hasErrorin interfaceReporterInfo- Returns:
- true if there are errors, false otherwise
-
hasWarning
public boolean hasWarning()Description copied from interface:ReporterInfoIndicates whether this info has warnings.
- Specified by:
hasWarningin interfaceReporterInfo- Returns:
- true if there are warnings, false otherwise
-
error
Description copied from interface:ReporterInfoReports an error on this info.
- Specified by:
errorin interfaceReporterInfo- Parameters:
message- the message to report
-
warning
Description copied from interface:ReporterInfoReports a warning on this info.
- Specified by:
warningin interfaceReporterInfo- Parameters:
message- the message to report
-
getQualifiedName
Description copied from interface:InfoReturns the qualified name identifying the info.
- Specified by:
getQualifiedNamein interfaceInfo- Returns:
- a qualified name
-