com.atlassian.renderer.v2.components
Class MacroTag
java.lang.Object
com.atlassian.renderer.v2.components.MacroTag
public class MacroTag
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
startIndex
public final int startIndex
endIndex
public final int endIndex
originalText
public final java.lang.String originalText
command
public final java.lang.String command
argString
public final java.lang.String argString
makeMacroTag
public static MacroTag makeMacroTag(java.lang.String wiki,
int startIndex)
isNewlineBefore
public boolean isNewlineBefore()
isNewlineAfter
public boolean isNewlineAfter()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
setEndTag
public void setEndTag(MacroTag endTag)
getEndTag
public MacroTag getEndTag()
getEndTagOrDummyEndTag
public MacroTag getEndTagOrDummyEndTag()
- Helper method to be called when the macro is known to require an end tag, but the
markup from which the tag was generated is no known to be complete.
Returns the end tag if there is one, or generates a dummy end tag otherwise.
Note that the dummy end tags's startIndex will be -1
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.