/[eiffelstudio]/trunk/Src/library/Eiffel2Java/java_object.e
ViewVC logotype

Diff of /trunk/Src/library/Eiffel2Java/java_object.e

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 38227 by julieng, Thu Jun 5 22:15:16 2003 UTC revision 38228 by manus, Tue Jul 29 05:31:36 2003 UTC
# Line 114  feature -- Comparison Line 114  feature -- Comparison
114    
115  feature -- Reflection  feature -- Reflection
116    
117          method_id (method_name: STRING; signature: STRING): POINTER is          method_id (feature_name: STRING; signature: STRING): POINTER is
118                          -- Find the method_id for "method_name" with signature                          -- Find the method_id for `feature_name' with signature
119                          -- encoded by "signature"                          -- encoded by "signature"
                 require  
                         (method_name /= Void) and (signature /= Void)  
120                  local                  local
121                          method_name_to_c, signature_to_c: C_STRING                          method_name_to_c, signature_to_c: C_STRING
122                  do                  do
123                          create method_name_to_c.make (method_name)                          create method_name_to_c.make (feature_name)
124                          create signature_to_c.make (signature)                          create signature_to_c.make (signature)
125                          Result := jni.get_method_id (jclass.java_class_id,                          Result := jni.get_method_id (jclass.java_class_id,
126                                                                             method_name_to_c.item, signature_to_c.item)                                                                             method_name_to_c.item, signature_to_c.item)
                 ensure  
                         method_exists: Result /= default_pointer          
127                  end                  end
128    
129          field_id (lname: STRING; sig: STRING): POINTER is          field_id (lname: STRING; sig: STRING): POINTER is

Legend:
Removed from v.38227  
changed lines
  Added in v.38228

  ViewVC Help
Powered by ViewVC 1.1.23