< prev index next >

src/hotspot/share/oops/method.hpp

Print this page




 163   // generics support
 164   Symbol* generic_signature() const              { int idx = generic_signature_index(); return ((idx != 0) ? constants()->symbol_at(idx) : (Symbol*)NULL); }
 165   int generic_signature_index() const            { return constMethod()->generic_signature_index(); }
 166   void set_generic_signature_index(int index)    { constMethod()->set_generic_signature_index(index); }
 167 
 168   // annotations support
 169   AnnotationArray* annotations() const           {
 170     return constMethod()->method_annotations();
 171   }
 172   AnnotationArray* parameter_annotations() const {
 173     return constMethod()->parameter_annotations();
 174   }
 175   AnnotationArray* annotation_default() const    {
 176     return constMethod()->default_annotations();
 177   }
 178   AnnotationArray* type_annotations() const      {
 179     return constMethod()->type_annotations();
 180   }
 181 
 182   // Helper routine: get klass name + "." + method name + signature as
 183   // C string, for the purpose of providing more useful
 184   // fatal error handling. The string is allocated in resource
 185   // area if a buffer is not provided by the caller.
 186   char* name_and_sig_as_C_string() const;
 187   char* name_and_sig_as_C_string(char* buf, int size) const;
 188 
 189   // Static routine in the situations we don't have a Method*
 190   static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature);
 191   static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature, char* buf, int size);
 192 
 193   // Get return type + klass name + "." + method name + ( parameters types )
 194   // as a C string or print it to an outputStream.
 195   // This is to be used to assemble strings passed to Java, so that
 196   // the text more resembles Java code. Used in exception messages.
 197   // Memory is allocated in the resource area; the caller needs
 198   // a ResourceMark.
 199   const char* external_name() const;
 200   void  print_external_name(outputStream *os) const;
 201 
 202   static const char* external_name(                  Klass* klass, Symbol* method_name, Symbol* signature);
 203   static void  print_external_name(outputStream *os, Klass* klass, Symbol* method_name, Symbol* signature);
 204 
 205   Bytecodes::Code java_code_at(int bci) const {
 206     return Bytecodes::java_code_at(this, bcp_from(bci));
 207   }
 208   Bytecodes::Code code_at(int bci) const {
 209     return Bytecodes::code_at(this, bcp_from(bci));
 210   }
 211 
 212   // JVMTI breakpoints
 213 #if !INCLUDE_JVMTI
 214   Bytecodes::Code orig_bytecode_at(int bci) const {
 215     ShouldNotReachHere();
 216     return Bytecodes::_shouldnotreachhere;
 217   }
 218   void set_orig_bytecode_at(int bci, Bytecodes::Code code) {
 219     ShouldNotReachHere();
 220   };
 221   u2   number_of_breakpoints() const {return 0;}
 222 #else // !INCLUDE_JVMTI
 223   Bytecodes::Code orig_bytecode_at(int bci) const;




 163   // generics support
 164   Symbol* generic_signature() const              { int idx = generic_signature_index(); return ((idx != 0) ? constants()->symbol_at(idx) : (Symbol*)NULL); }
 165   int generic_signature_index() const            { return constMethod()->generic_signature_index(); }
 166   void set_generic_signature_index(int index)    { constMethod()->set_generic_signature_index(index); }
 167 
 168   // annotations support
 169   AnnotationArray* annotations() const           {
 170     return constMethod()->method_annotations();
 171   }
 172   AnnotationArray* parameter_annotations() const {
 173     return constMethod()->parameter_annotations();
 174   }
 175   AnnotationArray* annotation_default() const    {
 176     return constMethod()->default_annotations();
 177   }
 178   AnnotationArray* type_annotations() const      {
 179     return constMethod()->type_annotations();
 180   }
 181 
 182   // Helper routine: get klass name + "." + method name + signature as
 183   // C string, for the purpose of providing more useful NoSuchMethodErrors
 184   // and fatal error handling. The string is allocated in resource
 185   // area if a buffer is not provided by the caller.
 186   char* name_and_sig_as_C_string() const;
 187   char* name_and_sig_as_C_string(char* buf, int size) const;
 188 
 189   // Static routine in the situations we don't have a Method*
 190   static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature);
 191   static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature, char* buf, int size);












 192 
 193   Bytecodes::Code java_code_at(int bci) const {
 194     return Bytecodes::java_code_at(this, bcp_from(bci));
 195   }
 196   Bytecodes::Code code_at(int bci) const {
 197     return Bytecodes::code_at(this, bcp_from(bci));
 198   }
 199 
 200   // JVMTI breakpoints
 201 #if !INCLUDE_JVMTI
 202   Bytecodes::Code orig_bytecode_at(int bci) const {
 203     ShouldNotReachHere();
 204     return Bytecodes::_shouldnotreachhere;
 205   }
 206   void set_orig_bytecode_at(int bci, Bytecodes::Code code) {
 207     ShouldNotReachHere();
 208   };
 209   u2   number_of_breakpoints() const {return 0;}
 210 #else // !INCLUDE_JVMTI
 211   Bytecodes::Code orig_bytecode_at(int bci) const;


< prev index next >