Path: blob/master/sourcetools/com.ibm.uma/com/ibm/uma/om/Flag.java
6004 views
/*******************************************************************************1* Copyright (c) 2001, 2017 IBM Corp. and others2*3* This program and the accompanying materials are made available under4* the terms of the Eclipse Public License 2.0 which accompanies this5* distribution and is available at https://www.eclipse.org/legal/epl-2.0/6* or the Apache License, Version 2.0 which accompanies this distribution and7* is available at https://www.apache.org/licenses/LICENSE-2.0.8*9* This Source Code may also be made available under the following10* Secondary Licenses when the conditions for such availability set11* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU12* General Public License, version 2 with the GNU Classpath13* Exception [1] and GNU General Public License, version 2 with the14* OpenJDK Assembly Exception [2].15*16* [1] https://www.gnu.org/software/classpath/license.html17* [2] http://openjdk.java.net/legal/assembly-exception.html18*19* 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-exception20*******************************************************************************/21package com.ibm.uma.om;222324public class Flag extends PredicateList {25public static final int SINGLE = 0;26public static final int GROUP = 1;2728String flag;29String value = null;30boolean cflag = true;31boolean cxxflag = true;32boolean cppflag = false;33boolean asmflag = true;34boolean definition = true;35int type;36String groupName;3738public Flag( String groupName, String containingFile) {39super(containingFile);40type = GROUP;41this.groupName = groupName;42}4344public Flag( String flag, String value, String containingFile ) {45super(containingFile);46this.flag = flag;47if ( value != null ) {48this.value = value;49}50}5152public Flag( String flag,53String value,54String containingFile,55boolean cflag,56boolean cxxflag,57boolean cppflag,58boolean asmflag,59boolean definition ) {60super(containingFile);61this.flag = flag;62if ( value != null ) {63this.value = value;64}65this.asmflag = asmflag;66this.cflag = cflag;67this.cxxflag = cxxflag;68this.cppflag = cppflag;69this.definition = definition;70}7172public String getName() {73return flag;74}7576public String getValue() {77return value;78}7980public boolean isAsmflag() {81return asmflag;82}8384public void setAsmflag(boolean asmflag) {85this.asmflag = asmflag;86}8788public boolean isCflag() {89return cflag;90}9192public void setCflag(boolean cflag) {93this.cflag = cflag;94}9596public boolean isCppflag() {97return cppflag;98}99100public void setCppflag(boolean cppflag) {101this.cppflag = cppflag;102}103104public boolean isCxxflag() {105return cxxflag;106}107108public void setCxxflag(boolean cxxflag) {109this.cxxflag = cxxflag;110}111112public boolean isDefinition() {113return definition;114}115116public void setDefinition(boolean definition) {117this.definition = definition;118}119120public void setType(int type) {121this.type = type;122}123124public int getType() {125return type;126}127}128129130