类 ProtobufField

java.lang.Object
com.baidu.bjf.remoting.protobuf.ProtobufField

public class ProtobufField extends Object
A description class for protobuf field message.
从以下版本开始:
1.0.2
作者:
xiemalin
  • 构造器详细资料

    • ProtobufField

      public ProtobufField(Field field)
      Instantiates a new protobuf field.
      参数:
      field - the field
  • 方法详细资料

    • getAnnotation

      public Protobuf getAnnotation()
      Gets the annotation.
      返回:
      the annotation
    • getName

      public String getName()
      Gets the name.
      返回:
      the name
    • getType

      public Class<?> getType()
      Gets the type.
      返回:
      the type
    • getDeclaredClass

      public Class<?> getDeclaredClass()
      Gets the declared class.
      返回:
      the declared class
    • getGenericType

      public Type getGenericType()
      Gets the generic type.
      返回:
      the generic type