Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–3717 unchanged (3717 lines)
3718 this.proto = proto;
3719 this.options = null;
3720 resolveFeatures(proto.getOptions().getFeatures());
3721 }
3722
3723 private OneofDescriptor(
3724 final OneofDescriptorProto proto, final Descriptor parent, final int index) {
3725 this.proto = proto;
3726 fullName = computeFullName(null, parent, proto.getName());
3727 this.index = index;
3728
3729 containingType = parent;
3730 fieldCount = 0;
3731 }
3732
3733 private final int index;
3734 private OneofDescriptorProto proto;
3735 private volatile OneofOptions options;
3736 private final String fullName;
3737 private final Descriptor containingType;
…lines 3738–3762 unchanged (25 lines)

After

…lines 1–3718 unchanged (3718 lines)
3719 this.options = null;
3720 resolveFeatures(proto.getOptions().getFeatures());
3721 }
3722
3723 private OneofDescriptor(
3724 final OneofDescriptorProto proto, final Descriptor parent, final int index)
3725 throws DescriptorValidationException {
3726 this.proto = proto;
3727 fullName = computeFullName(null, parent, proto.getName());
3728 this.index = index;
3729
3730 containingType = parent;
3731 fieldCount = 0;
3732 }
3733
3734 private final int index;
3735 private OneofDescriptorProto proto;
3736 private volatile OneofOptions options;
3737 private final String fullName;
3738 private final Descriptor containingType;
…lines 3739–3763 unchanged (25 lines)

Before

program
line_comment "// Protocol Buffers - Google's data interchange format"
line_comment "// Copyright 2008 Google Inc. All rights reserved."
line_comment "//"
line_comment "// Use of this source code is governed by a BSD-style"
line_comment "// license that can be found in the LICENSE file or at"
line_comment "// https://developers.google.com/open-source/licenses/bsd"
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
; ";"
import_declaration
import "import"
static "static"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "Internal"
. "."
identifier "checkNotNull"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "DescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "Edition"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "EnumDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "EnumOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "EnumValueDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "EnumValueOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FeatureSet"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FeatureSetDefaults"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FeatureSetDefaults"
. "."
identifier "FeatureSetEditionDefault"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FieldDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FieldOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FileDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FileOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "MessageOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "MethodDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "MethodOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "OneofDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "OneofOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "ServiceDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "ServiceOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "JavaFeaturesProto"
. "."
identifier "JavaFeatures"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "ref"
. "."
identifier "ReferenceQueue"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "ref"
. "."
identifier "WeakReference"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ArrayList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Collections"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Comparator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "IdentityHashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Locale"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "ConcurrentHashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "function"
. "."
identifier "ToIntFunction"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Logger"
; ";"
block_comment "/**\n * Contains a collection of classes which describe proto"...
class_declaration
modifiers
marker_annotation
@ "@"
identifier "CheckReturnValue"
public "public"
final "final"
class "class"
identifier "Descriptors"
class_body
{ "{"
field_declaration (+27 nodes collapsed)
field_declaration (+23 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+27 nodes collapsed)
field_declaration (+21 nodes collapsed)
block_comment "/** Sets the default feature mappings used during the build."...
method_declaration
modifiers
static "static"
void_type "void"
identifier "setTestJavaEditionDefaults"
formal_parameters
( "("
formal_parameter
type_identifier "FeatureSetDefaults"
identifier "defaults"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "javaEditionDefaults"
= "="
identifier "defaults"
; ";"
} "}"
block_comment "/** Gets the default feature mappings used during the build."...
method_declaration (+163 nodes collapsed)
method_declaration (+291 nodes collapsed)
method_declaration (+51 nodes collapsed)
block_comment "/**\n * Describes a {@code .proto} file, including everythi"...
class_declaration (+4562 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes a message type. */"
class_declaration (+3531 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes a field of a message type. */"
class_declaration (+6317 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes an enum type. */"
class_declaration (+1967 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/**\n * Describes one value within an enum type. Note that "...
class_declaration (+813 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes a service type. */"
class_declaration (+816 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes one method within a service type. */"
class_declaration (+803 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/**\n * @throws NullPointerException if both `file` and `pa"...
method_declaration (+103 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/**\n * All descriptors implement this to make it easier to"...
class_declaration (+718 nodes collapsed)
block_comment "/** Thrown when building descriptors fails because the sourc"...
class_declaration (+298 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/**\n * A private helper class which contains lookup tables"...
class_declaration (+2127 nodes collapsed)
block_comment "/** Describes a oneof of a message type. */"
class_declaration
modifiers
public "public"
static "static"
final "final"
class "class"
identifier "OneofDescriptor"
superclass
extends "extends"
type_identifier "GenericDescriptor"
class_body
{ "{"
block_comment "/** Get the index of this descriptor within its parent. */"
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getIndex"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "index"
; ";"
} "}"
method_declaration (+24 nodes collapsed)
method_declaration (+24 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
type_identifier "GenericDescriptor"
identifier "getParent"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "containingType"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "String"
identifier "getFullName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "fullName"
; ";"
} "}"
method_declaration
modifiers
public "public"
type_identifier "Descriptor"
identifier "getContainingType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "containingType"
; ";"
} "}"
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getFieldCount"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "fieldCount"
; ";"
} "}"
method_declaration (+124 nodes collapsed)
block_comment "/** Get a list of this message type's fields. */"
method_declaration (+34 nodes collapsed)
method_declaration (+23 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "OneofDescriptorProto"
identifier "toProto"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "proto"
; ";"
} "}"
method_declaration (+29 nodes collapsed)
block_comment "/** See {@link FileDescriptor#resolveAllFeatures}. */"
method_declaration (+34 nodes collapsed)
method_declaration (+57 nodes collapsed)
constructor_declaration
modifiers
private "private"
identifier "OneofDescriptor"
formal_parameters (+21 nodes collapsed)
constructor_body (+54 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "index"
; ";"
field_declaration
modifiers
private "private"
type_identifier "OneofDescriptorProto"
variable_declarator
identifier "proto"
; ";"
field_declaration
modifiers
private "private"
volatile "volatile"
type_identifier "OneofOptions"
variable_declarator
identifier "options"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "String"
variable_declarator
identifier "fullName"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Descriptor"
variable_declarator
identifier "containingType"
; ";"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "fieldCount"
; ";"
field_declaration
modifiers
private "private"
array_type
type_identifier "FieldDescriptor"
dimensions
[ "["
] "]"
variable_declarator
identifier "fields"
; ";"
} "}"
method_declaration (+172 nodes collapsed)
} "}"

After

program
line_comment "// Protocol Buffers - Google's data interchange format"
line_comment "// Copyright 2008 Google Inc. All rights reserved."
line_comment "//"
line_comment "// Use of this source code is governed by a BSD-style"
line_comment "// license that can be found in the LICENSE file or at"
line_comment "// https://developers.google.com/open-source/licenses/bsd"
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
; ";"
import_declaration
import "import"
static "static"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "Internal"
. "."
identifier "checkNotNull"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "DescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "Edition"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "EnumDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "EnumOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "EnumValueDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "EnumValueOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FeatureSet"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FeatureSetDefaults"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FeatureSetDefaults"
. "."
identifier "FeatureSetEditionDefault"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FieldDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FieldOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FileDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "FileOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "MessageOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "MethodDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "MethodOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "OneofDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "OneofOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "ServiceDescriptorProto"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "DescriptorProtos"
. "."
identifier "ServiceOptions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "JavaFeaturesProto"
. "."
identifier "JavaFeatures"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "ref"
. "."
identifier "ReferenceQueue"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "ref"
. "."
identifier "WeakReference"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ArrayList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Collections"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Comparator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "IdentityHashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Locale"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "ConcurrentHashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "function"
. "."
identifier "ToIntFunction"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Logger"
; ";"
block_comment "/**\n * Contains a collection of classes which describe proto"...
class_declaration
modifiers
marker_annotation
@ "@"
identifier "CheckReturnValue"
public "public"
final "final"
class "class"
identifier "Descriptors"
class_body
{ "{"
field_declaration (+27 nodes collapsed)
field_declaration (+23 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+21 nodes collapsed)
field_declaration (+27 nodes collapsed)
field_declaration (+21 nodes collapsed)
block_comment "/** Sets the default feature mappings used during the build."...
method_declaration
modifiers
static "static"
void_type "void"
identifier "setTestJavaEditionDefaults"
formal_parameters
( "("
formal_parameter
type_identifier "FeatureSetDefaults"
identifier "defaults"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "javaEditionDefaults"
= "="
identifier "defaults"
; ";"
} "}"
block_comment "/** Gets the default feature mappings used during the build."...
method_declaration (+163 nodes collapsed)
method_declaration (+291 nodes collapsed)
method_declaration (+51 nodes collapsed)
block_comment "/**\n * Describes a {@code .proto} file, including everythi"...
class_declaration (+4562 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes a message type. */"
class_declaration (+3531 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes a field of a message type. */"
class_declaration (+6317 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes an enum type. */"
class_declaration (+1967 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/**\n * Describes one value within an enum type. Note that "...
class_declaration (+813 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes a service type. */"
class_declaration (+816 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/** Describes one method within a service type. */"
class_declaration (+803 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/**\n * @throws NullPointerException if both `file` and `pa"...
method_declaration (+103 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/**\n * All descriptors implement this to make it easier to"...
class_declaration (+718 nodes collapsed)
block_comment "/** Thrown when building descriptors fails because the sourc"...
class_declaration (+298 nodes collapsed)
line_comment "// ========================================================="...
block_comment "/**\n * A private helper class which contains lookup tables"...
class_declaration (+2127 nodes collapsed)
block_comment "/** Describes a oneof of a message type. */"
class_declaration
modifiers
public "public"
static "static"
final "final"
class "class"
identifier "OneofDescriptor"
superclass
extends "extends"
type_identifier "GenericDescriptor"
class_body
{ "{"
block_comment "/** Get the index of this descriptor within its parent. */"
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getIndex"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "index"
; ";"
} "}"
method_declaration (+24 nodes collapsed)
method_declaration (+24 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
type_identifier "GenericDescriptor"
identifier "getParent"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "containingType"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "String"
identifier "getFullName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "fullName"
; ";"
} "}"
method_declaration
modifiers
public "public"
type_identifier "Descriptor"
identifier "getContainingType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "containingType"
; ";"
} "}"
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getFieldCount"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "fieldCount"
; ";"
} "}"
method_declaration (+124 nodes collapsed)
block_comment "/** Get a list of this message type's fields. */"
method_declaration (+34 nodes collapsed)
method_declaration (+23 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "OneofDescriptorProto"
identifier "toProto"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "proto"
; ";"
} "}"
method_declaration (+29 nodes collapsed)
block_comment "/** See {@link FileDescriptor#resolveAllFeatures}. */"
method_declaration (+34 nodes collapsed)
method_declaration (+57 nodes collapsed)
constructor_declaration
modifiers
private "private"
identifier "OneofDescriptor"
formal_parameters (+21 nodes collapsed)
throws
throws "throws"
type_identifier "DescriptorValidationException"
constructor_body (+54 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "index"
; ";"
field_declaration
modifiers
private "private"
type_identifier "OneofDescriptorProto"
variable_declarator
identifier "proto"
; ";"
field_declaration
modifiers
private "private"
volatile "volatile"
type_identifier "OneofOptions"
variable_declarator
identifier "options"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "String"
variable_declarator
identifier "fullName"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Descriptor"
variable_declarator
identifier "containingType"
; ";"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "fieldCount"
; ";"
field_declaration
modifiers
private "private"
array_type
type_identifier "FieldDescriptor"
dimensions
[ "["
] "]"
variable_declarator
identifier "fields"
; ";"
} "}"
method_declaration (+172 nodes collapsed)
} "}"