org.apache.commons.jci.compilers
Class JaninoCompilationProblem

java.lang.Object
  extended by org.apache.commons.jci.compilers.JaninoCompilationProblem
All Implemented Interfaces:
CompilationProblem

public final class JaninoCompilationProblem
extends Object
implements CompilationProblem

Janino version of a CompilationProblem

Author:
tcurdt

Constructor Summary
JaninoCompilationProblem(org.codehaus.commons.compiler.LocatedException pLocatedException)
           
JaninoCompilationProblem(org.codehaus.commons.compiler.Location pLocation, String pMessage, boolean pError)
           
JaninoCompilationProblem(String pFilename, org.codehaus.commons.compiler.Location pLocation, String pMessage, boolean pError)
           
JaninoCompilationProblem(String pFilename, String pMessage, boolean pError)
           
 
Method Summary
 int getEndColumn()
           
 int getEndLine()
          position of where the problem stops in the source code
 String getFileName()
          name of the file where the problem occurred
 String getMessage()
          the description of the problem
 int getStartColumn()
           
 int getStartLine()
          position of where the problem starts in the source code
 boolean isError()
          is the problem an error and compilation cannot continue or just a warning and compilation can proceed
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JaninoCompilationProblem

public JaninoCompilationProblem(org.codehaus.commons.compiler.LocatedException pLocatedException)

JaninoCompilationProblem

public JaninoCompilationProblem(org.codehaus.commons.compiler.Location pLocation,
                                String pMessage,
                                boolean pError)

JaninoCompilationProblem

public JaninoCompilationProblem(String pFilename,
                                String pMessage,
                                boolean pError)

JaninoCompilationProblem

public JaninoCompilationProblem(String pFilename,
                                org.codehaus.commons.compiler.Location pLocation,
                                String pMessage,
                                boolean pError)
Method Detail

isError

public boolean isError()
Description copied from interface: CompilationProblem
is the problem an error and compilation cannot continue or just a warning and compilation can proceed

Specified by:
isError in interface CompilationProblem
Returns:
true if the problem is an error

getFileName

public String getFileName()
Description copied from interface: CompilationProblem
name of the file where the problem occurred

Specified by:
getFileName in interface CompilationProblem
Returns:
name of the file where the problem occurred

getStartLine

public int getStartLine()
Description copied from interface: CompilationProblem
position of where the problem starts in the source code

Specified by:
getStartLine in interface CompilationProblem
Returns:
position of where the problem starts in the source code

getStartColumn

public int getStartColumn()
Specified by:
getStartColumn in interface CompilationProblem

getEndLine

public int getEndLine()
Description copied from interface: CompilationProblem
position of where the problem stops in the source code

Specified by:
getEndLine in interface CompilationProblem
Returns:
position of where the problem stops in the source code

getEndColumn

public int getEndColumn()
Specified by:
getEndColumn in interface CompilationProblem

getMessage

public String getMessage()
Description copied from interface: CompilationProblem
the description of the problem

Specified by:
getMessage in interface CompilationProblem
Returns:
the description of the problem

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.