LeviLamina
Loading...
Searching...
No Matches
ExprToken.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/ExprTokenType.h"
7#include "mc/client/gui/LiteralType.h"
8#include "mc/client/gui/OperatorType.h"
9#include "mc/client/gui/UiExpression.h"
10#include "mc/deps/json/Value.h"
11
12class ExprToken {
13public:
14 // ExprToken inner types define
15 enum class StringOption : int {
16 EvaluateAsExpression = 0,
17 KeepAsString = 1,
18 };
19
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, ::OperatorType> mOperatorType;
24 ::ll::TypedStorage<1, 1, ::LiteralType> mLiteralType;
25 ::ll::TypedStorage<1, 1, ::ExprTokenType> mTokenType;
26 ::ll::TypedStorage<8, 40, ::std::variant<::Json::Value, ::UiExpression>> mValue;
27 // NOLINTEND
28
29public:
30 // static functions
31 // NOLINTBEGIN
32 MCAPI static ::ExprToken createExpressionToken(::UiExpression expression);
33
34 MCAPI static ::ExprToken createIntToken(int fromInt);
35
36 MCAPI static ::ExprToken createStringToken(::std::string_view fromStr, ::ExprToken::StringOption evalString);
37 // NOLINTEND
38};
Definition ExprToken.h:5