2 This file is to define ToolChainAttribute class.
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 package org
.tianocore
.build
.toolchain
;
18 ToolChainAttribute is used to define the enumeration value for the attributes
19 used in tool chain definition file.
22 public class ToolChainAttribute
{
23 private static int nextValue
= 0;
26 // "NAME", "PATH", "DPATH", "SPATH", "EXT", "FAMILY", "FLAGS"
28 public final static ToolChainAttribute NAME
= new ToolChainAttribute("NAME");
29 public final static ToolChainAttribute PATH
= new ToolChainAttribute("PATH");
30 public final static ToolChainAttribute DPATH
= new ToolChainAttribute("DPATH");
31 public final static ToolChainAttribute SPATH
= new ToolChainAttribute("SPATH");
32 public final static ToolChainAttribute EXT
= new ToolChainAttribute("EXT");
33 public final static ToolChainAttribute FAMILY
= new ToolChainAttribute("FAMILY");
34 public final static ToolChainAttribute FLAGS
= new ToolChainAttribute("FLAGS");
36 private final String name
;
37 public final int value
= nextValue
++;
42 private ToolChainAttribute(String name
) {
46 public String
toString() {