net.sourceforge.pmd.jsp.ast

Class ASTElement

public class ASTElement extends SimpleNode

Constructor Summary
ASTElement(int id)
ASTElement(JspParser p, int id)
Method Summary
StringgetLocalName()
StringgetName()
StringgetNamespacePrefix()
booleanisEmpty()
booleanisHasNamespacePrefix()
ObjectjjtAccept(JspParserVisitor visitor, Object data)
Accept the visitor.
voidsetEmpty(boolean empty)
voidsetName(String name)
StringtoString(String prefix)

Constructor Detail

ASTElement

public ASTElement(int id)

ASTElement

public ASTElement(JspParser p, int id)

Method Detail

getLocalName

public String getLocalName()

Returns: String - The part of the name that is after the first colon (":"). If the name does not contain a colon, the full name is returned.

getName

public String getName()

Returns: Returns the name.

getNamespacePrefix

public String getNamespacePrefix()

Returns: String - the part of the name that is before the (first) colon (":")

isEmpty

public boolean isEmpty()

Returns: Returns the empty.

isHasNamespacePrefix

public boolean isHasNamespacePrefix()

Returns: boolean - true if the element has a namespace-prefix, false otherwise

jjtAccept

public Object jjtAccept(JspParserVisitor visitor, Object data)
Accept the visitor. *

setEmpty

public void setEmpty(boolean empty)

Parameters: empty The empty to set.

setName

public void setName(String name)

Parameters: name The name to set.

toString

public String toString(String prefix)