Class Code

java.lang.Object
org.commonmark.node.Node
org.commonmark.node.Code

public class Code extends Node
Inline code span, e.g.:
 Some `inline code`
 
See Also:
  • Field Details

    • literal

      private String literal
  • Constructor Details

    • Code

      public Code()
    • Code

      public Code(String literal)
  • Method Details

    • accept

      public void accept(Visitor visitor)
      Specified by:
      accept in class Node
    • getLiteral

      public String getLiteral()
      Returns:
      the literal text in the code span (note that it's not necessarily the raw text between tildes, e.g. when spaces are stripped)
    • setLiteral

      public void setLiteral(String literal)