org.eclipse.mtl.parser
Class MTLParserProblems

java.lang.Object
  extended by org.eclipse.mtl.parser.MTLParserProblems

public class MTLParserProblems
extends java.lang.Object

All the syntax problems of the parsing.


Constructor Summary
MTLParserProblems()
          Constructor.
 
Method Summary
 void addProblem(java.io.File file, java.lang.String message, int line, int posBegin, int posEnd)
          The way to add a new problem.
 void clear()
          Clear the list of problems.
 java.util.List<MTLParserProblem> getList()
          gets the list of problems.
 java.lang.String getMessage()
          Computes a buffer with all the messages of the problems.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MTLParserProblems

public MTLParserProblems()
Constructor.

Method Detail

addProblem

public void addProblem(java.io.File file,
                       java.lang.String message,
                       int line,
                       int posBegin,
                       int posEnd)
The way to add a new problem.

Parameters:
file - is the file, can be null if the parser has been created with a buffer
message - is the message
line - is the line of the problem
posBegin - is the beginning index of the problem
posEnd - is the ending index of the problem

getList

public java.util.List<MTLParserProblem> getList()
gets the list of problems.

Returns:
the list of problems

clear

public void clear()
Clear the list of problems.


getMessage

public java.lang.String getMessage()
Computes a buffer with all the messages of the problems.

Returns:
the message

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

Copyright 2008 Obeo
All Rights Reserved.