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,RealandStringbut 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 classModelicaBuiltinType.BaseType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelicaBuiltinType.BaseTypegetBaseType()StringgetDescriptiveName()Returns some name to be shown to user in violation description.StringgetFullTypeName()Returns the fully-qualified name, when appropriate, or simple name for primitive types.StringgetSimpleTypeName()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:ModelicaTypeReturns short name of a type, such as "Real" or "Filter".- Specified by:
getSimpleTypeNamein interfaceModelicaType
-
getFullTypeName
public String getFullTypeName()
Description copied from interface:ModelicaTypeReturns the fully-qualified name, when appropriate, or simple name for primitive types.- Specified by:
getFullTypeNamein interfaceModelicaType
-
getDescriptiveName
public String getDescriptiveName()
Description copied from interface:ResolvableEntityReturns some name to be shown to user in violation description.- Specified by:
getDescriptiveNamein interfaceResolvableEntity
-
-