Class AbstractIvmlFieldDescriptor

    • Constructor Detail

      • AbstractIvmlFieldDescriptor

        AbstractIvmlFieldDescriptor()
        Constructor for serialization.
      • AbstractIvmlFieldDescriptor

        protected AbstractIvmlFieldDescriptor​(TypeDescriptor<?> declaringType,
                                              AbstractVariable var,
                                              TypeRegistry registry)
                                       throws VilException
        Creates the field descriptor.
        Parameters:
        declaringType - the declaring type
        var - the variable to create the descriptor for
        registry - the actual type registry
        Throws:
        VilException - in case that creating the descriptor fails
    • Method Detail

      • getVariable

        protected AbstractVariable getVariable()
        Returns the underlying IVML variable.
        Returns:
        the underlying variable
      • getJavaSignature

        public java.lang.String getJavaSignature()
        Description copied from interface: IMetaField
        Returns the java-like signature of this operation.
        Returns:
        the java-like Java signature of this operation
      • isReadOnly

        public boolean isReadOnly()
        Description copied from interface: IMetaField
        Returns whether the field is read-only. Please note that this method provides a "static" information, i.e., it cannot change during script execution. If a field can be modified at all, this method shall return true and determine when the value is changed, whether the actual access is permitted. In contrast, if it is known that the field cannot be changed at all, this method shall return false.
        Returns:
        true if the field is read-only, false else
      • isStatic

        public boolean isStatic()
        Description copied from interface: IMetaField
        Returns whether the field is static.
        Returns:
        true if the field is static, false else
      • getSpecificBaseValue

        protected java.lang.Object getSpecificBaseValue​(AbstractIvmlVariable tmp)
        Returns the specific base value according to the decision variable access functions.
        Parameters:
        tmp - the decision variable
        Returns:
        the specific base value, null if not possible