Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAstNode()AstNode(String astType, List<AstNode> children, AnalysisPosition end, AnalysisPosition start) -
Method Summary
Modifier and TypeMethodDescriptionaddChildrenItem(AstNode childrenItem) end(AnalysisPosition end) booleanReturn true if this AstNode object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The tree-sitter node type of this AST node.The child nodes of this AST node, or null for a leaf node.getEnd()A position in source code, identified by line and column numbers.The name of the field this node occupies within its parent node, when the parent addresses it by name.getStart()A position in source code, identified by line and column numbers.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAstType(String astType) voidsetChildren(List<AstNode> children) voidsetEnd(AnalysisPosition end) voidsetFieldName(String fieldName) voidsetStart(AnalysisPosition start) start(AnalysisPosition start) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AST_TYPE
- See Also:
-
JSON_PROPERTY_CHILDREN
- See Also:
-
JSON_PROPERTY_END
- See Also:
-
JSON_PROPERTY_FIELD_NAME
- See Also:
-
JSON_PROPERTY_START
- See Also:
-
-
Constructor Details
-
AstNode
public AstNode() -
AstNode
public AstNode(String astType, List<AstNode> children, AnalysisPosition end, AnalysisPosition start)
-
-
Method Details
-
astType
-
getAstType
The tree-sitter node type of this AST node.- Returns:
- astType
-
setAstType
-
children
-
addChildrenItem
-
getChildren
The child nodes of this AST node, or null for a leaf node.- Returns:
- children
-
setChildren
-
end
-
getEnd
A position in source code, identified by line and column numbers.- Returns:
- end
-
setEnd
-
fieldName
-
getFieldName
The name of the field this node occupies within its parent node, when the parent addresses it by name.- Returns:
- fieldName
-
setFieldName
-
start
-
getStart
A position in source code, identified by line and column numbers.- Returns:
- start
-
setStart
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- AstNode
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this AstNode object is equal to o. -
hashCode
public int hashCode() -
toString
-