Package org.jboss.jdeparser
Class ImplJHtmlTag
- java.lang.Object
-
- org.jboss.jdeparser.AbstractJComment
-
- org.jboss.jdeparser.AbstractJHtmlComment
-
- org.jboss.jdeparser.ImplJHtmlTag
-
- All Implemented Interfaces:
DocCommentContent
,HtmlCommentContent
,JComment
,JHtmlComment
,JHtmlTag
,Writable
class ImplJHtmlTag extends AbstractJHtmlComment implements JHtmlTag, HtmlCommentContent
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>
attributes
private boolean
newLine
private java.lang.String
tag
private boolean
writeClose
-
Fields inherited from class org.jboss.jdeparser.AbstractJComment
CLOSE_PAREN_CONTENT, COMMA_CONTENT, DOC_ROOT_CONTENT, HASH_CONTENT, NL_CONTENT, OPEN_PAREN_CONTENT
-
-
Constructor Summary
Constructors Constructor Description ImplJHtmlTag(java.lang.String tag, boolean newLine, boolean writeClose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JHtmlTag
attribute(java.lang.String name)
JHtmlTag
attribute(java.lang.String name, java.lang.String value)
(package private) java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
attributes()
private void
doAdd(java.lang.String name, java.lang.String value)
(package private) java.lang.String
getTag()
(package private) boolean
isNewLine()
void
write(SourceFileWriter writer)
(package private) void
writeCloseTag(SourceFileWriter writer)
(package private) void
writeOpenTag(SourceFileWriter writer)
-
Methods inherited from class org.jboss.jdeparser.AbstractJHtmlComment
add, block, br, docRoot, htmlLink, htmlTag, inlineDocTag, nl, p, preformattedCode, sp, text, typeName, value
-
Methods inherited from class org.jboss.jdeparser.AbstractJComment
add, addItemDirectly, code, getContent, inlineDocTag, linkConstructor, linkField, linkMethod, linkMethod, linkType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.jdeparser.JComment
code, inlineDocTag, linkConstructor, linkField, linkMethod, linkMethod, linkType
-
Methods inherited from interface org.jboss.jdeparser.JHtmlComment
block, br, docRoot, htmlLink, htmlTag, inlineDocTag, nl, p, preformattedCode, sp, text, typeName, value
-
-
-
-
Method Detail
-
getTag
java.lang.String getTag()
-
isNewLine
boolean isNewLine()
-
attribute
public JHtmlTag attribute(java.lang.String name)
-
attribute
public JHtmlTag attribute(java.lang.String name, java.lang.String value)
-
doAdd
private void doAdd(java.lang.String name, java.lang.String value)
-
attributes
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>> attributes()
-
writeOpenTag
void writeOpenTag(SourceFileWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
writeCloseTag
void writeCloseTag(SourceFileWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
- Specified by:
write
in interfaceWritable
- Overrides:
write
in classAbstractJComment
- Throws:
java.io.IOException
-
-