Class File
Represents a source from a single file
Inheritance
System.Object
File
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class File : IEquatable<File>
Constructors
File(String, String, PackageClause, List<ImportDeclaration>, List<Statement>)
Initializes a new instance of the File class.
Declaration
public File(string type = null, string name = null, PackageClause package = null, List<ImportDeclaration> imports = null, List<Statement> body = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | Type of AST node. |
System.String | name | The name of the file.. |
PackageClause | package | package. |
List<ImportDeclaration> | imports | A list of package imports. |
List<Statement> | body | List of Flux statements. |
Properties
Body
List of Flux statements
Declaration
public List<Statement> Body { get; set; }
Property Value
Type | Description |
---|---|
List<Statement> | List of Flux statements |
Imports
A list of package imports
Declaration
public List<ImportDeclaration> Imports { get; set; }
Property Value
Type | Description |
---|---|
List<ImportDeclaration> | A list of package imports |
Name
The name of the file.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the file. |
Package
Gets or Sets Package
Declaration
public PackageClause Package { get; set; }
Property Value
Type | Description |
---|---|
PackageClause |
Type
Type of AST node
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type of AST node |
Methods
Equals(File)
Returns true if File instances are equal
Declaration
public bool Equals(File input)
Parameters
Type | Name | Description |
---|---|---|
File | input | Instance of File to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |