Package jline.api.sn

Class SnContract

java.lang.Object
jline.api.sn.SnContract

public final class SnContract extends Object
The NetworkStruct contract: every field a NetworkStruct may carry.

GENERATED by doc/generate-sn-contract.py from doc/line-sn-contract.json. Do not edit.

Fields are keyed by their MATLAB name; SnContract.Field.javaName is the field of NetworkStruct that carries it here, null when the JAR does not store it (SnContract.Field.absent then says why). Shapes use the grammar of the json's "shapes" entry. SnContractValidate checks a struct against this table.

  • Method Details

    • fields

      public static Map<String,SnContract.Field> fields()
      Every field, by its MATLAB name.
    • byJavaName

      public static SnContract.Field byJavaName(String javaName)
      The field the JAR stores under javaName; null when the contract does not declare it.
    • nativeFields

      public static Map<String,Class<?>[]> nativeFields()
      JAR-only fields (no MATLAB twin) and the types they may hold.