Class ModelicaBuiltinType
- java.lang.Object
-
- net.sourceforge.pmd.lang.modelica.resolver.ModelicaBuiltinType
-
- All Implemented Interfaces:
ModelicaType
,ResolvableEntity
public class ModelicaBuiltinType extends Object implements ModelicaType
Built-in Modelica types. There are only four basic variants:Boolean
,Integer
,Real
andString
but they can have modifications applied (such as min/max values), so do not introduce them as singletones for extendability in the future.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelicaBuiltinType.BaseType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelicaBuiltinType.BaseType
getBaseType()
String
getDescriptiveName()
Returns some name to be shown to user in violation description.String
getFullTypeName()
Returns the fully-qualified name, when appropriate, or simple name for primitive types.String
getSimpleTypeName()
Returns short name of a type, such as "Real" or "Filter".
-
-
-
Method Detail
-
getBaseType
public ModelicaBuiltinType.BaseType getBaseType()
-
getSimpleTypeName
public String getSimpleTypeName()
Description copied from interface:ModelicaType
Returns short name of a type, such as "Real" or "Filter".- Specified by:
getSimpleTypeName
in interfaceModelicaType
-
getFullTypeName
public String getFullTypeName()
Description copied from interface:ModelicaType
Returns the fully-qualified name, when appropriate, or simple name for primitive types.- Specified by:
getFullTypeName
in interfaceModelicaType
-
getDescriptiveName
public String getDescriptiveName()
Description copied from interface:ResolvableEntity
Returns some name to be shown to user in violation description.- Specified by:
getDescriptiveName
in interfaceResolvableEntity
-
-