Constructor and Description |
---|
CodeVisitor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCurrentExpression() |
java.lang.Object |
visit(java.lang.Object object) |
static void |
visit(java.lang.String filename,
CodeVisitor visitor) |
protected abstract java.lang.Object |
visitApply(Code expressions) |
protected abstract java.lang.Object |
visitCatch(java.lang.String param,
java.lang.Object expressions) |
protected abstract java.lang.Object |
visitData(java.lang.String operator,
java.lang.String data) |
protected abstract java.lang.Object |
visitDefine(java.lang.String definee,
Code params,
java.lang.Object body) |
protected abstract java.lang.Object |
visitDo(Code bindings,
Code exit,
Code body) |
protected abstract java.lang.Object |
visitFor(java.lang.String param,
java.lang.Object range,
java.lang.Object expressions) |
protected abstract java.lang.Object |
visitIf(java.lang.Object test_exp,
java.lang.Object then_exp,
java.lang.Object else_exp) |
protected abstract java.lang.Object |
visitLambda(Code params,
java.lang.Object body) |
protected abstract java.lang.Object |
visitLet(Code bindings,
java.lang.Object body) |
protected abstract java.lang.Object |
visitLiteral(java.lang.String literal) |
protected abstract java.lang.Object |
visitObject(java.lang.Object obj) |
protected abstract java.lang.Object |
visitOperation(java.lang.String operator,
Code expressions) |
protected abstract java.lang.Object |
visitQuote(java.lang.String data) |
protected abstract java.lang.Object |
visitSeq(Code expressions) |
protected abstract java.lang.Object |
visitTry(java.lang.Object body,
Code catcher) |
public static void visit(java.lang.String filename, CodeVisitor visitor)
public java.lang.Object visit(java.lang.Object object)
public final java.lang.Object getCurrentExpression()
protected abstract java.lang.Object visitLiteral(java.lang.String literal)
protected abstract java.lang.Object visitDefine(java.lang.String definee, Code params, java.lang.Object body)
protected abstract java.lang.Object visitLambda(Code params, java.lang.Object body)
protected abstract java.lang.Object visitLet(Code bindings, java.lang.Object body)
protected abstract java.lang.Object visitSeq(Code expressions)
protected abstract java.lang.Object visitApply(Code expressions)
protected abstract java.lang.Object visitIf(java.lang.Object test_exp, java.lang.Object then_exp, java.lang.Object else_exp)
protected abstract java.lang.Object visitObject(java.lang.Object obj)
protected abstract java.lang.Object visitFor(java.lang.String param, java.lang.Object range, java.lang.Object expressions)
protected abstract java.lang.Object visitTry(java.lang.Object body, Code catcher)
protected abstract java.lang.Object visitCatch(java.lang.String param, java.lang.Object expressions)
protected abstract java.lang.Object visitOperation(java.lang.String operator, Code expressions)
protected abstract java.lang.Object visitData(java.lang.String operator, java.lang.String data)
protected abstract java.lang.Object visitQuote(java.lang.String data)