org.jetbrains.jet.descriptors.serialization
Class ProtoBuf.Class

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.GeneratedMessageLite
          extended by org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, java.io.Serializable, ProtoBuf.ClassOrBuilder
Enclosing class:
ProtoBuf

public static final class ProtoBuf.Class
extends com.google.protobuf.GeneratedMessageLite
implements ProtoBuf.ClassOrBuilder

Protobuf type org.jetbrains.jet.descriptors.serialization.Class

See Also:
Serialized Form

Nested Class Summary
static class ProtoBuf.Class.Builder
          Protobuf type org.jetbrains.jet.descriptors.serialization.Class
static class ProtoBuf.Class.ClassObject
          Protobuf type org.jetbrains.jet.descriptors.serialization.Class.ClassObject
static interface ProtoBuf.Class.ClassObjectOrBuilder
           
static class ProtoBuf.Class.Kind
          Protobuf enum org.jetbrains.jet.descriptors.serialization.Class.Kind
static class ProtoBuf.Class.PrimaryConstructor
          Protobuf type org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor
static interface ProtoBuf.Class.PrimaryConstructorOrBuilder
           
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>
 
Field Summary
static int CLASS_OBJECT_FIELD_NUMBER
           
static int ENUM_ENTRY_FIELD_NUMBER
           
static int EXTRA_VISIBILITY_FIELD_NUMBER
           
static int FLAGS_FIELD_NUMBER
           
static int FQ_NAME_FIELD_NUMBER
           
static int MEMBER_FIELD_NUMBER
           
static int NESTED_CLASS_NAME_FIELD_NUMBER
           
static com.google.protobuf.Parser<ProtoBuf.Class> PARSER
           
static int PRIMARY_CONSTRUCTOR_FIELD_NUMBER
           
static int SUPERTYPE_FIELD_NUMBER
           
static int TYPE_PARAMETER_FIELD_NUMBER
           
 
Method Summary
 ProtoBuf.Class.ClassObject getClassObject()
          optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;
static ProtoBuf.Class getDefaultInstance()
           
 ProtoBuf.Class getDefaultInstanceForType()
           
 int getEnumEntry(int index)
          repeated int32 enum_entry = 12;
 int getEnumEntryCount()
          repeated int32 enum_entry = 12;
 java.util.List<java.lang.Integer> getEnumEntryList()
          repeated int32 enum_entry = 12;
 java.lang.String getExtraVisibility()
          optional string extra_visibility = 2;
 com.google.protobuf.ByteString getExtraVisibilityBytes()
          optional string extra_visibility = 2;
 int getFlags()
          optional int32 flags = 1 [default = 0];
 int getFqName()
          required int32 fq_name = 3;
 ProtoBuf.Callable getMember(int index)
          repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;
 int getMemberCount()
          repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;
 java.util.List<ProtoBuf.Callable> getMemberList()
          repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;
 ProtoBuf.CallableOrBuilder getMemberOrBuilder(int index)
          repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;
 java.util.List<? extends ProtoBuf.CallableOrBuilder> getMemberOrBuilderList()
          repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;
 int getNestedClassName(int index)
          repeated int32 nested_class_name = 7;
 int getNestedClassNameCount()
          repeated int32 nested_class_name = 7;
 java.util.List<java.lang.Integer> getNestedClassNameList()
          repeated int32 nested_class_name = 7;
 com.google.protobuf.Parser<ProtoBuf.Class> getParserForType()
           
 ProtoBuf.Class.PrimaryConstructor getPrimaryConstructor()
          optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;
 int getSerializedSize()
           
 ProtoBuf.Type getSupertype(int index)
          repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;
 int getSupertypeCount()
          repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;
 java.util.List<ProtoBuf.Type> getSupertypeList()
          repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;
 ProtoBuf.TypeOrBuilder getSupertypeOrBuilder(int index)
          repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;
 java.util.List<? extends ProtoBuf.TypeOrBuilder> getSupertypeOrBuilderList()
          repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;
 ProtoBuf.TypeParameter getTypeParameter(int index)
          repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;
 int getTypeParameterCount()
          repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;
 java.util.List<ProtoBuf.TypeParameter> getTypeParameterList()
          repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;
 ProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder(int index)
          repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;
 java.util.List<? extends ProtoBuf.TypeParameterOrBuilder> getTypeParameterOrBuilderList()
          repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;
 boolean hasClassObject()
          optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;
 boolean hasExtraVisibility()
          optional string extra_visibility = 2;
 boolean hasFlags()
          optional int32 flags = 1 [default = 0];
 boolean hasFqName()
          required int32 fq_name = 3;
 boolean hasPrimaryConstructor()
          optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;
 boolean isInitialized()
           
static ProtoBuf.Class.Builder newBuilder()
           
static ProtoBuf.Class.Builder newBuilder(ProtoBuf.Class prototype)
           
 ProtoBuf.Class.Builder newBuilderForType()
           
static ProtoBuf.Class parseDelimitedFrom(java.io.InputStream input)
           
static ProtoBuf.Class parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static ProtoBuf.Class parseFrom(byte[] data)
           
static ProtoBuf.Class parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static ProtoBuf.Class parseFrom(com.google.protobuf.ByteString data)
           
static ProtoBuf.Class parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static ProtoBuf.Class parseFrom(com.google.protobuf.CodedInputStream input)
           
static ProtoBuf.Class parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static ProtoBuf.Class parseFrom(java.io.InputStream input)
           
static ProtoBuf.Class parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 ProtoBuf.Class.Builder toBuilder()
           
protected  java.lang.Object writeReplace()
           
 void writeTo(com.google.protobuf.CodedOutputStream output)
           
 
Methods inherited from class com.google.protobuf.GeneratedMessageLite
makeExtensionsImmutable, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseUnknownField
 
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARSER

public static com.google.protobuf.Parser<ProtoBuf.Class> PARSER

FLAGS_FIELD_NUMBER

public static final int FLAGS_FIELD_NUMBER
See Also:
Constant Field Values

EXTRA_VISIBILITY_FIELD_NUMBER

public static final int EXTRA_VISIBILITY_FIELD_NUMBER
See Also:
Constant Field Values

FQ_NAME_FIELD_NUMBER

public static final int FQ_NAME_FIELD_NUMBER
See Also:
Constant Field Values

CLASS_OBJECT_FIELD_NUMBER

public static final int CLASS_OBJECT_FIELD_NUMBER
See Also:
Constant Field Values

TYPE_PARAMETER_FIELD_NUMBER

public static final int TYPE_PARAMETER_FIELD_NUMBER
See Also:
Constant Field Values

SUPERTYPE_FIELD_NUMBER

public static final int SUPERTYPE_FIELD_NUMBER
See Also:
Constant Field Values

NESTED_CLASS_NAME_FIELD_NUMBER

public static final int NESTED_CLASS_NAME_FIELD_NUMBER
See Also:
Constant Field Values

MEMBER_FIELD_NUMBER

public static final int MEMBER_FIELD_NUMBER
See Also:
Constant Field Values

ENUM_ENTRY_FIELD_NUMBER

public static final int ENUM_ENTRY_FIELD_NUMBER
See Also:
Constant Field Values

PRIMARY_CONSTRUCTOR_FIELD_NUMBER

public static final int PRIMARY_CONSTRUCTOR_FIELD_NUMBER
See Also:
Constant Field Values
Method Detail

getDefaultInstance

public static ProtoBuf.Class getDefaultInstance()

getDefaultInstanceForType

public ProtoBuf.Class getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder

getParserForType

public com.google.protobuf.Parser<ProtoBuf.Class> getParserForType()
Specified by:
getParserForType in interface com.google.protobuf.MessageLite
Overrides:
getParserForType in class com.google.protobuf.GeneratedMessageLite

hasFlags

public boolean hasFlags()
optional int32 flags = 1 [default = 0];

Visibility
Modality
has_annotation
ClassKind
is_inner
 

Specified by:
hasFlags in interface ProtoBuf.ClassOrBuilder

getFlags

public int getFlags()
optional int32 flags = 1 [default = 0];

Visibility
Modality
has_annotation
ClassKind
is_inner
 

Specified by:
getFlags in interface ProtoBuf.ClassOrBuilder

hasExtraVisibility

public boolean hasExtraVisibility()
optional string extra_visibility = 2;
 for things like java-specific visibilities
 

Specified by:
hasExtraVisibility in interface ProtoBuf.ClassOrBuilder

getExtraVisibility

public java.lang.String getExtraVisibility()
optional string extra_visibility = 2;
 for things like java-specific visibilities
 

Specified by:
getExtraVisibility in interface ProtoBuf.ClassOrBuilder

getExtraVisibilityBytes

public com.google.protobuf.ByteString getExtraVisibilityBytes()
optional string extra_visibility = 2;
 for things like java-specific visibilities
 

Specified by:
getExtraVisibilityBytes in interface ProtoBuf.ClassOrBuilder

hasFqName

public boolean hasFqName()
required int32 fq_name = 3;

Specified by:
hasFqName in interface ProtoBuf.ClassOrBuilder

getFqName

public int getFqName()
required int32 fq_name = 3;

Specified by:
getFqName in interface ProtoBuf.ClassOrBuilder

hasClassObject

public boolean hasClassObject()
optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;
 This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file
 

Specified by:
hasClassObject in interface ProtoBuf.ClassOrBuilder

getClassObject

public ProtoBuf.Class.ClassObject getClassObject()
optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;
 This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file
 

Specified by:
getClassObject in interface ProtoBuf.ClassOrBuilder

getTypeParameterList

public java.util.List<ProtoBuf.TypeParameter> getTypeParameterList()
repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;

Specified by:
getTypeParameterList in interface ProtoBuf.ClassOrBuilder

getTypeParameterOrBuilderList

public java.util.List<? extends ProtoBuf.TypeParameterOrBuilder> getTypeParameterOrBuilderList()
repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;


getTypeParameterCount

public int getTypeParameterCount()
repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;

Specified by:
getTypeParameterCount in interface ProtoBuf.ClassOrBuilder

getTypeParameter

public ProtoBuf.TypeParameter getTypeParameter(int index)
repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;

Specified by:
getTypeParameter in interface ProtoBuf.ClassOrBuilder

getTypeParameterOrBuilder

public ProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder(int index)
repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;


getSupertypeList

public java.util.List<ProtoBuf.Type> getSupertypeList()
repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;

Specified by:
getSupertypeList in interface ProtoBuf.ClassOrBuilder

getSupertypeOrBuilderList

public java.util.List<? extends ProtoBuf.TypeOrBuilder> getSupertypeOrBuilderList()
repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;


getSupertypeCount

public int getSupertypeCount()
repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;

Specified by:
getSupertypeCount in interface ProtoBuf.ClassOrBuilder

getSupertype

public ProtoBuf.Type getSupertype(int index)
repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;

Specified by:
getSupertype in interface ProtoBuf.ClassOrBuilder

getSupertypeOrBuilder

public ProtoBuf.TypeOrBuilder getSupertypeOrBuilder(int index)
repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;


getNestedClassNameList

public java.util.List<java.lang.Integer> getNestedClassNameList()
repeated int32 nested_class_name = 7;
 we store only names, because the actual information must reside in the corresponding .class files,
 to be obtainable through reflection at runtime
 

Specified by:
getNestedClassNameList in interface ProtoBuf.ClassOrBuilder

getNestedClassNameCount

public int getNestedClassNameCount()
repeated int32 nested_class_name = 7;
 we store only names, because the actual information must reside in the corresponding .class files,
 to be obtainable through reflection at runtime
 

Specified by:
getNestedClassNameCount in interface ProtoBuf.ClassOrBuilder

getNestedClassName

public int getNestedClassName(int index)
repeated int32 nested_class_name = 7;
 we store only names, because the actual information must reside in the corresponding .class files,
 to be obtainable through reflection at runtime
 

Specified by:
getNestedClassName in interface ProtoBuf.ClassOrBuilder

getMemberList

public java.util.List<ProtoBuf.Callable> getMemberList()
repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;

Specified by:
getMemberList in interface ProtoBuf.ClassOrBuilder

getMemberOrBuilderList

public java.util.List<? extends ProtoBuf.CallableOrBuilder> getMemberOrBuilderList()
repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;


getMemberCount

public int getMemberCount()
repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;

Specified by:
getMemberCount in interface ProtoBuf.ClassOrBuilder

getMember

public ProtoBuf.Callable getMember(int index)
repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;

Specified by:
getMember in interface ProtoBuf.ClassOrBuilder

getMemberOrBuilder

public ProtoBuf.CallableOrBuilder getMemberOrBuilder(int index)
repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;


getEnumEntryList

public java.util.List<java.lang.Integer> getEnumEntryList()
repeated int32 enum_entry = 12;

Specified by:
getEnumEntryList in interface ProtoBuf.ClassOrBuilder

getEnumEntryCount

public int getEnumEntryCount()
repeated int32 enum_entry = 12;

Specified by:
getEnumEntryCount in interface ProtoBuf.ClassOrBuilder

getEnumEntry

public int getEnumEntry(int index)
repeated int32 enum_entry = 12;

Specified by:
getEnumEntry in interface ProtoBuf.ClassOrBuilder

hasPrimaryConstructor

public boolean hasPrimaryConstructor()
optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;
 This field is present if and only if the class has a primary constructor
 

Specified by:
hasPrimaryConstructor in interface ProtoBuf.ClassOrBuilder

getPrimaryConstructor

public ProtoBuf.Class.PrimaryConstructor getPrimaryConstructor()
optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;
 This field is present if and only if the class has a primary constructor
 

Specified by:
getPrimaryConstructor in interface ProtoBuf.ClassOrBuilder

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output)
             throws java.io.IOException
Specified by:
writeTo in interface com.google.protobuf.MessageLite
Throws:
java.io.IOException

getSerializedSize

public int getSerializedSize()
Specified by:
getSerializedSize in interface com.google.protobuf.MessageLite

writeReplace

protected java.lang.Object writeReplace()
                                 throws java.io.ObjectStreamException
Overrides:
writeReplace in class com.google.protobuf.GeneratedMessageLite
Throws:
java.io.ObjectStreamException

parseFrom

public static ProtoBuf.Class parseFrom(com.google.protobuf.ByteString data)
                                throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ProtoBuf.Class parseFrom(com.google.protobuf.ByteString data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ProtoBuf.Class parseFrom(byte[] data)
                                throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ProtoBuf.Class parseFrom(byte[] data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ProtoBuf.Class parseFrom(java.io.InputStream input)
                                throws java.io.IOException
Throws:
java.io.IOException

parseFrom

public static ProtoBuf.Class parseFrom(java.io.InputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws java.io.IOException
Throws:
java.io.IOException

parseDelimitedFrom

public static ProtoBuf.Class parseDelimitedFrom(java.io.InputStream input)
                                         throws java.io.IOException
Throws:
java.io.IOException

parseDelimitedFrom

public static ProtoBuf.Class parseDelimitedFrom(java.io.InputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws java.io.IOException
Throws:
java.io.IOException

parseFrom

public static ProtoBuf.Class parseFrom(com.google.protobuf.CodedInputStream input)
                                throws java.io.IOException
Throws:
java.io.IOException

parseFrom

public static ProtoBuf.Class parseFrom(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws java.io.IOException
Throws:
java.io.IOException

newBuilder

public static ProtoBuf.Class.Builder newBuilder()

newBuilderForType

public ProtoBuf.Class.Builder newBuilderForType()
Specified by:
newBuilderForType in interface com.google.protobuf.MessageLite

newBuilder

public static ProtoBuf.Class.Builder newBuilder(ProtoBuf.Class prototype)

toBuilder

public ProtoBuf.Class.Builder toBuilder()
Specified by:
toBuilder in interface com.google.protobuf.MessageLite