Class UnknownType
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.graph.types.Type
-
- de.fraunhofer.aisec.cpg.graph.types.UnknownType
-
- All Implemented Interfaces:
Persistable,IVisitable<Node>
public class UnknownType extends Type
UnknownType describe the case in which it is not possible for the CPG to determine which Type is used. E.g.: This occurs when the type is inferred by the compiler automatically when using keywords such as auto in cpp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.fraunhofer.aisec.cpg.graph.types.Type
Type.Origin, Type.Qualifier, Type.Storage
-
-
Field Summary
-
Fields inherited from class de.fraunhofer.aisec.cpg.graph.types.Type
origin, primitive, qualifier, storage, superTypes, UNKNOWN_TYPE_STRING
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Typedereference()Typeduplicate()booleanequals(java.lang.Object o)static UnknownTypegetUnknownType()Use this function to obtain an UnknownType or call the TypeParser with the typeString UNKNOWNinthashCode()Typereference(PointerType.PointerOrigin pointerOrigin)voidsetQualifier(Type.Qualifier qualifier)voidsetStorage(@NonNull Type.Storage storage)voidsetTypeOrigin(Type.Origin origin)java.lang.StringtoString()-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.types.Type
getQualifier, getReferenceDepth, getRoot, getStorage, getSuperTypes, getTypeName, getTypeOrigin, isFirstOrderType, isPrimitive, isSimilar, refreshNames, setAdditionalTypeKeywords, setRoot
-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addAnnotations, addNextCFG, addNextCFG, addNextDFG, addNextEOG, addPrevDFG, addPrevEOG, addTypedef, clearNextEOG, disconnectFromGraph, getAnnotations, getArgumentIndex, getCode, getFile, getId, getLocation, getName, getNextCFG, getNextDFG, getNextEOG, getNextEOGProperties, getNextEOGPropertyEdge, getPrevDFG, getPrevEOG, getPrevEOGProperties, getTypedefs, isDummy, isImplicit, removeNextDFG, removePrevDFG, removePrevEOGEntries, removePrevEOGEntry, setArgumentIndex, setCode, setComment, setDummy, setFile, setImplicit, setLocation, setName, setNextDFG, setNextEOG, setPrevDFG, setPrevEOG, setPrevEOGProperties, setTypedefs
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.fraunhofer.aisec.cpg.processing.IVisitable
accept
-
-
-
-
Method Detail
-
getUnknownType
public static UnknownType getUnknownType()
Use this function to obtain an UnknownType or call the TypeParser with the typeString UNKNOWN- Returns:
- UnknownType instance
-
reference
public Type reference(PointerType.PointerOrigin pointerOrigin)
-
dereference
public Type dereference()
- Specified by:
dereferencein classType- Returns:
- Same UnknownType,
-
duplicate
public Type duplicate()
-
setStorage
public void setStorage(@NonNull Type.Storage storage)
- Overrides:
setStoragein classType
-
setQualifier
public void setQualifier(Type.Qualifier qualifier)
- Overrides:
setQualifierin classType
-
setTypeOrigin
public void setTypeOrigin(Type.Origin origin)
- Overrides:
setTypeOriginin classType
-
-