raven-compiler/src/main/java/org/raven/compiler/Method.java
/**
     * Read from or store to a virtual field. The instance
     * reference must be already on the stack
     *
     * @param names The names of the fields
     * @param load  whether we are reading or writing to the field
     */
Read from or store to a virtual field. The instance
reference must be already on the stack

@param names The names of the fields
@param load  whether we are reading or writing to the field
Read from or store to a virtual field . The instance reference must be already on the stack @param names The names of the fields @param load whether we are reading or writing to the field
private void accessVirtualField(final String[] names, final boolean load) {
        if (names.length == 0) {
            return;
        }
        for (int i = 0; i < names.length - 1; i++) {
            accessVirtualField(names[i], true);
        }
        if (!load) {
            visitInsn(SWAP);
        }
        accessVirtualField(names[names.length - 1], load);
    }
private void accessVirtualField ( final String [ ] names , final boolean load ) { if ( names . length == 0 ) { return ; } for ( int i = 0 ; i < names . length - 1 ; i ++ ) { accessVirtualField ( names [ i ] , true ) ; } if ( ! load ) { visitInsn ( SWAP ) ; } accessVirtualField ( names [ names . length - 1 ] , load ) ; }
Read from or store to a virtual field.
Read from or store to a virtual field .