View Javadoc
1 /* FOREGEJ - FOrmatting REfactoring GEnerating Java 2 * 3 * Copyright (C) 2003 Andreas Arrgard 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 package com.octagroup.foregej.html.ast; 20 import com.octagroup.foregej.antlr.NodeWriter; 21 import com.octagroup.foregej.html.HtmlAST; 22 /*** 23 */ 24 public class Tag extends HtmlAST 25 { 26 /*** 27 * Returns true if this tag has any attributes. 28 * 29 * @return true if this tag has any attributes. 30 */ 31 public boolean hasAttributes() 32 { 33 return getFirstChild()!=null; 34 } 35 /*** 36 * @param nw 37 */ 38 public void write(NodeWriter nw) 39 { 40 super.write(nw); 41 nw.write(">"); 42 } 43 }

This page was automatically generated by Maven