Package it.unive.lisa.checks.warnings
Class ExpressionWarning
- java.lang.Object
-
- it.unive.lisa.checks.warnings.Warning
-
- it.unive.lisa.checks.warnings.WarningWithLocation
-
- it.unive.lisa.checks.warnings.StatementWarning
-
- it.unive.lisa.checks.warnings.ExpressionWarning
-
- All Implemented Interfaces:
java.lang.Comparable<Warning>
public final class ExpressionWarning extends StatementWarning
A warning reported by LiSA on an expression.
-
-
Constructor Summary
Constructors Constructor Description ExpressionWarning(Expression expression, java.lang.String message)Builds the warning.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetExpression()Yields the expression where this warning was reported on.java.lang.StringgetTag()Yields the tag of this warning.-
Methods inherited from class it.unive.lisa.checks.warnings.StatementWarning
compareTo, equals, getStatement, hashCode, toString
-
Methods inherited from class it.unive.lisa.checks.warnings.WarningWithLocation
getLocation, getLocationWithBrackets
-
Methods inherited from class it.unive.lisa.checks.warnings.Warning
getMessage, getTaggedMessage
-
-
-
-
Constructor Detail
-
ExpressionWarning
public ExpressionWarning(Expression expression, java.lang.String message)
Builds the warning.- Parameters:
expression- the expression where this warning was reported onmessage- the message of this warning
-
-
Method Detail
-
getExpression
public Expression getExpression()
Yields the expression where this warning was reported on.- Returns:
- the expression
-
getTag
public java.lang.String getTag()
Description copied from class:WarningYields the tag of this warning.- Overrides:
getTagin classStatementWarning- Returns:
- the tag of this warning
-
-