public final int resolveClassIndex(TypeElement type)
    {
        int size = 0;
        int index = 0;
        constantReadLock.lock();
        try
        {
            size = getConstantPoolSize();
            index = getClassIndex(type);
        }
        finally
        {
            constantReadLock.unlock();
        }
        if (index == -1)
        {
            String name = El.getInternalForm(type);
            int nameIndex = resolveNameIndex(name);
            index = addConstantInfo(new Clazz(nameIndex), size);
        }
        addIndexedElement(index, type);
        return index;
    }
public final int resolveClassIndex ( TypeElement type ) { int size = 0 ; int index = 0 ; constantReadLock . lock ( ) ; try { size = getConstantPoolSize ( ) ; index = getClassIndex ( type ) ; } finally { constantReadLock . unlock ( ) ; } if ( index == - 1 ) { String name = El . getInternalForm ( type ) ; int nameIndex = resolveNameIndex ( name ) ; index = addConstantInfo ( new Clazz ( nameIndex ) , size ) ; } addIndexedElement ( index , type ) ; return index ; }
Returns the constant map index to class
If entry doesn't exist it is created.
@param type
@return