com.redhat.ceylon.model.loader.model.LocalDeclarationContainer Maven / Gradle / Ivy
package com.redhat.ceylon.model.loader.model;
import com.redhat.ceylon.model.typechecker.model.Declaration;
import com.redhat.ceylon.model.typechecker.model.Scope;
/**
* Scope used to contain local declarations.
*
* @author Stéphane Épardaud
*/
public interface LocalDeclarationContainer extends Scope {
/**
* Gets a local declaration by (prefixed) name
*/
Declaration getLocalDeclaration(String name);
/**
* Adds a new local declaration. Its prefixed name must be unique.
*/
void addLocalDeclaration(Declaration decl);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy