Java com.google.gson FieldAttributes fields, constructors, methods, implement or subclass

Example usage for Java com.google.gson FieldAttributes fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gson FieldAttributes.

The text is from its open source code.

Constructor

FieldAttributes(Field f)
Constructs a Field Attributes object from the f .

Method

TgetAnnotation(Class annotation)
Return the T annotation object from this field if it exist; otherwise returns null .
ClassgetDeclaredClass()
Returns the Class object that was declared for this field.
TypegetDeclaredType()

For example, assume the following class definition:

 public class Foo { private String bar; private List<String> red; } Type listParameterizedType = new TypeToken<List<String>>() {}.getType(); 

This method would return String.class for the bar field and listParameterizedType for the red field.

ClassgetDeclaringClass()
StringgetName()