io.shiftleft.semanticcpg.language.types.structure
TypeDeclTraversal
Companion object TypeDeclTraversal
final class TypeDeclTraversal extends AnyVal
Type declaration - possibly a template that requires instantiation
- Alphabetic
- By Inheritance
- TypeDeclTraversal
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TypeDeclTraversal(traversal: Traversal[TypeDecl])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def aliasTypeDecl: Traversal[TypeDecl]
Direct alias type declarations.
- def aliasTypeDeclTransitive: Traversal[TypeDecl]
Direct and transitive alias type declarations.
- def annotation: Traversal[Annotation]
Annotations of the type declaration
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def baseType: Traversal[Type]
Direct base types in the inheritance graph.
- def baseTypeDecl: Traversal[TypeDecl]
Direct base type declaration.
- def baseTypeDeclTransitive: Traversal[TypeDecl]
Direct and transitive base type declaration.
- def canonicalType: Traversal[TypeDecl]
Traverse to canonical type which means unravel aliases until we find a non alias type declaration.
- def derivedTypeDecl: Traversal[TypeDecl]
Direct base type declaration.
- def derivedTypeDeclTransitive: Traversal[TypeDecl]
Direct and transitive base type declaration.
- def external: Traversal[TypeDecl]
Filter for type declarations not contained in the analyzed code.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def internal: Traversal[TypeDecl]
Filter for type declarations contained in the analyzed code.
- def isAlias: Traversal[TypeDecl]
Traverse to alias type declarations.
- def isCanonical: Traversal[TypeDecl]
Traverse to canonical type declarations.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def member: Traversal[Member]
Member variables
- def method: Traversal[Method]
Methods defined as part of this type
- def namespace: Traversal[Namespace]
Namespace in which this type declaration is defined
- def referencingType: Traversal[Type]
Types referencing to this type declaration.
- def toString(): String
- Definition Classes
- Any
- val traversal: Traversal[TypeDecl]
- def unravelAlias: Traversal[TypeDecl]
If this is an alias type declaration, go to its underlying type declaration else unchanged.