lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.generator.rust.CargoDependencySpec Class Reference

Info about a cargo dependency. More...

Classes

class  CargoDependenciesPropertyType
 The property type for the. More...

Public Member Functions

boolean equals (Object o)
Set< String > getFeatures ()
 Returns the list of features that are enabled on the crate.
String getGitRepo ()
 Returns the git path.
String getLocalPath ()
 Local path to the crate.
String getRev ()
 Returns the revision number to use with git/localPath.
String getTag ()
String getVersion ()
 The version.
void setGitRepo (String gitRepo)
void setLocalPath (String localPath)
void setRev (String rev)

Static Public Member Functions

static Element extractSpec (CargoDependencySpec spec)
 Extracts an AST representation of a CargoDependencySpec.
static Map< String, CargoDependencySpecparseAll (Element element)
 Parse the given element.

Package Functions

 CargoDependencySpec (String version, String gitRepo, String rev, String gitTag, String localPath, List< String > features)

Detailed Description

Info about a cargo dependency.

See org.lflang.target.property.CargoDependenciesProperty.

Author
Clément Fournier - TU Dresden, INSA Rennes

Constructor & Destructor Documentation

◆ CargoDependencySpec()

org.lflang.generator.rust.CargoDependencySpec.CargoDependencySpec ( String version,
String gitRepo,
String rev,
String gitTag,
String localPath,
List< String > features )
package

Member Function Documentation

◆ equals()

boolean org.lflang.generator.rust.CargoDependencySpec.equals ( Object o)

◆ extractSpec()

Element org.lflang.generator.rust.CargoDependencySpec.extractSpec ( CargoDependencySpec spec)
static

Extracts an AST representation of a CargoDependencySpec.

◆ getFeatures()

Set< String > org.lflang.generator.rust.CargoDependencySpec.getFeatures ( )

Returns the list of features that are enabled on the crate.

May be null.

◆ getGitRepo()

String org.lflang.generator.rust.CargoDependencySpec.getGitRepo ( )

Returns the git path.

◆ getLocalPath()

String org.lflang.generator.rust.CargoDependencySpec.getLocalPath ( )

Local path to the crate.

May be null.

◆ getRev()

String org.lflang.generator.rust.CargoDependencySpec.getRev ( )

Returns the revision number to use with git/localPath.

◆ getTag()

String org.lflang.generator.rust.CargoDependencySpec.getTag ( )

◆ getVersion()

String org.lflang.generator.rust.CargoDependencySpec.getVersion ( )

The version.

May be null.

◆ parseAll()

Map< String, CargoDependencySpec > org.lflang.generator.rust.CargoDependencySpec.parseAll ( Element element)
static

Parse the given element.

It must be a JSON map, whose keys are dependency names, and values are CargoDependencySpecs.

Exceptions
InvalidLfSourceExceptionIf the element is somehow invalid

◆ setGitRepo()

void org.lflang.generator.rust.CargoDependencySpec.setGitRepo ( String gitRepo)

◆ setLocalPath()

void org.lflang.generator.rust.CargoDependencySpec.setLocalPath ( String localPath)

◆ setRev()

void org.lflang.generator.rust.CargoDependencySpec.setRev ( String rev)

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/rust/CargoDependencySpec.java