Class FieldExaminer

java.lang.Object
ch.nolix.base.reflection.reflectionexaminer.FieldExaminer
All Implemented Interfaces:
IFieldExaminer

public final class FieldExaminer extends Object implements IFieldExaminer
A FieldExaminer is not mutable.
Author:
Silvan Wyss
  • Constructor Details

    • FieldExaminer

      public FieldExaminer()
  • Method Details

    • canStoreValueOfTypeOrSuperType

      public boolean canStoreValueOfTypeOrSuperType(Field field, Class<?> type)
      Specified by:
      canStoreValueOfTypeOrSuperType in interface IFieldExaminer
      Parameters:
      field -
      type -
      Returns:
      true if the given field can store a value of the given type or super type, false otherwise.
    • isStatic

      public boolean isStatic(Field field)
      Specified by:
      isStatic in interface IFieldExaminer
      Parameters:
      field -
      Returns:
      true if the given field is static, false otherwise.