com.atlassian.renderer.v2.components
Class MacroTag

java.lang.Object
  extended by com.atlassian.renderer.v2.components.MacroTag

public class MacroTag
extends java.lang.Object


Field Summary
 java.lang.String argString
           
 java.lang.String command
           
 int endIndex
           
 java.lang.String originalText
           
 int startIndex
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 MacroTag getEndTag()
           
 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.
 int hashCode()
           
 boolean isNewlineAfter()
           
 boolean isNewlineBefore()
           
static MacroTag makeMacroTag(java.lang.String wiki, int startIndex)
           
 void setEndTag(MacroTag endTag)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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 © 2008 Atlassian Pty Ltd. All Rights Reserved.