]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - Tools/Source/GenBuild/org/tianocore/build/toolchain/ToolChainAttribute.java
Add boot script dispatch opcode 2
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / toolchain / ToolChainAttribute.java
... / ...
CommitLineData
1/** @file\r
2This file is to define ToolChainAttribute class.\r
3\r
4Copyright (c) 2006, Intel Corporation\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12**/\r
13\r
14package org.tianocore.build.toolchain;\r
15\r
16/**\r
17\r
18 ToolChainAttribute is used to define the enumeration value for the attributes\r
19 used in tool chain definition file. \r
20\r
21 **/\r
22public class ToolChainAttribute {\r
23 private static int nextValue = 0;\r
24\r
25 //\r
26 // "NAME", "PATH", "DPATH", "SPATH", "EXT", "FAMILY", "FLAGS"\r
27 // \r
28 public final static ToolChainAttribute NAME = new ToolChainAttribute("NAME");\r
29 public final static ToolChainAttribute PATH = new ToolChainAttribute("PATH");\r
30 public final static ToolChainAttribute DPATH = new ToolChainAttribute("DPATH");\r
31 public final static ToolChainAttribute SPATH = new ToolChainAttribute("SPATH");\r
32 public final static ToolChainAttribute EXT = new ToolChainAttribute("EXT");\r
33 public final static ToolChainAttribute FAMILY = new ToolChainAttribute("FAMILY");\r
34 public final static ToolChainAttribute FLAGS = new ToolChainAttribute("FLAGS");\r
35\r
36 private final String name;\r
37 public final int value = nextValue++;\r
38\r
39 /**\r
40 * Default constructor\r
41 */\r
42 private ToolChainAttribute(String name) {\r
43 this.name = name;\r
44 }\r
45\r
46 public String toString() {\r
47 return name;\r
48 }\r
49}\r
50\r
51\r
52\r
53\r
54\r