
org.snapscript.tree.InstructionResolver Maven / Gradle / Ivy
package org.snapscript.tree;
import java.util.Map;
import org.snapscript.core.Context;
public class InstructionResolver implements OperationResolver {
private volatile Map operations;
private volatile InstructionBuilder builder;
public InstructionResolver(Context context) {
this.builder = new InstructionBuilder(context);
}
@Override
public Operation resolve(String name) throws Exception {
if(operations == null) {
operations = builder.create();
}
return operations.get(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy