Lines Matching refs:std
60 std::string ToString();
73 std::string value;
75 explicit LiteralExpression(const std::string& value);
81 std::string value;
83 explicit StringLiteralExpression(const std::string& value);
89 std::vector<std::string> annotations;
90 const std::string type;
91 std::string name;
94 Variable(const std::string& type, const std::string& name);
102 std::variant<std::shared_ptr<Expression>, std::string> receiver;
103 std::string name;
105 FieldVariable(std::shared_ptr<Expression> object, const std::string& name);
106 FieldVariable(const std::string& clazz, const std::string& name);
113 std::string comment;
114 std::vector<std::string> annotations;
116 std::shared_ptr<Variable> variable = nullptr;
117 std::string value;
120 Field(int modifiers, std::shared_ptr<Variable> variable);
132 LiteralStatement(const std::string& value);
137 const std::string value_;
141 std::vector<std::shared_ptr<Statement>> statements;
147 void Add(std::shared_ptr<Statement> statement);
148 void Add(std::shared_ptr<Expression> expression);
152 std::shared_ptr<Expression> expression;
154 explicit ExpressionStatement(std::shared_ptr<Expression> expression);
160 std::shared_ptr<Variable> lvalue;
161 std::shared_ptr<Expression> rvalue;
162 std::optional<std::string> cast = std::nullopt;
164 Assignment(std::shared_ptr<Variable> lvalue, std::shared_ptr<Expression> rvalue);
165 Assignment(std::shared_ptr<Variable> lvalue, std::shared_ptr<Expression> rvalue,
166 std::string cast);
172 std::variant<std::monostate, std::shared_ptr<Expression>, std::string> receiver;
173 std::string name;
174 std::vector<std::shared_ptr<Expression>> arguments;
175 std::vector<std::string> exceptions;
177 explicit MethodCall(const std::string& name);
178 MethodCall(const std::string& name, const std::vector<std::shared_ptr<Expression>>& args);
179 MethodCall(std::shared_ptr<Expression> obj, const std::string& name);
180 MethodCall(const std::string& clazz, const std::string& name);
181 MethodCall(std::shared_ptr<Expression> obj, const std::string& name,
182 const std::vector<std::shared_ptr<Expression>>& args);
183 MethodCall(const std::string&, const std::string& name,
184 const std::vector<std::shared_ptr<Expression>>& args);
190 std::shared_ptr<Expression> lvalue;
191 std::string op;
192 std::shared_ptr<Expression> rvalue;
194 Comparison(std::shared_ptr<Expression> lvalue, const std::string& op,
195 std::shared_ptr<Expression> rvalue);
201 const std::string instantiableName;
202 std::vector<std::shared_ptr<Expression>> arguments;
204 explicit NewExpression(const std::string& name);
205 NewExpression(const std::string& name, const std::vector<std::shared_ptr<Expression>>& args);
211 const std::string type;
212 std::shared_ptr<Expression> size;
214 NewArrayExpression(const std::string& type, std::shared_ptr<Expression> size);
220 const std::string type;
221 std::shared_ptr<Expression> expression = nullptr;
224 Cast(const std::string& type, std::shared_ptr<Expression> expression);
230 std::shared_ptr<Variable> lvalue = nullptr;
231 std::shared_ptr<Expression> rvalue = nullptr;
233 explicit VariableDeclaration(std::shared_ptr<Variable> lvalue);
234 VariableDeclaration(std::shared_ptr<Variable> lvalue, std::shared_ptr<Expression> rvalue);
240 std::shared_ptr<Expression> expression = nullptr;
241 std::shared_ptr<StatementBlock> statements = std::make_shared<StatementBlock>();
242 std::shared_ptr<IfStatement> elseif = nullptr;
250 std::shared_ptr<Expression> expression;
252 explicit ReturnStatement(std::shared_ptr<Expression> expression);
258 std::shared_ptr<StatementBlock> statements = std::make_shared<StatementBlock>();
266 std::shared_ptr<StatementBlock> statements = std::make_shared<StatementBlock>();
274 std::vector<std::string> cases;
275 std::shared_ptr<StatementBlock> statements = std::make_shared<StatementBlock>();
278 explicit Case(const std::string& c);
284 std::shared_ptr<Expression> expression;
285 std::vector<std::shared_ptr<Case>> cases;
287 explicit SwitchStatement(std::shared_ptr<Expression> expression);
293 std::string comment;
294 std::vector<std::string> annotations;
296 std::optional<std::string> returnType = std::nullopt; // nullopt means constructor
297 std::string name;
298 std::vector<std::shared_ptr<Variable>> parameters;
299 std::vector<std::string> exceptions;
300 std::shared_ptr<StatementBlock> statements = nullptr;
309 std::string element;
311 LiteralClassElement(std::string e) : element(e) {} in LiteralClassElement()
320 std::string comment;
321 std::vector<std::string> annotations;
324 std::string type;
325 std::optional<std::string> extends = std::nullopt;
326 std::vector<std::string> interfaces;
327 std::vector<std::shared_ptr<ClassElement>> elements;
337 Document(const std::string& comment,
338 const std::string& package,
339 std::unique_ptr<Class> clazz);
344 std::string comment_;
345 std::string package_;
346 std::unique_ptr<Class> clazz_;
349 extern std::shared_ptr<Expression> NULL_VALUE;
350 extern std::shared_ptr<Expression> THIS_VALUE;
351 extern std::shared_ptr<Expression> SUPER_VALUE;
352 extern std::shared_ptr<Expression> TRUE_VALUE;
353 extern std::shared_ptr<Expression> FALSE_VALUE;