Class Accessor

java.lang.Object
com.github.rvesse.airline.Accessor

public class Accessor extends Object
  • Field Details

    • name

      private final String name
    • javaType

      private final Class<?> javaType
    • path

      private final List<Field> path
    • multiValued

      private boolean multiValued
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getJavaType

      public Class<?> getJavaType()
    • isMultiValued

      public boolean isMultiValued()
    • getValue

      public Object getValue(Object instance)
    • getAnnotation

      public <T extends Annotation> T getAnnotation(Class<T> annotationCls)
    • addValues

      public void addValues(Object commandInstance, Iterable<?> values)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • newCollection

      private static Collection<Object> newCollection(Class<?> type)
    • getOrCreateCollectionField

      private static Collection<Object> getOrCreateCollectionField(String name, Object object, Field field)
    • getItemType

      private static Class<?> getItemType(String name, Type type)
    • getRawType

      private static Class<?> getRawType(Type type)
    • getTypeParameters

      private static Type[] getTypeParameters(Class<?> desiredType, Type type)