2 This file is to define ToolChainElement 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 This class is an enumeration definition for key elements in tool chain definition
22 public class ToolChainElement
{
23 private static int nextValue
= 0;
26 // "TARGET", "TOOLCHAIN", "ARCH", "TOOLCODE", "ATTRIBUTE"
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");
34 private final String name
;
35 public final int value
= nextValue
++;
40 private ToolChainElement(String name
) {
44 public String
toString() {