Files
tubestation/build/annotationProcessors/classloader/ClassWithOptions.java
Jim Chen e839bad9b1 Bug 1378410 - 1. Support BuildFlag annotation for generated bindings; r=snorp
Add a BuildFlag annotation, which when specified for classes, will wrap
generated code in `#ifdef` or `#ifndef` blocks. This functionality is
used for conditionally excluding generated code when NIghtly becomes
Beta, without the need to regenerate bindings.

MozReview-Commit-ID: L2NFM8CHKqF
2017-09-01 14:02:29 -04:00

18 lines
587 B
Java

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.gecko.annotationProcessors.classloader;
public class ClassWithOptions {
public final Class<?> wrappedClass;
public final String generatedName;
public final String ifdef;
public ClassWithOptions(Class<?> someClass, String name, String ifdef) {
wrappedClass = someClass;
generatedName = name;
this.ifdef = ifdef;
}
}