prompto.declaration.IEnumeratedDeclaration Maven / Gradle / Ivy
The newest version!
package prompto.declaration;
import java.util.Map;
import prompto.expression.Symbol;
import prompto.grammar.SymbolList;
public interface IEnumeratedDeclaration extends IDeclaration {
SymbolList getSymbolsList(); // as they appear in the declaration
Map getSymbolsMap(); // for fast access
default T getSymbol(String name) {
return getSymbolsMap().get(name);
}
default boolean hasSymbol(String name) {
return getSymbolsMap().containsKey(name);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy