Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 //Copyright 2007-2011 David Yu
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at 
 //Unless required by applicable law or agreed to in writing, software
 //distributed under the License is distributed on an "AS IS" BASIS,
//See the License for the specific language governing permissions and
//limitations under the License.
package io.protostuff.runtime;
A runtime message field that lazily loads the schema to support cyclic dependencies.

David Yu
Jan 19, 2011
abstract class RuntimeMessageField<T, P> extends Field<T>

The class of the message field.
    public final Class<P> typeClass;
    final HasSchema<P> hasSchema;
    public RuntimeMessageField(Class<P> typeClassHasSchema<P> hasSchema,
            FieldType typeint numberString nameboolean repeatedTag tag)
        this. = typeClass;
        this. = hasSchema;

Returns the schema.
    public Schema<P> getSchema()
        return .getSchema();

Returns the lazy initialized pipe schema.
    public Pipe.Schema<P> getPipeSchema()
        return .getPipeSchema();
New to GrepCode? Check out our FAQ X