Package org.sosy_lab.common.io
Class PathCounterTemplate
- java.lang.Object
-
- org.sosy_lab.common.io.PathCounterTemplate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getFreshPath()
Construct a concretePath
that was not handed out by this instance before.String
getTemplate()
Returns the raw template of this instance.static PathCounterTemplate
ofFormatString(String pTemplate)
Create a new instance.String
toString()
-
-
-
Method Detail
-
ofFormatString
public static PathCounterTemplate ofFormatString(String pTemplate)
Create a new instance.- Parameters:
pTemplate
- A non-null non-empty template String in the format forString.format(String, Object...)
that is suited for exactly one argument of type int.- Throws:
IllegalFormatException
- If the template is invalid.
-
getFreshPath
public Path getFreshPath()
Construct a concretePath
that was not handed out by this instance before.- Throws:
IllegalFormatException
- If the template is invalid, or the arguments does not match the template.
-
getTemplate
public String getTemplate()
Returns the raw template of this instance.
-
-