Skip to content

Commit

Permalink
add the Env
Browse files Browse the repository at this point in the history
  • Loading branch information
gyc567 committed Jul 24, 2016
1 parent 058d78d commit e89ef05
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/com/github/eric/Env.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,22 @@
* Created by eric567 on 7/11/2016.
*/
public class Env {
private Function function;
private Env enviroment;

public Function getFunction() {
return function;
}

public void setFunction(Function function) {
this.function = function;
}

public Env getEnviroment() {
return enviroment;
}

public void setEnviroment(Env enviroment) {
this.enviroment = enviroment;
}
}
9 changes: 9 additions & 0 deletions src/main/java/com/github/eric/Function.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ public class Function {
private Operator operator;
private List args = new ArrayList();
private int reslut;
private Function nextFunction;

public Function getNextFunction() {
return nextFunction;
}

public void setNextFunction(Function nextFunction) {
this.nextFunction = nextFunction;
}

public List getArgs() {
return args;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/github/eric/FunctionUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static Function transform(ValuePair valuePair) {
}
if (rest instanceof ValuePair) {
ValuePair vp = (ValuePair) rest;

function = travleValuePair(function, vp);
}
return function;
Expand Down

0 comments on commit e89ef05

Please sign in to comment.