Class ClassTool.FieldSub

    • Field Detail

      • field

        protected java.lang.reflect.Field field
    • Constructor Detail

      • FieldSub

        public FieldSub​(java.lang.reflect.Field field)
        FieldSub constructor
        Parameters:
        field - inspected field
    • Method Detail

      • getUniqueName

        public java.lang.String getUniqueName()
        Simply returns the name of the field, since field names cannot be overloaded.
        Specified by:
        getUniqueName in class ClassTool.Sub<ClassTool.FieldSub>
        Returns:
        unique name
      • getType

        public java.lang.Class getType()
        Returns:
        field class
      • getStaticValue

        public java.lang.Object getStaticValue()
        Returns the value of the field if and only if it is a static field that has no access restrictions set by the security manager.
        Returns:
        value of static field