MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / JavaVersion

Class JavaVersion

launcher/java/JavaVersion.h:13–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#endif
12
13class JavaVersion {
14 friend class JavaVersionTest;
15
16 public:
17 JavaVersion() {}
18 JavaVersion(const QString& rhs);
19 JavaVersion(int major, int minor, int security, int build = 0, QString name = "");
20
21 JavaVersion& operator=(const QString& rhs);
22
23 bool operator<(const JavaVersion& rhs) const;
24 bool operator==(const JavaVersion& rhs) const;
25 bool operator>(const JavaVersion& rhs) const;
26
27 bool requiresPermGen() const;
28 bool defaultsToUtf8() const;
29 bool isModular() const;
30
31 QString toString() const;
32
33 int major() const { return m_major; }
34 int minor() const { return m_minor; }
35 int security() const { return m_security; }
36 QString build() const { return m_prerelease; }
37 QString name() const { return m_name; }
38
39 private:
40 QString m_string;
41 int m_major = 0;
42 int m_minor = 0;
43 int m_security = 0;
44 QString m_name = "";
45 bool m_parseable = false;
46 QString m_prerelease;
47};

Callers 2

parseJavaMetaFunction · 0.85
getJavaVersionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected