Class SequenceSubsequence

    • Constructor Detail

      • SequenceSubsequence

        protected SequenceSubsequence​(VarInfo vi1,
                                      VarInfo vi2,
                                      boolean from_start,
                                      boolean off_by_one)
        Parameters:
        from_start - true means the range goes 0..n; false means the range goes n..end. (n might be fudged through off_by_one.)
        off_by_one - true means we should exclude the scalar from the range; false means we should include it
    • Method Detail

      • seqvar

        public VarInfo seqvar​(@GuardSatisfied SequenceSubsequence this)
      • sclvar

        public VarInfo sclvar​(@GuardSatisfied SequenceSubsequence this)
      • makeVarInfo

        protected VarInfo makeVarInfo()
        Description copied from class: Derivation
        Used by all child classes to actually create the VarInfo this represents, after which it is interned for getVarInfo().
        Specified by:
        makeVarInfo in class Derivation
      • csharp_name

        @SideEffectFree
        public String csharp_name​(String index)
        Description copied from class: Derivation
        Returns the name of this variable in CSHARPCONTRACT format. If an index is specified, it is used as an array index. It is an error to specify an index on a non-array variable.
        Overrides:
        csharp_name in class Derivation
      • esc_name

        @SideEffectFree
        public String esc_name​(String index)
        Description copied from class: Derivation
        Returns the name of this variable in ESC format. If an index is specified, it is used as an array index. It is an error to specify an index on a non-array variable.
        Overrides:
        esc_name in class Derivation
      • jml_name

        public String jml_name​(String index)
        Description copied from class: Derivation
        Returns the name of this variable in JML format. If an index is specified, it is used as an array index. It is an error to specify an index on a non-array variable.
        Overrides:
        jml_name in class Derivation