Enum PBXReference.SourceTree
- java.lang.Object
-
- java.lang.Enum<PBXReference.SourceTree>
-
- com.facebook.buck.apple.xcode.xcodeproj.PBXReference.SourceTree
-
- All Implemented Interfaces:
Serializable
,Comparable<PBXReference.SourceTree>
- Enclosing class:
- PBXReference
public static enum PBXReference.SourceTree extends Enum<PBXReference.SourceTree>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTE
Absolute system path.BUILT_PRODUCTS_DIR
Relative to the build settingBUILT_PRODUCTS_DIR
.DEVELOPER_DIR
Relative to the Developer content directory inside the Xcode application (e.g.GROUP
Relative to the path of the group containing this.PLATFORM_DIR
Relative to the build settingPLATFORM_DIR
.SDKROOT
Relative to the build settingSDKROOT
.SOURCE_ROOT
Relative to the directory containing the project fileSOURCE_ROOT
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<PBXReference.SourceTree>
fromBuildSetting(String buildSetting)
Return a sourceTree given a build setting that is typically used as a source tree prefix.String
toString()
static PBXReference.SourceTree
valueOf(String name)
Returns the enum constant of this type with the specified name.static PBXReference.SourceTree[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GROUP
public static final PBXReference.SourceTree GROUP
Relative to the path of the group containing this.
-
ABSOLUTE
public static final PBXReference.SourceTree ABSOLUTE
Absolute system path.
-
BUILT_PRODUCTS_DIR
public static final PBXReference.SourceTree BUILT_PRODUCTS_DIR
Relative to the build settingBUILT_PRODUCTS_DIR
.
-
PLATFORM_DIR
public static final PBXReference.SourceTree PLATFORM_DIR
Relative to the build settingPLATFORM_DIR
.
-
SDKROOT
public static final PBXReference.SourceTree SDKROOT
Relative to the build settingSDKROOT
.
-
SOURCE_ROOT
public static final PBXReference.SourceTree SOURCE_ROOT
Relative to the directory containing the project fileSOURCE_ROOT
.
-
DEVELOPER_DIR
public static final PBXReference.SourceTree DEVELOPER_DIR
Relative to the Developer content directory inside the Xcode application (e.g./Applications/Xcode.app/Contents/Developer
).
-
-
Method Detail
-
values
public static PBXReference.SourceTree[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PBXReference.SourceTree c : PBXReference.SourceTree.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PBXReference.SourceTree valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<PBXReference.SourceTree>
-
fromBuildSetting
public static Optional<PBXReference.SourceTree> fromBuildSetting(String buildSetting)
Return a sourceTree given a build setting that is typically used as a source tree prefix.The build setting may be optionally prefixed by '$' which will be stripped.
-
-