]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | ToolChainElement class\r | |
3 | \r | |
4 | ToolChainElement class is defining enumeration value of key part names.\r | |
5 | \r | |
6 | Copyright (c) 2006, Intel Corporation\r | |
7 | All rights reserved. This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | **/\r | |
15 | \r | |
16 | package org.tianocore.build.toolchain;\r | |
17 | \r | |
18 | /**\r | |
19 | \r | |
20 | This class is an enumeration definition for key elements in tool chain definition\r | |
21 | file.\r | |
22 | \r | |
23 | **/\r | |
24 | public class ToolChainElement {\r | |
25 | private static int nextValue = 0;\r | |
26 | \r | |
27 | //\r | |
28 | // "TARGET", "TOOLCHAIN", "ARCH", "TOOLCODE", "ATTRIBUTE"\r | |
29 | // \r | |
30 | public final static ToolChainElement TARGET = new ToolChainElement("TARGET");\r | |
31 | public final static ToolChainElement TOOLCHAIN = new ToolChainElement("TOOLCHAIN");\r | |
32 | public final static ToolChainElement ARCH = new ToolChainElement("ARCH");\r | |
33 | public final static ToolChainElement TOOLCODE = new ToolChainElement("TOOLCODE");\r | |
34 | public final static ToolChainElement ATTRIBUTE = new ToolChainElement("ATTRIBUTE");\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 ToolChainElement(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 |