/FileExtraction/Java_unseen/slavpetrov_berkeleyparser/src/edu/berkeley/nlp/syntax/NamedTree.java
package edu.berkeley.nlp.syntax;

import java.util.List;

public class NamedTree<L> extends Tree<L>

{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8841212195373673057L;
	private final String name;

	/**
	 * @param label
	 * @param children
	 */
	public NamedTree(L label, List<Tree<L>> children, String name) {

		super(label, children);
		this.name = name;
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param label
	 */
	public NamedTree(L label, String name) {

		super(label);
		this.name = name;
		// TODO Auto-generated constructor stub
	}

	public String getName() {
		return name;
	}

}
