<% const type = locals.type; -%> // This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make style-code-android`. package com.mapbox.mapboxsdk.style.layers; /** * <%- camelize(type) %> Layer */ public class <%- camelize(type) %>Layer extends Layer { public <%- camelize(type) %>Layer(long nativePtr) { super(nativePtr); } <% if (type === 'background') { -%> public <%- camelize(type) %>Layer(String layerId) { initialize(layerId); } protected native void initialize(String layerId); <% } else { -%> public <%- camelize(type) %>Layer(String layerId, String sourceId) { initialize(layerId, sourceId); } protected native void initialize(String layerId, String sourceId); public void setSourceLayer(String sourceLayer) { nativeSetSourceLayer(sourceLayer); } <% } -%> <% if (type !== 'background' && type !== 'raster') { -%> public void setFilter(Filter.Statement filter) { this.setFilter(filter.toArray()); } public void setFilter(Object[] filter) { nativeSetFilter(filter); } <% } -%> }