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<de.fraunhofer.aisec.cpg.graph.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.StorageNested classes/interfaces inherited from class de.fraunhofer.aisec.cpg.graph.Node
de.fraunhofer.aisec.cpg.graph.Node.Companion -
Field Summary
Fields inherited from class de.fraunhofer.aisec.cpg.graph.types.Type
origin, primitive, qualifier, storage, superTypes, UNKNOWN_TYPE_STRINGFields inherited from class de.fraunhofer.aisec.cpg.graph.Node
Companion, EMPTY_NAME, TO_STRING_STYLE -
Method Summary
Modifier and Type Method Description Typedereference()Typeduplicate()booleanequals(java.lang.Object o)static @NonNull 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, setRootMethods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addAnnotations, addNextDFG, addNextEOG, addPrevDFG, addPrevEOG, addTypedef, clearNextEOG, disconnectFromGraph, getAnnotations, getArgumentIndex, getAstChildren, getCode, getComment, getFile, getId, getLocation, getName, getNextDFG, getNextEOG, getNextEOGEdges, getPrevDFG, getPrevEOG, getPrevEOGEdges, getTypedefs, isImplicit, isInferred, removeNextDFG, removePrevDFG, removePrevEOGEntry, setAnnotations, setArgumentIndex, setCode, setComment, setFile, setId, setImplicit, setInferred, setLocation, setName, setNextDFG, setNextEOG, setNextEOGEdges, setPrevDFG, setPrevEOG, setPrevEOGEdges, setTypedefsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.fraunhofer.aisec.cpg.processing.IVisitable
accept
-
Method Details
-
getUnknownType
Use this function to obtain an UnknownType or call the TypeParser with the typeString UNKNOWN- Returns:
- UnknownType instance
-
reference
-
dereference
- Specified by:
dereferencein classType- Returns:
- Same UnknownType,
-
duplicate
-
hashCode
public int hashCode() -
equals
public boolean equals(java.lang.Object o) -
toString
public java.lang.String toString() -
setStorage
- Overrides:
setStoragein classType
-
setQualifier
- Overrides:
setQualifierin classType
-
setTypeOrigin
- Overrides:
setTypeOriginin classType
-