Class AstNode

java.lang.Object
com.datadog.api.client.v2.model.AstNode

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AstNode extends Object
A node in the abstract syntax tree of the parsed source code.
  • Field Details

  • Constructor Details

  • Method Details

    • astType

      public AstNode astType(String astType)
    • getAstType

      public String getAstType()
      The tree-sitter node type of this AST node.
      Returns:
      astType
    • setAstType

      public void setAstType(String astType)
    • children

      public AstNode children(List<AstNode> children)
    • addChildrenItem

      public AstNode addChildrenItem(AstNode childrenItem)
    • getChildren

      @Nullable public List<AstNode> getChildren()
      The child nodes of this AST node, or null for a leaf node.
      Returns:
      children
    • setChildren

      public void setChildren(List<AstNode> children)
    • end

      public AstNode end(AnalysisPosition end)
    • getEnd

      public AnalysisPosition getEnd()
      A position in source code, identified by line and column numbers.
      Returns:
      end
    • setEnd

      public void setEnd(AnalysisPosition end)
    • fieldName

      public AstNode fieldName(String fieldName)
    • getFieldName

      @Nullable public String getFieldName()
      The name of the field this node occupies within its parent node, when the parent addresses it by name.
      Returns:
      fieldName
    • setFieldName

      public void setFieldName(String fieldName)
    • start

      public AstNode start(AnalysisPosition start)
    • getStart

      public AnalysisPosition getStart()
      A position in source code, identified by line and column numbers.
      Returns:
      start
    • setStart

      public void setStart(AnalysisPosition start)
    • putAdditionalProperty

      public AstNode putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      AstNode
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this AstNode object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object