Annotation Type CSharpInnerClass


  • @Retention(SOURCE)
    @Target(METHOD)
    public @interface CSharpInnerClass
    This annotation appears on the declaration of a method that creates an instance of an anonymous inner class, and it is used to define what information needs to be passed to the generated C# inner class.

    The parameter outer indicates whether a reference to the outer class ("this") should be passed. This defaults to true and should be set to false only if the containing method is non-static.

    The parameter extra is multi-valued, and contains one entry for each extra parameter to be passed through. Parameters already present in the constructor of the inner class are included automatically. The value of the each entry is in the form of a variable parameter declaration (type, then name, whitespace separated), for example "Saxon.Hej.s9api.Location loc".

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] extra  
      boolean outer  
    • Element Detail

      • outer

        boolean outer
        Default:
        false
      • extra

        java.lang.String[] extra
        Default:
        {}