Package de.monticore.values
Class MCValueError
java.lang.Object
de.monticore.values.MCValueError
- All Implemented Interfaces:
MCValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasError()Used to pass the value to native Java classes and similar, e.g., collections.asString()booleancheckEqualityOperator(MCValue other) basically implements==protected StringbooleanisError()Print the type of the MIValue in human-readable formPrint the value in human-readable form
-
Constructor Details
-
MCValueError
-
MCValueError
-
-
Method Details
-
isError
public boolean isError() -
asError
-
asNativeObject
Description copied from interface:MCValueUsed to pass the value to native Java classes and similar, e.g., collections.Note: not all values can have a native representation, as such, their native version is the MIValue itself.
- Specified by:
asNativeObjectin interfaceMCValue- Returns:
- The value as a Java native Object.
-
asString
-
checkEqualityOperator
Description copied from interface:MCValuebasically implements==- Specified by:
checkEqualityOperatorin interfaceMCValue- Parameters:
other- the value to check against this- Returns:
- whether they are considered equal
-
printType
Description copied from interface:MCValuePrint the type of the MIValue in human-readable form -
printValue
Description copied from interface:MCValuePrint the value in human-readable form- Specified by:
printValuein interfaceMCValue
-
getMessage
-