Package org.drools.drl.parser.lang.dsl
Class MappingError
java.lang.Object
org.drools.drl.parser.BaseKnowledgeBuilderResultImpl
org.drools.drl.parser.DroolsError
org.drools.drl.parser.lang.dsl.MappingError
- All Implemented Interfaces:
KnowledgeBuilderError,KnowledgeBuilderResult
MappingError
A class to represent errors found in a DSL mapping
Created: 11/04/2006
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionMappingError(int errorCode, int template, int offset, String token, String templateText, int line) -
Method Summary
Modifier and TypeMethodDescriptionintReturns this error codeint[]getLines()Returns the lines of the error in the source fileintintMethods inherited from class org.drools.drl.parser.DroolsError
getNamespace, getSeverityMethods inherited from class org.drools.drl.parser.BaseKnowledgeBuilderResultImpl
asMessage, equals, getMessage, getResource, hashCode, isError, setMessage, setResource, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kie.internal.builder.KnowledgeBuilderResult
asMessage, getMessage, getResource
-
Field Details
-
TEMPLATE_UNKNOWN
public static final int TEMPLATE_UNKNOWN- See Also:
-
TEMPLATE_NATURAL
public static final int TEMPLATE_NATURAL- See Also:
-
TEMPLATE_TARGET
public static final int TEMPLATE_TARGET- See Also:
-
ERROR_UNUSED_TOKEN
public static final int ERROR_UNUSED_TOKEN- See Also:
-
ERROR_UNDECLARED_TOKEN
public static final int ERROR_UNDECLARED_TOKEN- See Also:
-
ERROR_INVALID_TOKEN
public static final int ERROR_INVALID_TOKEN- See Also:
-
ERROR_UNMATCHED_BRACES
public static final int ERROR_UNMATCHED_BRACES- See Also:
-
-
Constructor Details
-
MappingError
-
-
Method Details
-
getErrorCode
public int getErrorCode()Returns this error code- Returns:
-
getLines
public int[] getLines()Description copied from class:BaseKnowledgeBuilderResultImplReturns the lines of the error in the source file- Specified by:
getLinesin interfaceKnowledgeBuilderResult- Specified by:
getLinesin classBaseKnowledgeBuilderResultImpl
-
getOffset
public int getOffset()- Returns:
- the offset
-
getTemplate
public int getTemplate()- Returns:
- the template
-
getTemplateText
- Returns:
- the original content.
-