src/share/classes/javax/tools/StandardLocation.java

changeset 1230
b14d9583ce92
parent 554
9d9f26857129
child 1442
fcf89720ae71
equal deleted inserted replaced
1226:97bec6ab1227 1230:b14d9583ce92
1 /* 1 /*
2 * Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
64 64
65 /** 65 /**
66 * Location to search for platform classes. Sometimes called 66 * Location to search for platform classes. Sometimes called
67 * the boot class path. 67 * the boot class path.
68 */ 68 */
69 PLATFORM_CLASS_PATH; 69 PLATFORM_CLASS_PATH,
70
71 /**
72 * Location of new native header files.
73 * @since 1.8
74 */
75 NATIVE_HEADER_OUTPUT;
70 76
71 /** 77 /**
72 * Gets a location object with the given name. The following 78 * Gets a location object with the given name. The following
73 * property must hold: {@code locationFor(x) == 79 * property must hold: {@code locationFor(x) ==
74 * locationFor(y)} if and only if {@code x.equals(y)}. 80 * locationFor(y)} if and only if {@code x.equals(y)}.
95 = new ConcurrentHashMap<String,Location>(); 101 = new ConcurrentHashMap<String,Location>();
96 102
97 public String getName() { return name(); } 103 public String getName() { return name(); }
98 104
99 public boolean isOutputLocation() { 105 public boolean isOutputLocation() {
100 return this == CLASS_OUTPUT || this == SOURCE_OUTPUT; 106 switch (this) {
107 case CLASS_OUTPUT:
108 case SOURCE_OUTPUT:
109 case NATIVE_HEADER_OUTPUT:
110 return true;
111 default:
112 return false;
113 }
101 } 114 }
102 } 115 }

mercurial