2
|
1 |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
|
2 |
// Use of this source code is governed by a BSD-style license that can be
|
|
3 |
// found in the LICENSE file.
|
|
4 |
|
|
5 |
package org.chromium.sdk.internal.protocolparser.dynamicimpl;
|
|
6 |
|
|
7 |
/**
|
|
8 |
* Late-resolvable reference to {@link TypeHandler}, for building {@link JsonTypeParser}.
|
|
9 |
*/
|
|
10 |
abstract class RefToType<T> {
|
|
11 |
/**
|
|
12 |
* Returns json type.
|
|
13 |
*/
|
|
14 |
abstract Class<?> getTypeClass();
|
|
15 |
|
|
16 |
/**
|
|
17 |
* Returns {@link TypeHandler} corresponding to {@link #getTypeClass()}. The method becomes
|
|
18 |
* available only after cross-reference resolving has been finished in depths of
|
|
19 |
* {@link JsonProtocolParser} constructor.
|
|
20 |
*/
|
|
21 |
abstract TypeHandler<T> get();
|
|
22 |
}
|