public class IlrBRLMarker
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
IlrBRLMarkerFixProposal[] |
computeFixProposals()
Returns the possible proposals according to this marker, if this marker can be fixed.
|
IlrBRLMarkerDescriptor |
getDescriptor()
Returns the marker descriptor associated to this business rule language marker.
|
IlrBRLMarker |
getErrorContext()
Returns the error context attached to the marker.
|
int |
getKind()
Returns the kind of this marker.
|
int |
getLength()
Returns the length of the marker in the parsed definition.
|
int |
getLineNumber(java.lang.String originalText)
Gets the line number at which the error occurred.
|
java.lang.String |
getMessage()
Returns a localized message about this marker.
|
int |
getOffset()
Returns the offset of the marker in the parsed definition.
|
int |
getSeverity()
Returns the severity of this marker.
|
boolean |
hasErrorContext()
Returns
true if the marker has an error context. |
boolean |
isError()
States whether the marker reports an error.
|
boolean |
isFixable()
Returns
true if this marker can be fixed automatically. |
boolean |
isInfo()
States whether the marker reports an info.
|
boolean |
isLexical()
States whether the marker reports a lexical error.
|
boolean |
isSemantic()
States whether the marker reports a semantic error.
|
boolean |
isSyntactic()
States whether the marker reports a syntactic error.
|
boolean |
isWarning()
States whether the marker reports a warning.
|
void |
setErrorContext(IlrBRLMarker errorContext)
Sets the error context of the marker.
|
public IlrBRLMarkerDescriptor getDescriptor()
public int getKind()
IlrBRLMarkerDescriptor.getKind()public boolean isLexical()
true if the marker reports a lexical errorpublic boolean isSyntactic()
true if the marker reports a syntactic error.public boolean isSemantic()
true if the marker reports a semantic error.public int getSeverity()
IlrBRLMarkerDescriptor.getSeverity()public boolean isError()
true if the marker reports an error.public boolean isWarning()
true if the marker reports a warning.public boolean isInfo()
true if the marker reports an info.public boolean isFixable()
true if this marker can be fixed automatically.true if this marker can be fixed automatically.IlrBRLMarkerDescriptor.isFixable()public IlrBRLMarkerFixProposal[] computeFixProposals()
IlrBRLMarkerDescriptor.computeFixProposals(IlrBRLMarker, Object[])public int getOffset()
public int getLength()
public java.lang.String getMessage()
public IlrBRLMarker getErrorContext()
null.public boolean hasErrorContext()
true if the marker has an error context.true if the marker has an error context.public void setErrorContext(IlrBRLMarker errorContext)
errorContext - The error context to attach to the marker.public int getLineNumber(java.lang.String originalText)
originalText - the text this error is originated.© Copyright IBM Corp. 1987, 2017