Class CodeMacroSource
- java.lang.Object
-
- org.xwiki.rendering.macro.code.source.CodeMacroSource
-
@Unstable public class CodeMacroSource extends Object
A content to use in a code macro.- Since:
- 15.0RC1, 14.10.2
- Version:
- $Id: 6d108a6f6f1421df776067818d3dfe850621ae44 $
-
-
Constructor Summary
Constructors Constructor Description CodeMacroSource(org.xwiki.rendering.macro.source.MacroContentSourceReference reference, String content, String language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getContent()
String
getLanguage()
org.xwiki.rendering.macro.source.MacroContentSourceReference
getReference()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
CodeMacroSource
public CodeMacroSource(org.xwiki.rendering.macro.source.MacroContentSourceReference reference, String content, String language)
- Parameters:
reference
- the reference of the contentcontent
- the content to highlightlanguage
- the language of the content if known, null otherwise- Since:
- 15.1RC1, 14.10.5
-
-
Method Detail
-
getReference
public org.xwiki.rendering.macro.source.MacroContentSourceReference getReference()
- Returns:
- the reference of the content
- Since:
- 15.1RC1, 14.10.5
-
getContent
public String getContent()
- Returns:
- the content to highlight
-
getLanguage
public String getLanguage()
- Returns:
- the language of the content if known, null otherwise
-
-