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