MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / IonNullLite

Class IonNullLite

src/main/java/com/amazon/ion/impl/lite/IonNullLite.java:12–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12final class IonNullLite
13 extends IonValueLite
14 implements IonNull
15{
16 private static final int HASH_SIGNATURE =
17 IonType.NULL.toString().hashCode();
18
19 protected IonNullLite(ContainerlessContext context)
20 {
21 super(context, true);
22 }
23
24 IonNullLite(IonNullLite existing, IonContext context)
25 {
26 super(existing, context);
27 }
28
29 @Override
30 public void accept(final ValueVisitor visitor) throws Exception
31 {
32 visitor.visit(this);
33 }
34
35 @Override
36 IonValueLite shallowClone(IonContext context)
37 {
38 return new IonNullLite(this, context);
39 }
40
41 @Override
42 public IonNullLite clone()
43 {
44 return (IonNullLite) shallowClone(ContainerlessContext.wrap(getSystem()));
45 }
46
47 @Override
48 public IonType getTypeSlow()
49 {
50 return IonType.NULL;
51 }
52
53 @Override
54 final void writeBodyTo(IonWriter writer, SymbolTableProvider symbolTableProvider)
55 throws IOException
56 {
57 writer.writeNull();
58 }
59
60 @Override
61 int hashSignature() {
62 return HASH_SIGNATURE;
63 }
64
65 @Override
66 public int scalarHashCode() {
67 return hashTypeAnnotations(HASH_SIGNATURE);
68 }
69

Callers

nothing calls this directly

Calls 2

hashCodeMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…