Packages

class AstCreator extends AstCreatorBase with AstForTypesCreator with AstForFunctionsCreator with AstForPrimitivesCreator with AstForStatementsCreator with AstForExpressionsCreator with AstNodeBuilder with AstCreatorHelper with MacroHandler

Translates the Eclipse CDT AST into a CPG AST.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AstCreator
  2. MacroHandler
  3. AstCreatorHelper
  4. AstNodeBuilder
  5. AstForExpressionsCreator
  6. AstForStatementsCreator
  7. AstForPrimitivesCreator
  8. AstForFunctionsCreator
  9. AstForTypesCreator
  10. AstCreatorBase
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AstCreator(filename: String, config: Config, global: CGlobal, cdtAst: IASTTranslationUnit)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def absolutePath(filename: String): String
    Definition Classes
    AstCreatorBase
  5. def asChildOfMacroCall(node: IASTNode, ast: Ast, order: Int): Ast

    For the given node, determine if it is expanded from a macro, and if so, create a Call node to represent the macro invocation and attach ast as its child.

    For the given node, determine if it is expanded from a macro, and if so, create a Call node to represent the macro invocation and attach ast as its child.

    Definition Classes
    MacroHandler
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def astForASMDeclaration(asm: IASTASMDeclaration, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForTypesCreator
  8. def astForAliasDeclaration(aliasDeclaration: ICPPASTAliasDeclaration, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForTypesCreator
  9. def astForBlockStatement(blockStmt: IASTCompoundStatement, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForStatementsCreator
  10. def astForComment(comment: IASTComment): Ast
    Attributes
    protected
    Definition Classes
    AstForPrimitivesCreator
  11. def astForDeclarator(declaration: IASTSimpleDeclaration, declarator: IASTDeclarator, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForTypesCreator
  12. def astForExpression(expression: IASTExpression, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForExpressionsCreator
  13. def astForFakeStaticInitMethod(name: String, lineNumber: Option[Integer], astParentType: String, astParentFullName: String, order: Int, childrenAsts: Seq[Ast]): Ast
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  14. def astForFieldReference(fieldRef: IASTFieldReference, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForPrimitivesCreator
  15. def astForFunctionDeclarator(funcDecl: IASTFunctionDeclarator, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForFunctionsCreator
  16. def astForFunctionDefinition(funcDef: IASTFunctionDefinition, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForFunctionsCreator
  17. def astForIdentifier(ident: IASTNode, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForPrimitivesCreator
  18. def astForInitializer(declarator: IASTDeclarator, init: IASTInitializer, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForTypesCreator
  19. def astForInitializerList(l: IASTInitializerList, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForPrimitivesCreator
  20. def astForLiteral(lit: IASTLiteralExpression, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForPrimitivesCreator
  21. def astForMethodRefForLambda(lambdaExpression: ICPPASTLambdaExpression): Ast
    Attributes
    protected
    Definition Classes
    AstForFunctionsCreator
  22. def astForNamespaceAlias(namespaceAlias: ICPPASTNamespaceAlias, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForTypesCreator
  23. def astForNode(node: IASTNode, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  24. def astForQualifiedName(qualId: CPPASTQualifiedName, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForPrimitivesCreator
  25. def astForStaticAssert(a: ICPPASTStaticAssertDeclaration, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstForExpressionsCreator
  26. def astsForDeclaration(decl: IASTDeclaration, order: Int): Seq[Ast]
    Attributes
    protected
    Definition Classes
    AstForTypesCreator
  27. def astsForStatement(statement: IASTStatement, order: Int): Seq[Ast]
    Attributes
    protected
    Definition Classes
    AstForStatementsCreator
  28. val cdtAst: IASTTranslationUnit
  29. def cleanType(rawType: String): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  30. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  31. def column(node: IASTNode): Option[Integer]
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  32. def columnEnd(node: IASTNode): Option[Integer]
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  33. val config: Config
  34. def createAst(): DiffGraphBuilder
    Definition Classes
    AstCreator → AstCreatorBase
  35. val diffGraph: DiffGraphBuilder
    Definition Classes
    AstCreatorBase
  36. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  38. def expandedFromMacro(node: IASTNode): Option[IASTMacroExpansionLocation]
    Definition Classes
    MacroHandler
  39. def fileName(node: IASTNode): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  40. val filename: String
  41. def fixQualifiedName(name: String): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  42. def fullName(node: IASTNode): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  43. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. val global: CGlobal
  45. def globalNamespaceBlock(): NewNamespaceBlock
    Definition Classes
    AstCreatorBase
  46. def handleUsingDeclaration(usingDecl: ICPPASTUsingDeclaration): Seq[Ast]
    Attributes
    protected
    Definition Classes
    AstForTypesCreator
  47. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  48. def isExpandedFromMacro(node: IASTNode): Boolean
    Definition Classes
    MacroHandler
  49. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  50. def isQualifiedName(name: String): Boolean
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  51. def lastNameOfQualifiedName(name: String): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  52. def line(node: IASTNode): Option[Integer]
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  53. def lineEnd(node: IASTNode): Option[Integer]
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  54. val logger: Logger
    Attributes
    protected
  55. def methodAst(method: NewMethod, parameters: Seq[NewMethodParameterIn], body: Ast, methodReturn: NewMethodReturn): Ast
    Definition Classes
    AstCreatorBase
  56. val methodAstParentStack: Stack[NewNode]
    Attributes
    protected
  57. def methodReturnNode(line: Option[Integer], column: Option[Integer], order: Int, tpe: String): NewMethodReturn
    Definition Classes
    AstCreatorBase
  58. def methodStubAst(method: NewMethod, parameters: Seq[NewMethodParameterIn], methodReturn: NewMethodReturn): Ast
    Definition Classes
    AstCreatorBase
  59. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  60. def newCallNode(node: IASTNode, name: String, fullname: String, dispatchType: String, order: Int): NewCall
    Attributes
    protected
    Definition Classes
    AstNodeBuilder
  61. def newControlStructureNode(node: IASTNode, controlStructureType: String, code: String, order: Int): NewControlStructure
    Attributes
    protected
    Definition Classes
    AstNodeBuilder
  62. def newJumpTarget(node: IASTNode, order: Int): NewJumpTarget
    Attributes
    protected
    Definition Classes
    AstNodeBuilder
  63. def newMethodRefNode(code: String, methodFullName: String, typeFullName: String, node: IASTNode): NewMethodRef
    Attributes
    protected
    Definition Classes
    AstNodeBuilder
  64. def newTypeDecl(name: String, fullname: String, filename: String, code: String, astParentType: String = "", astParentFullName: String = "", order: Int = -1, inherits: Seq[String] = Seq.empty, alias: Option[String] = None, line: Option[Integer] = None, column: Option[Integer] = None): NewTypeDecl
    Attributes
    protected
    Definition Classes
    AstNodeBuilder
  65. def newUnknown(node: IASTNode, order: Int): NewUnknown
    Attributes
    protected
    Definition Classes
    AstNodeBuilder
  66. def nodeSignature(node: IASTNode): String

    The CDT utility method is unfortunately in a class that is marked as deprecated, however, this is because the CDT team would like to discourage its use but at the same time does not plan to remove this code.

    The CDT utility method is unfortunately in a class that is marked as deprecated, however, this is because the CDT team would like to discourage its use but at the same time does not plan to remove this code.

    Definition Classes
    MacroHandler
    Annotations
    @nowarn()
  67. def notHandledYet(node: IASTNode, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  68. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  69. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  70. def nullSafeAst(node: IASTStatement, order: Int): Seq[Ast]
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  71. def nullSafeAst(node: IASTExpression, order: Int): Ast
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  72. def nullSafeCode(node: IASTNode): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  73. def registerType(typeName: String): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  74. val scope: Scope[String, (NewNode, String), NewNode]
    Attributes
    protected
  75. def shortName(node: IASTNode): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  76. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  77. def templateParameters(e: IASTNode): Option[String]
    Attributes
    protected
    Definition Classes
    AstForTypesCreator
  78. def toString(): String
    Definition Classes
    AnyRef → Any
  79. def typeFor(node: IASTNode): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
    Annotations
    @nowarn()
  80. def typeForDeclSpecifier(spec: IASTNode): String
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  81. def uniqueName(target: String, name: String, fullName: String): (String, String)
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  82. val usingDeclarationMappings: Map[String, String]
    Attributes
    protected
  83. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  84. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  85. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  86. def withOrder[T <: IASTNode, X](nodes: Array[T])(f: (T, Int) => X): Seq[X]
    Attributes
    protected
    Definition Classes
    AstCreatorHelper
  87. def withOrder[T <: IASTNode, X](nodes: Seq[T])(f: (T, Int) => X): Seq[X]
    Attributes
    protected
    Definition Classes
    AstCreatorHelper

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from MacroHandler

Inherited from AstCreatorHelper

Inherited from AstNodeBuilder

Inherited from AstForFunctionsCreator

Inherited from AstForTypesCreator

Inherited from AstCreatorBase

Inherited from AnyRef

Inherited from Any

Ungrouped