Package fmpp.models

Class JSONNullNode

java.lang.Object
fmpp.models.JSONNode
fmpp.models.JSONNullNode
All Implemented Interfaces:
freemarker.template.AdapterTemplateModel, freemarker.template.TemplateModel, freemarker.template.TemplateNodeModel, Serializable

public class JSONNullNode extends JSONNode
JSON "null" value; see http://www.json.org/. Instances of this can only be found through traversing the FTL node tree (TemplateNodeModel tree), not as normal FTL sequence or FTL hash items.
See Also:
  • Field Details

  • Constructor Details

    • JSONNullNode

      public JSONNullNode(JSONNode parentNode, String nodeName)
  • Method Details

    • getChildNodes

      public freemarker.template.TemplateSequenceModel getChildNodes() throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • getNodeType

      public String getNodeType() throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • getDefaultNodeName

      protected String getDefaultNodeName()
      Description copied from class: JSONNode
      Returns the name of the node if it has no explicit name. This is normally called by the JSONNode(JSONNode, String) constructor if its second argument is null.
      Specified by:
      getDefaultNodeName in class JSONNode
      See Also:
    • getAdaptedObject

      public Object getAdaptedObject(Class<?> hint)
      Returns the plain Java object wrapped into this node.
      Since:
      0.9.16