Package com.uwyn.jhighlight.renderer
Class JavaXhtmlRenderer
- java.lang.Object
-
- com.uwyn.jhighlight.renderer.XhtmlRenderer
-
- com.uwyn.jhighlight.renderer.JavaXhtmlRenderer
-
- All Implemented Interfaces:
Renderer
public class JavaXhtmlRenderer extends XhtmlRenderer
Generates highlighted syntax in XHTML from Java source.- Since:
- 1.0
- Version:
- $Revision: 3108 $
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashMapDEFAULT_CSS
-
Constructor Summary
Constructors Constructor Description JavaXhtmlRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetCssClass(int style)Looks up the CSS class identifier that corresponds to the syntax style.protected java.util.MapgetDefaultCssStyles()Returns a map of all the CSS styles that the renderer requires, together with default definitions for them.protected ExplicitStateHighlightergetHighlighter()Returns the language-specific highlighting lexer that should be used-
Methods inherited from class com.uwyn.jhighlight.renderer.XhtmlRenderer
getCssClassDefinitions, getXhtmlFooter, getXhtmlHeader, getXhtmlHeaderFragment, highlight, highlight
-
-
-
-
Method Detail
-
getDefaultCssStyles
protected java.util.Map getDefaultCssStyles()
Description copied from class:XhtmlRendererReturns a map of all the CSS styles that the renderer requires, together with default definitions for them.- Specified by:
getDefaultCssStylesin classXhtmlRenderer- Returns:
- The map of CSS styles.
-
getCssClass
protected java.lang.String getCssClass(int style)
Description copied from class:XhtmlRendererLooks up the CSS class identifier that corresponds to the syntax style.- Specified by:
getCssClassin classXhtmlRenderer- Parameters:
style- The syntax style.- Returns:
- The requested CSS class identifier; or
nullif the syntax style isn't supported.
-
getHighlighter
protected ExplicitStateHighlighter getHighlighter()
Description copied from class:XhtmlRendererReturns the language-specific highlighting lexer that should be used- Specified by:
getHighlighterin classXhtmlRenderer- Returns:
- The requested highlighting lexer.
-
-