Class MetamodelSelector

    • Method Detail

      • copyWithNewStackTraceHolder

        public Selector copyWithNewStackTraceHolder()
        Since selector in a metamodel class is a static final field, the stackTraceHolder property it contains does not indicate where the metamodel property is used in client code. This method creates a copy of the selector with a new stackTraceHolder, so that correct location can be output in the "unused selectors" error message.
        Returns:
        a copy of this selector containing a new stackTraceHolder