|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.renderer.macro.code.JavaCodeFormatter
public class JavaCodeFormatter
Syntax highlights java code.
Constructor Summary | |
---|---|
JavaCodeFormatter()
|
Method Summary | |
---|---|
java.lang.String |
filter(java.lang.String input,
RenderContext renderContext)
|
boolean |
getApplyTableSurround()
|
java.lang.String |
getBracketEnd()
Returns the HTML tag that ends character blocks. |
java.lang.String |
getBracketStart()
Returns the HTML tag that starts bracket blocks. |
java.lang.String |
getCharacterEnd()
Returns the HTML tag that ends character blocks. |
java.lang.String |
getCharacterStart()
Returns the HTML tag that starts character blocks. |
java.lang.String |
getCommentEnd()
Returns the HTML tag that ends comment blocks. |
java.lang.String |
getCommentStart()
Returns the HTML tag that starts comment blocks. |
boolean |
getFilterMethod()
See if method filtering is enabled. |
boolean |
getFilterNumber()
See if number filtering is enabled. |
java.lang.String |
getLineNumberColor()
|
java.lang.String |
getMethodEnd()
Returns the HTML tag that ends method blocks. |
java.lang.String |
getMethodStart()
Returns the HTML tag that starts method blocks. |
java.lang.String |
getName()
|
java.lang.String |
getNumberEnd()
Returns the HTML tag that ends character blocks. |
java.lang.String |
getNumberStart()
Gets the string value of the string escape character. |
java.lang.String |
getReservedWordEnd()
Returns the HTML tag that ends keyword blocks. |
java.lang.String |
getReservedWordStart()
Returns the HTML tag that starts keyword blocks. |
boolean |
getShowLineCount()
|
java.lang.String |
getStringEnd()
Returns the HTML tag that ends string blocks. |
java.lang.String |
getStringStart()
Returns the HTML tag that starts string blocks. |
java.lang.String |
getTableBorderColor()
Returns the code table's border color. |
java.lang.String |
getTableCodePanelBckgrndColor()
Returns the code panel's background color. |
java.lang.String |
getTableLinePanelBckgrndColor()
Returns the line-number panel's background color. |
void |
setApplyTableSurround(boolean applyTableSurround)
|
void |
setBracketEnd(java.lang.String bracketEnd)
Sets the HTML tag that ends character blocks. |
void |
setBracketStart(java.lang.String bracketStart)
Sets the HTML tag that starts character blocks. |
void |
setCharacterEnd(java.lang.String characterEnd)
Sets the HTML tag that ends character blocks. |
void |
setCharacterStart(java.lang.String characterStart)
Sets the HTML tag that starts character blocks. |
void |
setCommentEnd(java.lang.String commentEnd)
Sets the HTML tag that ends comment blocks. |
void |
setCommentStart(java.lang.String commentStart)
Sets the HTML tag that starts comment blocks. |
void |
setFilterMethod(boolean filterMethod)
Enables or disables method filtering. |
void |
setFilterNumber(boolean filterNumber)
Enables or disables number filtering. |
void |
setLineNumberColor(java.lang.String lineNumberColor)
|
void |
setMethodEnd(java.lang.String methodEnd)
Sets the HTML tag that ends method blocks. |
void |
setMethodStart(java.lang.String methodStart)
Sets the HTML tag that starts method blocks. |
void |
setNumberEnd(java.lang.String numberEnd)
Sets the HTML tag that ends number literals. |
void |
setNumberStart(java.lang.String numberStart)
Sets the HTML tag that starts character blocks. |
void |
setReservedWordEnd(java.lang.String reservedWordEnd)
Sets the HTML tag that ends keyword blocks. |
void |
setReservedWordStart(java.lang.String reservedWordStart)
Sets the HTML tag that starts reserved word blocks. |
void |
setShowLineCount(boolean showLineCount)
|
void |
setStringEnd(java.lang.String stringEnd)
Sets the HTML tag that ends string blocks. |
void |
setStringStart(java.lang.String stringStart)
Sets the HTML tag that starts string blocks. |
void |
setTableBorderColor(java.lang.String tableBorderColor)
Sets the code table's border color. |
void |
setTableCodePanelBckgrndColor(java.lang.String tableCodePanelBckgrndColor)
Sets the code panel's background color. |
void |
setTableLinePanelBckgrndColor(java.lang.String tableLinePanelBckgrndColor)
Sets the line-number panel's background color. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaCodeFormatter()
Method Detail |
---|
public java.lang.String getName()
getName
in interface SourceCodeFormatter
public java.lang.String filter(java.lang.String input, RenderContext renderContext)
filter
in interface SourceCodeFormatter
public boolean getApplyTableSurround()
public void setApplyTableSurround(boolean applyTableSurround)
public boolean getShowLineCount()
public void setShowLineCount(boolean showLineCount)
public java.lang.String getTableBorderColor()
red
or
#123456
.
public void setTableBorderColor(java.lang.String tableBorderColor)
red
or
#123456
.
tableBorderColor
- the code table's border colorpublic java.lang.String getTableLinePanelBckgrndColor()
white
or #123456
public void setTableLinePanelBckgrndColor(java.lang.String tableLinePanelBckgrndColor)
white
or #123456
.
tableLinePanelBckgrndColor
- the line panel's background colorpublic java.lang.String getTableCodePanelBckgrndColor()
blue
or
#123456
.
public void setTableCodePanelBckgrndColor(java.lang.String tableCodePanelBckgrndColor)
blue
or
#123456
.
tableCodePanelBckgrndColor
- the code panel's background colorpublic java.lang.String getLineNumberColor()
public void setLineNumberColor(java.lang.String lineNumberColor)
public java.lang.String getCommentStart()
<i>
.
public void setCommentStart(java.lang.String commentStart)
<i>
.
commentStart
- the HTML tag to start comment blockspublic java.lang.String getCommentEnd()
</i>
. The tag should correspond to the comment end tag.
public void setCommentEnd(java.lang.String commentEnd)
</i>
.
The tag should correspond to the comment end tag.
commentEnd
- the HTML tag to end comment blockspublic java.lang.String getStringStart()
<font color="red">
.
public void setStringStart(java.lang.String stringStart)
<font color="red">
.
stringStart
- the HTML tag to start string blockspublic java.lang.String getStringEnd()
</font>
. The tag should correspond to the string end tag.
public void setStringEnd(java.lang.String stringEnd)
</font>
. The tag should correspond to the string end tag.
stringEnd
- the HTML tag to end string blockspublic java.lang.String getReservedWordStart()
<font color="navy">
.
public void setReservedWordStart(java.lang.String reservedWordStart)
<font color="navy">
.
reservedWordStart
- the HTML tag to start keyword blockspublic java.lang.String getReservedWordEnd()
</font>
. This should correspond to the end tag for keyword blocks.
public void setReservedWordEnd(java.lang.String reservedWordEnd)
<font color="navy">
. This should correspond to the end tag
for keyword blocks.
reservedWordEnd
- the HTML tag to end keyword blockspublic java.lang.String getMethodStart()
<font color="brown">
.
public void setMethodStart(java.lang.String methodStart)
<font color="brown">
.
methodStart
- the HTML tag to start method blockspublic java.lang.String getMethodEnd()
</font>
. This should correspond to the end tag for method blocks.
public void setMethodEnd(java.lang.String methodEnd)
</font>
. This should correspond to the end tag for method blocks.
methodEnd
- the HTML tag to end method blockspublic java.lang.String getCharacterStart()
<font color="navy">
.
public void setCharacterStart(java.lang.String characterStart)
<font color="navy">
.
characterStart
- the HTML tag to start method blockspublic java.lang.String getCharacterEnd()
</font>
. This should correspond to the end tag for character blocks.
public void setCharacterEnd(java.lang.String characterEnd)
</font>
. This should correspond to the end tag for character blocks.
characterEnd
- the HTML tag to end character blockspublic java.lang.String getBracketStart()
<font color="navy">
.
public void setBracketStart(java.lang.String bracketStart)
<font color="navy">
.
bracketStart
- the HTML tag to start bracket blockspublic java.lang.String getBracketEnd()
</font>
. This should correspond to the end tag for bracket blocks.
public void setBracketEnd(java.lang.String bracketEnd)
</font>
. This should correspond to the end tag for bracket blocks.
bracketEnd
- the HTML tag to end bracket blocks.public java.lang.String getNumberStart()
public void setNumberStart(java.lang.String numberStart)
<font color="navy">
.
numberStart
- the HTML tag to start bracket blockspublic java.lang.String getNumberEnd()
</font>
. This should correspond to the end tag for number literals.
public void setNumberEnd(java.lang.String numberEnd)
</font>
. This should correspond to the end tag for number literals.
numberEnd
- the HTML tag to end number literals.public boolean getFilterMethod()
public void setFilterMethod(boolean filterMethod)
public boolean getFilterNumber()
public void setFilterNumber(boolean filterNumber)
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |