forked from JavaTX/JavaCompilerCore
fixed getChildren()
This commit is contained in:
parent
5316b6ca51
commit
61e9c953c9
@ -270,7 +270,10 @@ public JavaCodeResult printJavaCode(ResultSet resultSet) {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Vector<SyntaxTreeNode> getChildren() {
|
public Vector<SyntaxTreeNode> getChildren() {
|
||||||
throw new NotImplementedException();
|
Vector<SyntaxTreeNode> ret = new Vector<SyntaxTreeNode>();
|
||||||
|
ret.add(this.expr1);
|
||||||
|
ret.add(this.expr2);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -136,8 +136,14 @@ public JavaCodeResult printJavaCode(ResultSet resultSet) {
|
|||||||
@Override
|
@Override
|
||||||
public Vector<SyntaxTreeNode> getChildren() {
|
public Vector<SyntaxTreeNode> getChildren() {
|
||||||
Vector<SyntaxTreeNode> ret = new Vector<SyntaxTreeNode>();
|
Vector<SyntaxTreeNode> ret = new Vector<SyntaxTreeNode>();
|
||||||
ret.add(this.body_Loop_block);
|
if(this.body_Loop_block!=null)ret.add(this.body_Loop_block);
|
||||||
throw new NotImplementedException();
|
if(this.head_Condition!=null)ret.add(this.head_Condition);
|
||||||
//return ret;
|
if(this.head_Condition_1!=null)ret.add(this.head_Condition_1);
|
||||||
|
if(this.head_Initializer!=null)ret.add(this.head_Initializer);
|
||||||
|
if(this.head_Initializer_1!=null)ret.add(this.head_Initializer_1);
|
||||||
|
if(this.head_Loop_expr!=null)ret.add(this.head_Loop_expr);
|
||||||
|
if(this.head_Loop_expr_1!=null)ret.add(this.head_Loop_expr_1);
|
||||||
|
//throw new NotImplementedException();
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user