Code example for Collection

Methods: addAll

0
	public void addChildSymbols(Collection<String> childSymbols)
	{ 
		if(isDef()) 
			defSymbols.addAll(childSymbols);
		if(isUse()) 
			useSymbols.addAll(childSymbols);
	} 
	 
	public Collection<UseOrDef> useOrDefsFromChildSymbols()
	{ 
		LinkedList<UseOrDef> retval = new LinkedList<UseOrDef>();
		 
		if(isDef()) 
			retval.addAll(createDefsForAllSymbols(defSymbols));
	 
		if(isUse()) 
			retval.addAll(createUsesForAllSymbols(useSymbols));
			 
		return retval;
	}