Package de.monticore.types.check
Class SymTypeOfObject
java.lang.Object
de.monticore.types.check.SymTypeExpression
de.monticore.types.check.SymTypeOfObject
- All Implemented Interfaces:
Comparable<SymTypeExpression>
An objectType is a full qualified class name.
Therefore, we have the fullName, the baseName and the
Symbol behind that full qualified class name to retrieve
-
Field Summary
FieldsFields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo -
Constructor Summary
ConstructorsConstructorDescriptionSymTypeOfObject(TypeSymbol typeSymbol) Constructor: with a TypeSymbolSurrogate that contains the name and enclosingScope -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ISymTypeVisitor visitor) booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.questionable name: getter and setter do different things.Returns an TypeSymbol representing the type Only to be called according toSymTypeExpression.hasTypeInfo()booleanWhether we can call getTypeInfobooleanAm I an object type? (e.g.voidsetObjName(String objname) Deprecated, for removal: This API element is subject to removal in a future version.unused in main projectsMethods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asArrayType, asFunctionType, asGenericType, asInferenceVariable, asIntersectionType, asNullType, asNumericWithSIUnitType, asObscureType, asPrimitive, asRegExType, asSIUnitType, asTupleType, asTypeVariable, asUnionType, asVoidType, asWildcard, compareTo, deepClone, getCorrectFields, getCorrectFields, getCorrectMethods, getCorrectMethods, getFieldList, getFieldList, getFieldList, getFieldList, getMethodList, getMethodList, getMethodList, getMethodList, getSourceInfo, isArrayType, isFunctionType, isGenericType, isInferenceVariable, isIntersectionType, isNullType, isNumericWithSIUnitType, isObscureType, isPrimitive, isRegExType, isSIUnitType, isTupleType, isTypeVariable, isUnionType, isValidType, isVoidType, isWildcard, print, printAsJson, printFullName, replaceTypeVariables, transformFieldList, transformMethodList
-
Field Details
-
typeSymbol
-
-
Constructor Details
-
SymTypeOfObject
Constructor: with a TypeSymbolSurrogate that contains the name and enclosingScope
-
-
Method Details
-
hasTypeInfo
public boolean hasTypeInfo()Description copied from class:SymTypeExpressionWhether we can call getTypeInfo- Overrides:
hasTypeInfoin classSymTypeExpression
-
getTypeInfo
Description copied from class:SymTypeExpressionReturns an TypeSymbol representing the type Only to be called according toSymTypeExpression.hasTypeInfo()As most SymTypeExpressions do not have a TypeSymbol (this is legacy), this method will log a warning and is expected to be overridden, if a TypeSymbol exists.
- Overrides:
getTypeInfoin classSymTypeExpression
-
getObjName
Deprecated, for removal: This API element is subject to removal in a future version.questionable name: getter and setter do different things. one may add a getObjFullName() or similar if required also, seems unused in our main projects -
setObjName
Deprecated, for removal: This API element is subject to removal in a future version.unused in main projects -
getBaseName
Deprecated, for removal: This API element is subject to removal in a future version.unused outside of tests, but not required for tests useNamesinstead, orgetTypeInfo().getName()getBaseName: get the unqualified Name (no ., no Package) -
isObjectType
public boolean isObjectType()Description copied from class:SymTypeExpressionAm I an object type? (e.g. "String", "Person")- Overrides:
isObjectTypein classSymTypeExpression
-
asObjectType
- Overrides:
asObjectTypein classSymTypeExpression
-
deepEquals
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
- Overrides:
acceptin classSymTypeExpression
-
Namesinstead, orgetTypeInfo().getName()