]>
Commit | Line | Data |
---|---|---|
a29c47e0 | 1 | package org.tianocore.build.toolchain;\r |
2 | /**\r | |
3 | * TODO: Add class description\r | |
4 | * \r | |
5 | * @author jwang36\r | |
6 | */\r | |
7 | public class ToolChainAttribute {\r | |
8 | private static int nextValue = 0;\r | |
9 | \r | |
10 | //"NAME", "PATH", "DPATH", "SPATH", "EXT", "FAMILY", "FLAGS"\r | |
11 | public final static ToolChainAttribute NAME = new ToolChainAttribute("NAME");\r | |
12 | public final static ToolChainAttribute PATH = new ToolChainAttribute("PATH");\r | |
13 | public final static ToolChainAttribute DPATH = new ToolChainAttribute("DPATH");\r | |
14 | public final static ToolChainAttribute SPATH = new ToolChainAttribute("SPATH");\r | |
15 | public final static ToolChainAttribute EXT = new ToolChainAttribute("EXT");\r | |
16 | public final static ToolChainAttribute FAMILY = new ToolChainAttribute("FAMILY");\r | |
17 | public final static ToolChainAttribute FLAGS = new ToolChainAttribute("FLAGS");\r | |
18 | \r | |
19 | private final String name;\r | |
20 | public final int value = nextValue++;\r | |
21 | \r | |
22 | /**\r | |
23 | * Default constructor\r | |
24 | */\r | |
25 | private ToolChainAttribute(String name) {\r | |
26 | this.name = name;\r | |
27 | }\r | |
28 | \r | |
29 | public String toString() {\r | |
30 | return name;\r | |
31 | }\r | |
32 | }\r | |
33 | \r | |
34 | \r | |
35 | \r | |
36 | \r | |
37 | \r |