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
18 lines
587 B
Java
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;
|
|
}
|
|
}
|