use of com.google.protobuf.Mixin in project toolkit by googleapis.
the class ProtoInterfaceModel method getMethods.
@Override
public List<MethodModel> getMethods() {
ImmutableList.Builder<MethodModel> methods = ImmutableList.builder();
for (Method method : protoInterface.getMethods()) {
methods.add(new ProtoMethodModel(method));
}
SymbolTable symbolTable = protoInterface.getModel().getSymbolTable();
for (Mixin mixin : protoInterface.getConfig().getMixinsList()) {
Interface mixinInterface = symbolTable.lookupInterface(mixin.getName());
for (Method method : mixinInterface.getMethods()) {
methods.add(new ProtoMethodModel(method));
}
}
return methods.build();
}
Aggregations