Package org.kingdoms.locale.compiler
Class PlaceholderTranslationContext
java.lang.Object
org.kingdoms.locale.compiler.PlaceholderTranslationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageCompilerSettingsMain differences are the fact that it doesn't validate or translate hover:{} -
Constructor Summary
ConstructorsConstructorDescriptionPlaceholderTranslationContext(Object raw, MessageCompilerSettings settings) PlaceholderTranslationContext(Object raw, MessageCompilerSettings settings, boolean nullable) -
Method Summary
Modifier and TypeMethodDescriptionorg.kingdoms.locale.compiler.placeholders.PlaceholdergetValue()static booleanofNullable(Object raw) voidsetInnerPlaceholder(org.kingdoms.locale.compiler.placeholders.Placeholder innerPlaceholder) toString()static ObjectunwrapContextualPlaceholder(Object translated, MessagePlaceholderProvider context) static ObjectunwrapPlaceholder(Object translated) withDefaultContext(Object raw)
-
Field Details
-
PLACEHOLDER_SETTINGS
Main differences are the fact that it doesn't validate or translate hover:{}
-
-
Constructor Details
-
PlaceholderTranslationContext
-
PlaceholderTranslationContext
public PlaceholderTranslationContext(Object raw, MessageCompilerSettings settings, boolean nullable)
-
-
Method Details
-
setInnerPlaceholder
public void setInnerPlaceholder(org.kingdoms.locale.compiler.placeholders.Placeholder innerPlaceholder) -
getInnerPlaceholder
public org.kingdoms.locale.compiler.placeholders.Placeholder getInnerPlaceholder() -
withDefaultContext
-
ofNullable
-
copyTo
-
isRaw
-
getSettings
-
toString
-
getValue
-
unwrapPlaceholder
-
unwrapContextualPlaceholder
public static Object unwrapContextualPlaceholder(Object translated, MessagePlaceholderProvider context)
-