Since Code Assist seems to have improved a lot over the last years, I dare to ask if support for Object Type instances is planned.
Most of the required information seems to be available (Navigator, existing Code Assist for Object Types), so I hope there might be a way to support Object Type instances too.
Below are some examples that came to my mind. Thanks!
CREATE OR REPLACE TYPE t_type AS OBJECT (
something VARCHAR2(10),
MEMBER FUNCTION get_something RETURN VARCHAR2,
STATIC FUNCTION get_something_static RETURN PLS_INTEGER
);
DECLARE
TYPE t_record IS RECORD(
something PLS_INTEGER,
type_member t_type
);
v_type t_type;
v_record t_record;
v_desc_rec dbms_sql.desc_rec;
v_desc_tab dbms_sql.desc_tab;
BEGIN
– Already works! (no need to show non-static members though)
dbms_output.put_line( t_type.get_something_static() );
dbms_output.put_line( v_type.something );
dbms_output.put_line( v_type.get_something() );
dbms_output.put_line( v_record.something );
dbms_output.put_line( v_record.type_member.something );
dbms_output.put_line( v_desc_rec.col_type );
dbms_output.put_line( v_desc_tab(1).col_type );
END;