Package io.protostuff.compiler.model
Class DynamicMessage.Value
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- io.protostuff.compiler.model.DynamicMessage.Value
-
- All Implemented Interfaces:
Element
- Enclosing class:
- DynamicMessage
public static class DynamicMessage.Value extends AbstractElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicMessage.Value.Type
-
Field Summary
-
Fields inherited from class io.protostuff.compiler.model.AbstractElement
comments, sourceCodeLocation
-
-
Method Summary
-
Methods inherited from class io.protostuff.compiler.model.AbstractElement
addComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocation
-
-
-
-
Method Detail
-
createString
public static DynamicMessage.Value createString(String value)
-
createString
public static DynamicMessage.Value createString(SourceCodeLocation sourceCodeLocation, String value)
-
createBoolean
public static DynamicMessage.Value createBoolean(boolean value)
-
createBoolean
public static DynamicMessage.Value createBoolean(SourceCodeLocation sourceCodeLocation, boolean value)
-
createInteger
public static DynamicMessage.Value createInteger(long value)
-
createInteger
public static DynamicMessage.Value createInteger(SourceCodeLocation sourceCodeLocation, long value)
-
createMessage
public static DynamicMessage.Value createMessage(DynamicMessage value)
-
createMessage
public static DynamicMessage.Value createMessage(SourceCodeLocation sourceCodeLocation, DynamicMessage value)
-
createFloat
public static DynamicMessage.Value createFloat(double value)
-
createFloat
public static DynamicMessage.Value createFloat(SourceCodeLocation sourceCodeLocation, double value)
-
createEnum
public static DynamicMessage.Value createEnum(String value)
-
createEnum
public static DynamicMessage.Value createEnum(SourceCodeLocation sourceCodeLocation, String value)
-
getParent
public Element getParent()
-
getType
public DynamicMessage.Value.Type getType()
-
getBoolean
public boolean getBoolean()
-
isBooleanType
public boolean isBooleanType()
-
getInt64
public long getInt64()
-
getInt32
public int getInt32()
Get option value asint32number, if option is a numeric value.
-
getDouble
public double getDouble()
-
isIntegerType
public boolean isIntegerType()
-
getString
public String getString()
-
isStringType
public boolean isStringType()
-
getEnumName
public String getEnumName()
-
isEnumType
public boolean isEnumType()
-
getMessage
public DynamicMessage getMessage()
-
isMessageType
public boolean isMessageType()
-
-