public class CPathEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CPE_CONTAINER
a container path which requires some resolving
|
static int |
CPE_INCLUDE
an include path
|
static int |
CPE_MACRO
a macro value
|
static int |
CPE_OUTPUT
an output path
|
static int |
CPE_SOURCE
a source path
|
Constructor and Description |
---|
CPathEntry(int kind,
java.lang.String path)
Initializes this path entry with a specific type and
a corresponding value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBasePath()
Returns the location of an additional path associated with this entry.
|
java.lang.String |
getInclude()
Returns the current include location of this C/C++ path.
|
int |
getKind()
Returns the kind of path entry.
|
java.lang.String |
getName()
Returns the name of the macro entry.
|
java.lang.String |
getPath()
Returns the path value for this entry.
|
java.lang.String |
getValue()
Returns the value of the macro entry.
|
int |
hashCode() |
boolean |
isSystemEntry()
Returns true if this path entry is related to the system.
|
void |
setBasePath(java.lang.String basepath)
Changes the base path which is used in conjunction with system
entries to locate an additional path.
|
void |
setInclude(java.lang.String include)
Changes the include location of this C/C++ path.
|
void |
setName(java.lang.String name)
Sets the name for a macro entry.
|
void |
setSystemEntry(boolean system)
(Un)Marks this entry as a system specific one.
|
void |
setValue(java.lang.String value)
Sets the value for a macro entry.
|
java.lang.String |
toString() |
public static final int CPE_CONTAINER
public static final int CPE_SOURCE
public static final int CPE_INCLUDE
public static final int CPE_OUTPUT
public static final int CPE_MACRO
public CPathEntry(int kind, java.lang.String path)
kind
- A CPE_??? constant which declares the kind of this entry.path
- A value depending on the kind.public int getKind()
public java.lang.String getPath()
public void setInclude(java.lang.String include)
include
- The new include location of the C/C++ path.public java.lang.String getInclude()
public void setSystemEntry(boolean system)
system
- true <=> This path entry is related to the system.public boolean isSystemEntry()
public void setBasePath(java.lang.String basepath)
basepath
- An additional path that is associated with this entry.public java.lang.String getBasePath()
public void setName(java.lang.String name)
name
- The name of the macro entry.public java.lang.String getName()
public void setValue(java.lang.String value)
value
- The value for the macro entry.public java.lang.String getValue()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object