/** * Creates a new complete constructor {@code AConcatenationPattern} 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 left_ the {@link PPattern} node for the {@code left} child of this {@link AConcatenationPattern} node * @param right_ the {@link PPattern} node for the {@code right} child of this {@link AConcatenationPattern} node */ public AConcatenationPattern(ILexLocation location_, List<? extends PDefinition> definitions_, Boolean resolved_, PPattern left_, PPattern right_) { super(location_,definitions_,resolved_); this.setLeft(left_); this.setRight(right_); }
public static AConcatenationPattern newAConcatenationPattern(PPattern left, ILexLocation location, PPattern right) { AConcatenationPattern result = new AConcatenationPattern(); initPattern(result, location); result.setLeft(left); result.setRight(right); return result; }