package com.qxueyou.scc.exercise.service.impl;
|
|
public class ParseResult {
|
|
private boolean success;
|
|
/**
|
* 下一步尝试:
|
* PRE: 往上尝试
|
* CUR: 当前
|
* NEXT: 有新的子节点
|
*/
|
private String nextStep;
|
|
public static final String STEP_PRE="PRE";
|
|
public static final String STEP_CUR="CUR";
|
|
public static final String STEP_NEXT="NEXT";
|
|
public ParseResult(boolean success,String nextStep,Node nextNode){
|
this.success=success;
|
this.nextStep = nextStep;
|
this.nextNode = nextNode;
|
|
}
|
|
|
/**
|
* 有新的节点时新节点引用
|
*/
|
private Node nextNode;
|
|
public boolean isSuccess() {
|
return success;
|
}
|
|
public void setSuccess(boolean success) {
|
this.success = success;
|
}
|
|
public String getNextStep() {
|
return nextStep;
|
}
|
|
public void setNextStep(String nextStep) {
|
this.nextStep = nextStep;
|
}
|
|
public Node getNextNode() {
|
return nextNode;
|
}
|
|
public void setNextNode(Node nextNode) {
|
this.nextNode = nextNode;
|
}
|
|
|
|
}
|