Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/sourcetools/com.ibm.uma/com/ibm/uma/om/Flag.java
6004 views
1
/*******************************************************************************
2
* Copyright (c) 2001, 2017 IBM Corp. and others
3
*
4
* This program and the accompanying materials are made available under
5
* the terms of the Eclipse Public License 2.0 which accompanies this
6
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7
* or the Apache License, Version 2.0 which accompanies this distribution and
8
* is available at https://www.apache.org/licenses/LICENSE-2.0.
9
*
10
* This Source Code may also be made available under the following
11
* Secondary Licenses when the conditions for such availability set
12
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13
* General Public License, version 2 with the GNU Classpath
14
* Exception [1] and GNU General Public License, version 2 with the
15
* OpenJDK Assembly Exception [2].
16
*
17
* [1] https://www.gnu.org/software/classpath/license.html
18
* [2] http://openjdk.java.net/legal/assembly-exception.html
19
*
20
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21
*******************************************************************************/
22
package com.ibm.uma.om;
23
24
25
public class Flag extends PredicateList {
26
public static final int SINGLE = 0;
27
public static final int GROUP = 1;
28
29
String flag;
30
String value = null;
31
boolean cflag = true;
32
boolean cxxflag = true;
33
boolean cppflag = false;
34
boolean asmflag = true;
35
boolean definition = true;
36
int type;
37
String groupName;
38
39
public Flag( String groupName, String containingFile) {
40
super(containingFile);
41
type = GROUP;
42
this.groupName = groupName;
43
}
44
45
public Flag( String flag, String value, String containingFile ) {
46
super(containingFile);
47
this.flag = flag;
48
if ( value != null ) {
49
this.value = value;
50
}
51
}
52
53
public Flag( String flag,
54
String value,
55
String containingFile,
56
boolean cflag,
57
boolean cxxflag,
58
boolean cppflag,
59
boolean asmflag,
60
boolean definition ) {
61
super(containingFile);
62
this.flag = flag;
63
if ( value != null ) {
64
this.value = value;
65
}
66
this.asmflag = asmflag;
67
this.cflag = cflag;
68
this.cxxflag = cxxflag;
69
this.cppflag = cppflag;
70
this.definition = definition;
71
}
72
73
public String getName() {
74
return flag;
75
}
76
77
public String getValue() {
78
return value;
79
}
80
81
public boolean isAsmflag() {
82
return asmflag;
83
}
84
85
public void setAsmflag(boolean asmflag) {
86
this.asmflag = asmflag;
87
}
88
89
public boolean isCflag() {
90
return cflag;
91
}
92
93
public void setCflag(boolean cflag) {
94
this.cflag = cflag;
95
}
96
97
public boolean isCppflag() {
98
return cppflag;
99
}
100
101
public void setCppflag(boolean cppflag) {
102
this.cppflag = cppflag;
103
}
104
105
public boolean isCxxflag() {
106
return cxxflag;
107
}
108
109
public void setCxxflag(boolean cxxflag) {
110
this.cxxflag = cxxflag;
111
}
112
113
public boolean isDefinition() {
114
return definition;
115
}
116
117
public void setDefinition(boolean definition) {
118
this.definition = definition;
119
}
120
121
public void setType(int type) {
122
this.type = type;
123
}
124
125
public int getType() {
126
return type;
127
}
128
}
129
130