project/com.nokia.carbide.cpp.epoc.engine/src/com/nokia/carbide/internal/cpp/epoc/engine/model/ListConverter.java
/*
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
package com.nokia.carbide.internal.cpp.epoc.engine.model;
import com.nokia.carbide.internal.api.cpp.epoc.engine.dom.IASTNode;
public interface ListConverter<ElementType extends IASTNode, ModelType> {
/** Tell whether the given element can be added to an existing non-empty statement.
* @param model new element
* @return true if allowed, false if new statement required
*/
boolean canAddToStatement(ModelType model);
/**
* Allow empty statements containing ElementType?
*
* @return
*/
boolean allowEmptyStatements();
}