public ANTLRTreeAttributeAxisIterator(Tree tree) {
		this.attributes = new ArrayList<ANTLRTreeAttribute>();

		this.attributes.add(new ANTLRTreeAttribute(tree, "line", ""
				+ tree.getLine()));

		if (tree instanceof CommonTree) {
			final CommonTree commonTree = (CommonTree) tree;
			final CommonKoopaToken token = (CommonKoopaToken) commonTree
					.getToken();
			final Token koopa = token.getKoopaToken();

			final Set<Object> tags = koopa.getTags();
			if (tags != null) {
				for (Object tag : tags) {
					this.attributes.add(new ANTLRTreeAttribute(tree, "tag", tag
							.toString()));

				}
			}
		}
	}