org.drools.compiler
Class TypeDeclarationWarning

java.lang.Object
  extended by org.drools.compiler.BaseKnowledgeBuilderResultImpl
      extended by org.drools.compiler.TypeDeclarationWarning
All Implemented Interfaces:
org.drools.builder.KnowledgeBuilderResult

public class TypeDeclarationWarning
extends BaseKnowledgeBuilderResultImpl


Constructor Summary
TypeDeclarationWarning(String message, int line)
           
 
Method Summary
 int[] getLines()
          Returns the lines of the error in the source file
 String getMessage()
          Classes that extend this must provide a printable message, which summarises the error.
 org.drools.builder.ResultSeverity getSeverity()
           
 String toString()
           
 
Methods inherited from class org.drools.compiler.BaseKnowledgeBuilderResultImpl
getResource, isError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeDeclarationWarning

public TypeDeclarationWarning(String message,
                              int line)
Method Detail

getLines

public int[] getLines()
Description copied from class: BaseKnowledgeBuilderResultImpl
Returns the lines of the error in the source file

Specified by:
getLines in interface org.drools.builder.KnowledgeBuilderResult
Specified by:
getLines in class BaseKnowledgeBuilderResultImpl

getMessage

public String getMessage()
Description copied from class: BaseKnowledgeBuilderResultImpl
Classes that extend this must provide a printable message, which summarises the error.

Specified by:
getMessage in interface org.drools.builder.KnowledgeBuilderResult
Specified by:
getMessage in class BaseKnowledgeBuilderResultImpl

toString

public String toString()
Overrides:
toString in class BaseKnowledgeBuilderResultImpl

getSeverity

public org.drools.builder.ResultSeverity getSeverity()
Specified by:
getSeverity in interface org.drools.builder.KnowledgeBuilderResult
Specified by:
getSeverity in class BaseKnowledgeBuilderResultImpl


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.