Class AttributeParser
java.lang.Object
com.github.weisj.jsvg.parser.impl.AttributeParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate final @NotNull PaintParserprivate static final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull PaintParser@NotNull AngleparseAngle(@Nullable String value, @NotNull Angle fallback) double @NotNull []parseDoubleList(@Nullable String value) @Nullable DurationparseDuration(@Nullable String value, @Nullable Duration fallback) <E extends Enum<E>>
E<E extends Enum<E>>
EfloatparseFloat(@Nullable String value, float fallback) float @NotNull []parseFloatList(@Nullable String value) int@Nullable LengthparseLength(@Nullable String value, @Nullable Length fallback, @NotNull PercentageDimension dimension) @NotNull Length @Nullable []parseLengthList(@Nullable String value, @NotNull Length @Nullable [] fallback, @NotNull PercentageDimension dimension) @Nullable LengthparseNumber(@Nullable String value, @Nullable Length fallback) @Nullable SVGPaintparsePaint(@Nullable String value, @NotNull AttributeNode attributeNode) @Nullable PercentageparsePercentage(@Nullable String value, @Nullable Percentage fallback) @Nullable PercentageparsePercentage(@Nullable String value, @Nullable Percentage fallback, float min, float max) private @Nullable TransformPartparseSingleTransformPart(@NotNull String value) @NotNull String @NotNull []parseStringList(@Nullable String value, SeparatorMode separatorMode) @NotNull String @Nullable []parseStringList(@Nullable String value, SeparatorMode separatorMode, @NotNull String @Nullable [] fallback) private <U,V> V parseSuffixUnit(@Nullable String value, @NotNull SuffixUnit<U, V> defaultUnit, V fallback, @NotNull UnaryOperator<@Nullable SuffixUnit<U, V>> unitMapper) @Nullable DurationparseTimeOffsetValue(@Nullable String value, @Nullable Duration fallback) @Nullable List<@NotNull TransformPart> parseTransform(@Nullable String value) private Length @Nullable []parseTransformLengths(@NotNull TransformPart.TransformType type, @NotNull String @NotNull [] values) @Nullable TransformPartparseTransformPart(TransformPart.TransformType type, @NotNull String value) @Nullable String
-
Field Details
-
LOGGER
-
paintParser
-
TRANSFORM_PATTERN
-
-
Constructor Details
-
AttributeParser
-
-
Method Details
-
parseLength
@Contract("_,!null,_ -> !null") @Nullable public @Nullable Length parseLength(@Nullable @Nullable String value, @Nullable @Nullable Length fallback, @NotNull @NotNull PercentageDimension dimension) -
parseTimeOffsetValue
-
parseDuration
-
parsePercentage
@Contract("_,!null -> !null") @Nullable public @Nullable Percentage parsePercentage(@Nullable @Nullable String value, @Nullable @Nullable Percentage fallback) -
parsePercentage
@Contract("_,!null,_,_ -> !null") @Nullable public @Nullable Percentage parsePercentage(@Nullable @Nullable String value, @Nullable @Nullable Percentage fallback, float min, float max) -
parseSuffixUnit
@Contract("_,_,!null,_ -> !null") @Nullable private <U,V> V parseSuffixUnit(@Nullable @Nullable String value, @NotNull @NotNull SuffixUnit<U, V> defaultUnit, @Nullable V fallback, @NotNull @NotNull UnaryOperator<@Nullable SuffixUnit<U, V>> unitMapper) -
parseInt
-
parseNumber
-
parseFloat
-
parseAngle
-
parseLengthList
@Contract("_,!null,_ -> !null") @NotNull public @NotNull Length @Nullable [] parseLengthList(@Nullable @Nullable String value, @NotNull @NotNull Length @Nullable [] fallback, @NotNull @NotNull PercentageDimension dimension) -
parseFloatList
-
parseDoubleList
-
parseStringList
@NotNull public @NotNull String @NotNull [] parseStringList(@Nullable @Nullable String value, SeparatorMode separatorMode) -
parseStringList
@Contract("_,_,!null -> !null") @NotNull public @NotNull String @Nullable [] parseStringList(@Nullable @Nullable String value, SeparatorMode separatorMode, @NotNull @NotNull String @Nullable [] fallback) -
parsePaint
@Nullable public @Nullable SVGPaint parsePaint(@Nullable @Nullable String value, @NotNull @NotNull AttributeNode attributeNode) -
parseEnum
-
parseEnum
-
parseUrl
-
parseTransform
@Nullable public @Nullable List<@NotNull TransformPart> parseTransform(@Nullable @Nullable String value) -
parseSingleTransformPart
-
parseTransformPart
@Nullable public @Nullable TransformPart parseTransformPart(TransformPart.TransformType type, @NotNull @NotNull String value) -
parseTransformLengths
private Length @Nullable [] parseTransformLengths(@NotNull TransformPart.TransformType type, @NotNull @NotNull String @NotNull [] values) -
paintParser
-