public abstract class AbstractFunction<T> extends Function
| 限定符和类型 | 字段和说明 |
|---|---|
Method |
method |
curNumberOfParameters, numberOfParameters| 构造器和说明 |
|---|
AbstractFunction()
默认构造函数:
读取实现类的所有方法[ Method ] 并找到 perform 方法,记录其引用到
|
| 限定符和类型 | 方法和说明 |
|---|---|
Method |
getPerformMethod() |
void |
run(Stack stack)
Throws an exception because this method should never be called under
normal circumstances.
|
checkStack, getNumberOfParameters, setCurNumberOfParameterspublic Method method
public AbstractFunction()
并记录此方法的参数个数.public Method getPerformMethod()
public void run(Stack stack) throws ParseException
Functionrun 在接口中 FunctionIrun 在类中 FunctionParseExceptionCopyright © 2023 onecode. All rights reserved.