/** * Creates a new complete constructor {@code AStringPatternIR} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param value_ the {@link String} node for the {@code value} child of this {@link AStringPatternIR} node */ public AStringPatternIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, String value_) { super(sourceNode_,tag_,metaData_); this.setValue(value_); }
/** * Creates a new tree field only constructor {@code AStringPatternIR TAG=string} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param value_ the {@link String} node for the {@code value} child of this {@link AStringPatternIR} node */ public AStringPatternIR(String value_) { super(null,null,null); this.setValue(value_); }
@Override public SPatternIR caseAStringPattern(AStringPattern node, IRInfo question) throws AnalysisException { String value = node.getValue().getValue(); AStringPatternIR stringPatternCg = new AStringPatternIR(); stringPatternCg.setValue(value); return stringPatternCg; }