org.ow2.opensuit.cel.impl
Class CompilationResult

java.lang.Object
  extended by org.ow2.opensuit.cel.impl.CompilationResult
All Implemented Interfaces:
ICompilationResult, ICompilationResultWriter

public class CompilationResult
extends java.lang.Object
implements ICompilationResultWriter

Interface for types conversion

Version:
1.0
Author:
Adrien Ruffie / Pierre Smeyers, http://opensuit.ow2.org/

Constructor Summary
CompilationResult()
           
 
Method Summary
 void addMessage(IExprNode node, int level, java.lang.String message)
           
 void addMessage(int position, int level, java.lang.String message)
           
 IExpression getExpression()
          Get the linked this compilation result.
 java.util.List<ICompilationMessage> getMessages()
          Allow to recover all linked to the current
 boolean hasErrors()
          Allow to determine if errors Occurred during the compilation
 void setExpression(IExpression expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilationResult

public CompilationResult()
Method Detail

getExpression

public IExpression getExpression()
Description copied from interface: ICompilationResult
Get the linked this compilation result.

Specified by:
getExpression in interface ICompilationResult
Returns:
Return an implementation of IExpression associated with this compilation result.

setExpression

public void setExpression(IExpression expression)
Specified by:
setExpression in interface ICompilationResultWriter

getMessages

public java.util.List<ICompilationMessage> getMessages()
Description copied from interface: ICompilationResult
Allow to recover all linked to the current

Specified by:
getMessages in interface ICompilationResult
Returns:
A of occurred

hasErrors

public boolean hasErrors()
Description copied from interface: ICompilationResult
Allow to determine if errors Occurred during the compilation

Specified by:
hasErrors in interface ICompilationResult
Returns:
Return true if occurred errors are present into this compilation result

addMessage

public void addMessage(IExprNode node,
                       int level,
                       java.lang.String message)
Specified by:
addMessage in interface ICompilationResultWriter

addMessage

public void addMessage(int position,
                       int level,
                       java.lang.String message)
Specified by:
addMessage in interface ICompilationResultWriter


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.