/** * Creates a new complete constructor {@code AMapPattern} 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 maplets_ the {@link NodeList} node for the {@code maplets} child of this {@link AMapPattern} node */ public AMapPattern(ILexLocation location_, List<? extends PDefinition> definitions_, Boolean resolved_, List<? extends AMapletPatternMaplet> maplets_) { super(location_,definitions_,resolved_); this.setMaplets(maplets_); }
public static AMapPattern newAMapPattern(ILexLocation location, List<AMapletPatternMaplet> maplets) { AMapPattern result = new AMapPattern(); initPattern(result, location); result.setMaplets(maplets); return result; }