Class PlaceholderParser

java.lang.Object
org.kingdoms.locale.compiler.placeholders.PlaceholderParser

public final class PlaceholderParser extends Object
  • Constructor Details

    • PlaceholderParser

      public PlaceholderParser()
  • Method Details

    • parsePlaceholder

      public static Placeholder parsePlaceholder(String placeholder)
      Returns:
      Null of no KingdomsPlaceholder handler can be detected. %pointer*placeholder(@formatter)|(:function arguments)%
    • parseType

      public static org.kingdoms.locale.compiler.placeholders.PlaceholderType parseType(String full)
    • parseType

      public static org.kingdoms.locale.compiler.placeholders.PlaceholderType parseType(boolean isLocal, String id, String parameter)
    • getModifierOf

      public static Placeholder.Modifier getModifierOf(String identifier, boolean parsed)
    • serializeVariables

      public static Map<String,Object> serializeVariables(Object... edits)
    • serializeVariables

      public static Map<String,Object> serializeVariables(Map<String,Object> source, Object... edits)
    • serializeVariablesIntoContext

      public static Map<String,Object> serializeVariablesIntoContext(Object... edits)
    • serializeVariablesIntoContext

      public static Map<String,Object> serializeVariablesIntoContext(Map<String,Object> replacers, Object... edits)