Mercurial Hosting > nabble
comparison src/nabble/naml/compiler/Interpreter.java @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
1 package nabble.naml.compiler; | |
2 | |
3 | |
4 public interface Interpreter extends Encoder { | |
5 public Object getArg(String param); | |
6 public String getArgString(String param); | |
7 public Template template(); | |
8 public <T> T getFromStack(Class<T> cls); | |
9 public boolean hasModule(String moduleName); | |
10 public int callDepth(); | |
11 | |
12 public boolean getArgAsBoolean(String param) throws BooleanFormatException; | |
13 public boolean getArgAsBoolean(String param,boolean defaultValue) throws BooleanFormatException; | |
14 public int getArgAsInt(String param) throws NumberFormatException; | |
15 public int getArgAsInt(String param, int defaultValue) throws NumberFormatException; | |
16 public long getArgAsLong(String param) throws NumberFormatException; | |
17 public <T> T getArgAsNamespace(Class<T> cls,String param); | |
18 public Encoder getEncoder(); | |
19 public void setEncoder(Encoder encoder); | |
20 | |
21 // compile-time methods | |
22 public boolean hasNamespace(String namespace); | |
23 public boolean isInCommandStack(String commandName); | |
24 } |