Package org.kingdoms.locale.compiler
Class MessagePiece.Conditional
java.lang.Object
org.kingdoms.locale.compiler.MessagePiece
org.kingdoms.locale.compiler.MessagePiece.Conditional
- Enclosing class:
- MessagePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kingdoms.locale.compiler.MessagePiece
MessagePiece.Color, MessagePiece.ColorAccessor, MessagePiece.Conditional, MessagePiece.HexColor, MessagePiece.Hover, MessagePiece.NewLine, MessagePiece.Plain, MessagePiece.SimpleColor, MessagePiece.Variable -
Constructor Summary
ConstructorsConstructorDescriptionConditional(ConditionalCompiler.LogicalOperand condition, MessagePiece[] truePieces, MessagePiece[] falsePieces) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbuild(HTMLMessageBuilderContextProvider context) voidbuild(PlainMessageBuilderContextProvider context) getPiece(PlaceholderContextBuilder context) intintlength()toString()
-
Constructor Details
-
Conditional
public Conditional(ConditionalCompiler.LogicalOperand condition, MessagePiece[] truePieces, MessagePiece[] falsePieces)
-
-
Method Details
-
getPiece
-
addFor
-
build
- Specified by:
buildin classMessagePiece
-
build
- Specified by:
buildin classMessagePiece
-
build
- Specified by:
buildin classMessagePiece
-
length
public int length()- Specified by:
lengthin classMessagePiece
-
jsonLength
public int jsonLength()- Specified by:
jsonLengthin classMessagePiece
-
toString
-