Package components

Examples of components.MethodInfo


  iv = v;
    }

    private static MethodInfo findSlot( MethodConstant t[], MethodInfo m ){
  if ( t != null ){
      MethodInfo v;
      int nt = t.length;
      int ID = m.getID();
      for( int i = 0; i < nt; i++ ){
    if ((v=t[i].find()).getID() == ID )
        return v;
View Full Code Here


      System.err.println("InterfaceMethodTable.indexInterfaceMethods: "+c.className
    +" is not an interface");
      return; // this is bad
  }
  int j = 0;
  MethodInfo m[] = c.methods;
  if ( m == null ) return; // no methods here.
  int n = m.length;
  for( int i =0; i < n; i++ ){
      MethodInfo t = m[i];
      if ( (t.access&Const.ACC_STATIC) != 0 )
    continue; // don't number statics.
      if ( (t.access&Const.ACC_ABSTRACT) == 0 ){
    System.err.println("InterfaceMethodTable.indexInterfaceMethods: "+t
    +" is not abstract");
View Full Code Here

      ClassInfo intf = (ClassInfo)c.allInterfaces.elementAt( i );
      MethodConstant mtab[] = intf.refMethodtable;
      int nmethods = mtab.length;
      short ivec[] = new short[ nmethods ];
      for( int j = 0; j < nmethods; j++ ){
    MethodInfo target = mtab[j].find();
    if ( (target.access&Const.ACC_STATIC) != 0 ){
        // should never happen.
        System.err.println("Interface "+intf.className+" has a static method in its methodtable:! "+target);
        continue;
    }
    MethodInfo v = findSlot( c.refMethodtable, target );
    if ( v == null ){
        System.err.println("Class "+c.className+" does not implement interface "+intf.className+" because it lacks "+target);
        ivec[ j ] = 0;
    } else {
        ivec[ j ] = (short)v.methodTableIndex;
View Full Code Here

TOP

Related Classes of components.MethodInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.