Class AbstractInfo<E extends QualifiedName>

java.lang.Object
io.inverno.core.compiler.spi.support.AbstractInfo<E>
All Implemented Interfaces:
Info, ReporterInfo

public abstract class AbstractInfo<E extends QualifiedName> extends Object implements Info

Base Info implementation.

Author:
Jeremy Kuhn
  • Constructor Details

    • AbstractInfo

      public AbstractInfo(E name, ReporterInfo reporter)

      Creates an info.

      Parameters:
      name - the qualified name
      reporter - the reporter
  • Method Details

    • hasError

      public boolean hasError()
      Description copied from interface: ReporterInfo

      Indicates whether this info has errors.

      Specified by:
      hasError in interface ReporterInfo
      Returns:
      true if there are errors, false otherwise
    • hasWarning

      public boolean hasWarning()
      Description copied from interface: ReporterInfo

      Indicates whether this info has warnings.

      Specified by:
      hasWarning in interface ReporterInfo
      Returns:
      true if there are warnings, false otherwise
    • error

      public void error(String message)
      Description copied from interface: ReporterInfo

      Reports an error on this info.

      Specified by:
      error in interface ReporterInfo
      Parameters:
      message - the message to report
    • warning

      public void warning(String message)
      Description copied from interface: ReporterInfo

      Reports a warning on this info.

      Specified by:
      warning in interface ReporterInfo
      Parameters:
      message - the message to report
    • getQualifiedName

      public E getQualifiedName()
      Description copied from interface: Info

      Returns the qualified name identifying the info.

      Specified by:
      getQualifiedName in interface Info
      Returns:
      a qualified name