public static class OclNode.DateTimeLiteralExp extends OclNode.LiteralExp
A DateTimeLiteralExp OclNode represents a defined date and time or if constructed without a parameter the current date and time.
OclNode.AttributeCallExp, OclNode.BooleanLiteralExp, OclNode.BuiltInDescr, OclNode.BuiltInType, OclNode.ClassLiteralExp, OclNode.DataType, OclNode.DateTimeLiteralExp, OclNode.Declaration, OclNode.EnumerationLiteralExp, OclNode.Expression, OclNode.IfExp, OclNode.IntegerLiteralExp, OclNode.IterationCallExp, OclNode.LetExp, OclNode.LiteralExp, OclNode.MultiplicityMapping, OclNode.OclVoidLiteralExp, OclNode.OperationCallExp, OclNode.PackageLiteralExp, OclNode.PropertyCallExp, OclNode.PropertyCategory, OclNode.PropertySelector, OclNode.RealLiteralExp, OclNode.StringLiteralExp, OclNode.VariableExp
Modifier and Type | Field and Description |
---|---|
boolean |
current |
GregorianCalendar |
dateTime |
Modifier and Type | Method and Description |
---|---|
String |
asString()
This returns the value as a String.
|
void |
debugPrintContent(PrintWriter stream)
This is for generating debug output out of OclNodes.
|
debugPrint, getDataType, isBuiltInType, isMultiple, iso19103AssumedBuiltInType
public boolean current
public GregorianCalendar dateTime
public void debugPrintContent(PrintWriter stream)
This is for generating debug output out of OclNodes.
debugPrintContent
in class OclNode
stream
- PrintWriter onto which the debug output is to be directed.public String asString()
asString
in class OclNode.LiteralExp
Copyright © 2018. All rights reserved.