Package org.python.core.stringlib
Class InternalFormat
java.lang.Object
org.python.core.stringlib.InternalFormat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A class that provides the base for implementations of type-specific formatting.static class
Parsed PEP-3101 format specification of a single field, encapsulating the format for use by formatting methods. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InternalFormat.Spec
Create aInternalFormat.Spec
object by parsing a format specification.static InternalFormat.Spec
Create aInternalFormat.Spec
object by parsing a format specification, supplied as an object.
-
Constructor Details
-
InternalFormat
public InternalFormat()
-
-
Method Details
-
fromText
Create aInternalFormat.Spec
object by parsing a format specification.- Parameters:
text
- to parse- Returns:
- parsed equivalent to text
-
fromText
Create aInternalFormat.Spec
object by parsing a format specification, supplied as an object.- Parameters:
text
- to parse- Returns:
- parsed equivalent to text
-