]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/GenBuild/org/tianocore/build/toolchain/ToolChainElement.java
Fixed Absolute position of fields, Added ToolTipText and made HelpText a Scrolling...
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / toolchain / ToolChainElement.java
CommitLineData
5f42a4ba 1/** @file\r
2This file is to define ToolChainElement 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
a29c47e0 14package org.tianocore.build.toolchain;\r
5f42a4ba 15\r
a29c47e0 16/**\r
5f42a4ba 17\r
18 This class is an enumeration definition for key elements in tool chain definition\r
19 file.\r
20 \r
21 **/\r
a29c47e0 22public class ToolChainElement {\r
23 private static int nextValue = 0;\r
24\r
5f42a4ba 25 //\r
26 // "TARGET", "TOOLCHAIN", "ARCH", "TOOLCODE", "ATTRIBUTE"\r
27 // \r
a29c47e0 28 public final static ToolChainElement TARGET = new ToolChainElement("TARGET");\r
29 public final static ToolChainElement TOOLCHAIN = new ToolChainElement("TOOLCHAIN");\r
30 public final static ToolChainElement ARCH = new ToolChainElement("ARCH");\r
31 public final static ToolChainElement TOOLCODE = new ToolChainElement("TOOLCODE");\r
32 public final static ToolChainElement ATTRIBUTE = new ToolChainElement("ATTRIBUTE");\r
33\r
34 private final String name;\r
35 public final int value = nextValue++;\r
36\r
37 /**\r
38 * Default constructor\r
39 */\r
40 private ToolChainElement(String name) {\r
41 this.name = name;\r
42 }\r
43\r
44 public String toString() {\r
45 return name;\r
46 }\r
47}\r
48\r
49\r
50\r
51\r
52\r