Reflect constant primitive types back to Java.
We reflect it in the containing class as follows:
public final static TYPE const_NAME = INIT;
Change-Id: I478a6ba75715cfe3ddf1196794153721b793b287
diff --git a/slang_rs_reflection.h b/slang_rs_reflection.h
index c2e9c75..139cb71 100644
--- a/slang_rs_reflection.h
+++ b/slang_rs_reflection.h
@@ -221,16 +221,17 @@
std::string &ErrorMsg);
void genScriptClassConstructor(Context &C);
- void genInitBoolExportVariable(Context &C,
- const std::string &VarName,
- const clang::APValue &Val);
- void genInitPrimitiveExportVariable(Context &C,
- const std::string &VarName,
- const clang::APValue &Val);
- void genInitExportVariable(Context &C,
- const RSExportType *ET,
- const std::string &VarName,
- const clang::APValue &Val);
+ static void genInitBoolExportVariable(Context &C,
+ const std::string &VarName,
+ const clang::APValue &Val);
+ static void genInitPrimitiveExportVariable(Context &C,
+ const std::string &VarName,
+ const clang::APValue &Val);
+ static void genInitExportVariable(Context &C,
+ const RSExportType *ET,
+ const std::string &VarName,
+ const clang::APValue &Val);
+ static void genInitValue(Context &C, const clang::APValue &Val);
void genExportVariable(Context &C, const RSExportVar *EV);
void genPrimitiveTypeExportVariable(Context &C, const RSExportVar *EV);
void genPointerTypeExportVariable(Context &C, const RSExportVar *EV);