org.jetbrains.jet.lang.diagnostics
Class AbstractDiagnostic<E extends com.intellij.psi.PsiElement>

java.lang.Object
  extended by org.jetbrains.jet.lang.diagnostics.AbstractDiagnostic<E>
All Implemented Interfaces:
Diagnostic, ParametrizedDiagnostic<E>
Direct Known Subclasses:
DiagnosticWithParameters1, DiagnosticWithParameters2, DiagnosticWithParameters3, SimpleDiagnostic

public abstract class AbstractDiagnostic<E extends com.intellij.psi.PsiElement>
extends java.lang.Object
implements ParametrizedDiagnostic<E>


Constructor Summary
AbstractDiagnostic(E psiElement, DiagnosticFactoryWithPsiElement<E> factory, Severity severity)
           
 
Method Summary
 DiagnosticFactoryWithPsiElement<E> getFactory()
           
 E getPsiElement()
           
 com.intellij.psi.PsiFile getPsiFile()
           
 Severity getSeverity()
           
 java.util.List<com.intellij.openapi.util.TextRange> getTextRanges()
           
 boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDiagnostic

public AbstractDiagnostic(@NotNull
                          E psiElement,
                          @NotNull
                          DiagnosticFactoryWithPsiElement<E> factory,
                          @NotNull
                          Severity severity)
Method Detail

getFactory

@NotNull
public DiagnosticFactoryWithPsiElement<E> getFactory()
Specified by:
getFactory in interface Diagnostic

getPsiFile

@NotNull
public com.intellij.psi.PsiFile getPsiFile()
Specified by:
getPsiFile in interface Diagnostic

getSeverity

@NotNull
public Severity getSeverity()
Specified by:
getSeverity in interface Diagnostic

getPsiElement

@NotNull
public E getPsiElement()
Specified by:
getPsiElement in interface Diagnostic
Specified by:
getPsiElement in interface ParametrizedDiagnostic<E extends com.intellij.psi.PsiElement>

getTextRanges

@NotNull
public java.util.List<com.intellij.openapi.util.TextRange> getTextRanges()
Specified by:
getTextRanges in interface Diagnostic

isValid

public boolean isValid()
Specified by:
isValid in interface Diagnostic