/** * Returns a deep clone of this {@link ASkipStm} node. * @return a deep clone of this {@link ASkipStm} node */ public ASkipStm clone() { return new ASkipStm( _location, _type ); }
/** * Creates a deep clone of this {@link ASkipStm} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link ASkipStm} node */ public ASkipStm clone(Map<INode,INode> oldToNewMap) { ASkipStm node = new ASkipStm( _location, _type ); oldToNewMap.put(this, node); return node; }
public static ASkipStm newASkipStm(ILexLocation location) { ASkipStm result = new ASkipStm(); initStatement(result, location); return result; }
public WhileLoopObligation(AWhileStm stmt, IPOContextStack ctxt, IPogAssistantFactory af) throws AnalysisException { super(stmt, POType.WHILE_LOOP, ctxt, stmt.getLocation(), af); AWhileStm whileStmt = new AWhileStm(); whileStmt.setExp(stmt.getExp().clone()); whileStmt.setStatement(new ASkipStm()); AVariableExp nyexp = getVarExp(new LexNameToken("", "...", null)); valuetree.setPredicate(nyexp); // valuetree.setPredicate(whileStmt); // valuetree.setContext(ctxt.getContextNodeList()); } }