接口 CompilablePropertyAccessor

    • 方法详细资料

      • isCompilable

        boolean isCompilable()
        Return true if this property accessor is currently suitable for compilation.
      • getPropertyType

        Class<?> getPropertyType()
        Return the type of the accessed property - may only be known once an access has occurred.
      • generateCode

        void generateCode​(String propertyName,
                          MethodVisitor mv,
                          CodeFlow cf)
        Generate the bytecode the performs the access operation into the specified MethodVisitor using context information from the codeflow where necessary.
        参数:
        propertyName - the name of the property
        mv - the Asm method visitor into which code should be generated
        cf - the current state of the expression compiler