Class TargetType

java.lang.Object
org.osgi.test.common.inject.TargetType

public class TargetType extends Object
  • Method Details

    • getType

      public Class<?> getType()
    • getGenericType

      public Type getGenericType()
      Since:
      1.1
    • getName

      public String getName()
      Since:
      1.1
    • getGenericParameterizedTypes

      public List<Type> getGenericParameterizedTypes()
    • hasParameterizedTypes

      public boolean hasParameterizedTypes()
    • getFirstGenericTypes

      public Optional<Type> getFirstGenericTypes()
    • of

      public static TargetType of(Field field)
    • of

      public static TargetType of(Parameter parameter)
    • of

      @Deprecated public static TargetType of(Type type, ParameterizedType parameterizedType)
      Deprecated.
    • matches

      public boolean matches(Class<?> compareType)
    • matches

      public boolean matches(Class<?> compareType, List<Type> compareGenericTypes)
    • matches

      public boolean matches(Class<?> compareType, Type... compareGenericType)
    • toString

      public String toString()
      Overrides:
      toString in class Object