Package nz.org.riskscape.ini
Class KeyValue
java.lang.Object
nz.org.riskscape.ini.KeyValue
AST for A single key-value defined in an .ini file, e.g. foo = bar
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KeyValue
-
-
Method Details
-
getKey
- Returns:
- the key part, i.e. the bit before the equals sign.
-
getKeyToken
- Returns:
- the AST of the key
-
getValue
- Returns:
- the defined value. Might be a blank string, but leading and trailing whitespace should be removed.
-
getValueToken
- Returns:
- the AST of the value
-
isBlank
public boolean isBlank()- Returns:
- true if the value is just whitespace or empty.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-