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

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

Introduction

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

The text is from its open source code.

Implementation

com.google.gson.JsonElement has the following implementations.
Click this link to see all its implementation.

Method

JsonElementdeepCopy()
Returns a deep copy of this element.
BigDecimalgetAsBigDecimal()
convenience method to get this element as a BigDecimal .
BigIntegergetAsBigInteger()
convenience method to get this element as a BigInteger .
booleangetAsBoolean()
convenience method to get this element as a boolean value.
bytegetAsByte()
convenience method to get this element as a primitive byte value.
chargetAsCharacter()
convenience method to get the first character of this element as a string or the first character of this array's first element as a string.
doublegetAsDouble()
convenience method to get this element as a primitive double value.
floatgetAsFloat()
convenience method to get this element as a primitive float value.
intgetAsInt()
convenience method to get this element as a primitive integer value.
JsonArraygetAsJsonArray()
convenience method to get this element as a JsonArray .
JsonNullgetAsJsonNull()
convenience method to get this element as a JsonNull .
JsonObjectgetAsJsonObject()
convenience method to get this element as a JsonObject .
JsonPrimitivegetAsJsonPrimitive()
convenience method to get this element as a JsonPrimitive .
longgetAsLong()
convenience method to get this element as a primitive long value.
NumbergetAsNumber()
convenience method to get this element as a Number .
shortgetAsShort()
convenience method to get this element as a primitive short value.
StringgetAsString()
convenience method to get this element as a string value.
booleanisJsonArray()
provides check for verifying if this element is an array or not.
booleanisJsonNull()
provides check for verifying if this element represents a null value or not.
booleanisJsonObject()
provides check for verifying if this element is a Json object or not.
booleanisJsonPrimitive()
provides check for verifying if this element is a primitive or not.
StringtoString()
Returns a String representation of this element.