Documentation of 'org.jplot2d.env.InterfaceInfo' Java class
InterfaceInfo
org.jplot2d.env

Class InterfaceInfo



  • public class InterfaceInfo
    extends java.lang.Object
    This class extract properties from method declaration, rather than using java introspector. The property annotation is defined on getter. if a sub-interface override a getter, the overriding method will take effect. The setter method type must match the getter's return type. setter methods with same name but different argument type are not allowed. The indexed getter and setter are not considered.
    • Method Detail

      • loadInterfaceInfo

        public static InterfaceInfo loadInterfaceInfo(java.lang.Class<?> interfaceClass)
        Load interface info for the given interface and its parents.The subclass may hide the info of its superclass. For example, if a sub-interface only redeclare a getter, the info will report the property is read-only.
        Parameters:
        interfaceClass -
      • getPropertyInfo

        public PropertyInfo getPropertyInfo(java.lang.String pname)
      • getPropertyInfoGroupMap

        public java.util.Map<java.lang.String,PropertyInfo[]> getPropertyInfoGroupMap()
      • getProfilePropertyInfoGroupMap

        public java.util.Map<java.lang.String,PropertyInfo[]> getProfilePropertyInfoGroupMap()
      • isWritableProp

        public boolean isWritableProp(java.lang.String pname)
        Returns true if the given property is writable.
        Parameters:
        pname - The property name
        Returns:
        true if the given property is writable

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.