blob: d36a7da9078d0306bd38a4e41c1aac75923004b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.slime;
/**
* Visitor interface used to resolve the underlying type of a value
* represented by an Inspector.
**/
public interface Visitor {
/**
* Called when the visited Inspector is not valid.
**/
public void visitInvalid();
public void visitNix();
public void visitBool(boolean bit);
public void visitLong(long l);
public void visitDouble(double d);
public void visitString(String str);
public void visitString(byte[] utf8);
public void visitData(byte[] data);
public void visitArray(Inspector arr);
public void visitObject(Inspector obj);
}
|