Translates the AST vector into an AST[]
()
| 107 | * Translates the AST vector into an AST[] |
| 108 | * */ |
| 109 | public AST[] ToArray() |
| 110 | { |
| 111 | int n = size(); |
| 112 | AST[] res = new AST[n]; |
| 113 | for (int i = 0; i < n; i++) |
| 114 | res[i] = AST.create(getContext(), get(i).getNativeObject()); |
| 115 | return res; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Translates the AST vector into an Expr[] |
no test coverage detected