forked from fanruan/design
lonord
8 years ago
10 changed files with 106 additions and 60 deletions
@ -1,38 +0,0 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.formula.FunctionDefNAD; |
||||
import com.fr.design.formula.FunctionGroup; |
||||
import com.fr.design.formula.NameAndDescription; |
||||
import com.fr.stable.fun.mark.API; |
||||
import com.fr.stable.fun.mark.Mutable; |
||||
import com.fr.stable.script.FunctionDef; |
||||
|
||||
|
||||
@API(level = FunctionGroup.CURRENT_LEVEL) |
||||
public abstract class AbstractFunctionGroup implements Mutable, FunctionGroup { |
||||
|
||||
@Override |
||||
public int currentAPILevel() { |
||||
return CURRENT_LEVEL; |
||||
} |
||||
|
||||
@Override |
||||
public String mark4Provider() { |
||||
return getClass().getName(); |
||||
} |
||||
|
||||
@Override |
||||
public NameAndDescription[] getDescriptions() { |
||||
FunctionDef[] funcs = getFunctionDefs(); |
||||
int count = funcs.length; |
||||
FunctionDefNAD[] nads = new FunctionDefNAD[count]; |
||||
for (int i = 0; i < count; i ++) { |
||||
nads[i] = new FunctionDefNAD(funcs[i]); |
||||
} |
||||
return nads; |
||||
} |
||||
|
||||
public FunctionDef[] getFunctionDefs(){ |
||||
return new FunctionDef[0]; |
||||
} |
||||
} |
Loading…
Reference in new issue