LeviLamina
Loading...
Searching...
No Matches
CompiledExpressionWithoutContentScope.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/molang/MolangVersion.h"
7#include "mc/util/molang/ExpressionOp.h"
8#include "mc/util/molang/IComplexExpression.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13class RenderParams;
14struct MolangScriptArg;
15namespace Json { class Value; }
16namespace Molang::details { class ExpressionNode; }
17namespace Molang::details { class SourceTree; }
18// clang-format on
19
20namespace Molang::details {
21
22class CompiledExpressionWithoutContentScope : public ::Molang::details::IComplexExpression {
23public:
24 // member variables
25 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 CompiledExpressionWithoutContentScope& operator=(CompiledExpressionWithoutContentScope const&);
35 CompiledExpressionWithoutContentScope(CompiledExpressionWithoutContentScope const&);
36 CompiledExpressionWithoutContentScope();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ::std::unique_ptr<::Molang::details::IComplexExpression> clone() const /*override*/;
42
43 virtual ::MolangScriptArg const& evalGeneric(::RenderParams& renderParams) const /*override*/;
44
45 virtual bool isInitialized() const /*override*/;
46
47 virtual ::Json::Value toJson() const /*override*/;
48
49 virtual ::std::string getExpressionString() const /*override*/;
50
51 virtual ::MolangVersion getMolangVersion() const /*override*/;
52
53 virtual void replaceArrayVariables(
54 ::std::unordered_map<::HashedString, ::Molang::details::ExpressionNode>& dataMap
55 ) /*override*/;
56
57 virtual void validateArrayVariables() const /*override*/;
58
59 virtual bool isValid() const /*override*/;
60
61 virtual bool isConstantValue() const /*override*/;
62
63 virtual bool hasVariableAssignments() const /*override*/;
64
65 virtual ::ExpressionOp getOp() const /*override*/;
66
67 virtual bool needsToCompile() const /*override*/;
68
69 virtual ::std::optional<::MolangScriptArg> getValueIfConstant() const /*override*/;
70
71 virtual ::Molang::details::SourceTree* getSource() /*override*/;
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCNAPI ::std::unique_ptr<::Molang::details::IComplexExpression> $clone() const;
78
79 MCNAPI ::MolangScriptArg const& $evalGeneric(::RenderParams& renderParams) const;
80
81 MCNAPI bool $isInitialized() const;
82
83 MCNAPI ::Json::Value $toJson() const;
84
85 MCNAPI ::std::string $getExpressionString() const;
86
87 MCNAPI ::MolangVersion $getMolangVersion() const;
88
89 MCNAPI void
90 $replaceArrayVariables(::std::unordered_map<::HashedString, ::Molang::details::ExpressionNode>& dataMap);
91
92 MCNAPI void $validateArrayVariables() const;
93
94 MCNAPI bool $isValid() const;
95
96 MCNAPI bool $isConstantValue() const;
97
98 MCNAPI bool $hasVariableAssignments() const;
99
100 MCNAPI ::ExpressionOp $getOp() const;
101
102 MCNAPI bool $needsToCompile() const;
103
104 MCNAPI ::std::optional<::MolangScriptArg> $getValueIfConstant() const;
105
106 MCNAPI ::Molang::details::SourceTree* $getSource();
107
108
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCNAPI static void** $vftable();
115 // NOLINTEND
116};
117
118} // namespace Molang::details
Definition HashedString.h:5
Definition Value.h:16
MCAPI ::std::optional<::MolangScriptArg > $getValueIfConstant() const
MCAPI void $replaceArrayVariables(::std::unordered_map<::HashedString, ::Molang::details::ExpressionNode > &dataMap)
MCAPI::MolangScriptArg const & $evalGeneric(::RenderParams &renderParams) const
MCAPI ::std::unique_ptr<::Molang::details::IComplexExpression > $clone() const
MCAPI::Molang::details::SourceTree * $getSource()
Definition ExpressionNode.h:28
Definition IComplexExpression.h:21
Definition SourceTree.h:25
Definition RenderParams.h:30
Definition MolangScriptArg.h:35
Definition Alias.h:14