Package org.parboiled.support
Class StringVar
- java.lang.Object
-
- org.parboiled.common.Reference<T>
-
- org.parboiled.support.Var<java.lang.String>
-
- org.parboiled.support.StringVar
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappend(char c)Appends the given char.booleanappend(java.lang.String text)Appends the given string.StringVarappended(char c)Appends the given char.StringVarappended(java.lang.String text)Appends the given string.booleanisEmpty()Returns true if the wrapped string is either null or empty.-
Methods inherited from class org.parboiled.support.Var
enterFrame, exitFrame, getLevel, getName, setName, toString
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Returns true if the wrapped string is either null or empty.- Returns:
- true if the wrapped string is either null or empty
-
append
public boolean append(java.lang.String text)
Appends the given string. If this instance is currently uninitialized the given string is used for initialization.- Parameters:
text- the text to append- Returns:
- true
-
appended
public StringVar appended(java.lang.String text)
Appends the given string. If this instance is currently uninitialized the given string is used for initialization.- Parameters:
text- the text to append- Returns:
- this instance
-
append
public boolean append(char c)
Appends the given char. If this instance is currently uninitialized the given char is used for initialization.- Parameters:
c- the char to append- Returns:
- true
-
appended
public StringVar appended(char c)
Appends the given char. If this instance is currently uninitialized the given string is used for initialization.- Parameters:
c- the char to append- Returns:
- this instance
-
-