Package | Description |
---|---|
com.squareup.wire.schema | |
com.squareup.wire.schema.internal.parser |
Modifier and Type | Method and Description |
---|---|
Location |
Location.at(int line,
int column) |
static Location |
Location.get(String path) |
static Location |
Location.get(String base,
String path) |
abstract Location |
Type.location() |
Location |
Service.location() |
Location |
Rpc.location() |
Location |
ProtoFile.location() |
Location |
MessageType.location() |
Location |
Field.location() |
Location |
EnumType.location() |
Location |
EnumConstant.location() |
Location |
EnclosingType.location() |
Location |
Location.withoutBase()
Returns a copy of this location with an empty base.
|
Modifier and Type | Method and Description |
---|---|
Location |
TypeElement.location() |
abstract Location |
ServiceElement.location() |
abstract Location |
RpcElement.location() |
abstract Location |
ReservedElement.location() |
abstract Location |
ProtoFileElement.location() |
abstract Location |
MessageElement.location() |
abstract Location |
FieldElement.location() |
abstract Location |
ExtensionsElement.location() |
abstract Location |
ExtendElement.location() |
abstract Location |
EnumElement.location() |
abstract Location |
EnumConstantElement.location() |
Modifier and Type | Method and Description |
---|---|
static ServiceElement.Builder |
ServiceElement.builder(Location location) |
static RpcElement.Builder |
RpcElement.builder(Location location) |
static ProtoFileElement.Builder |
ProtoFileElement.builder(Location location) |
static MessageElement.Builder |
MessageElement.builder(Location location) |
static FieldElement.Builder |
FieldElement.builder(Location location) |
static ExtendElement.Builder |
ExtendElement.builder(Location location) |
static EnumElement.Builder |
EnumElement.builder(Location location) |
static EnumConstantElement.Builder |
EnumConstantElement.builder(Location location) |
static ExtensionsElement |
ExtensionsElement.create(Location location,
int start,
int end,
String documentation) |
static ReservedElement |
ReservedElement.create(Location location,
String documentation,
com.google.common.collect.ImmutableList<Object> values) |
ServiceElement.Builder |
ServiceElement.Builder.location(Location location) |
RpcElement.Builder |
RpcElement.Builder.location(Location location) |
ProtoFileElement.Builder |
ProtoFileElement.Builder.location(Location location) |
MessageElement.Builder |
MessageElement.Builder.location(Location location) |
FieldElement.Builder |
FieldElement.Builder.location(Location location) |
ExtendElement.Builder |
ExtendElement.Builder.location(Location location) |
EnumElement.Builder |
EnumElement.Builder.location(Location location) |
EnumConstantElement.Builder |
EnumConstantElement.Builder.location(Location location) |
static ProtoFileElement |
ProtoParser.parse(Location location,
String data)
Parse a named
.proto schema. |
Copyright © 2013–2016 Square, Inc.. All rights reserved.