Research Article

An Approach to Semantic and Structural Features Learning for Software Defect Prediction

Table 1

The selected AST nodes.

IDNode typesAST node record

Method invocations and class instance creationsMethodInvocation, SuperMethodInvocation, MemberReference, SuperMemberReference
Declaration nodesPackageDeclaration, InterfaceDeclaration, ClassDeclaration, MethodDeclaration, ConstructorDeclaration, VariableDeclarator, CatchClauseParameter, FormalParameter , TryResource, ReferenceType, BasicType
Control flow nodesIfStatement, WhileStatement, DoStatementForStatement, AssertStatement, BreakStatementContinueStatement, ReturnStatement, ThrowStatement, SynchronizedStatement, TryStatement, SwitchStatementBlockStatement, StatementExpression, CatchClauseSwitchStatementCase, ForControl, EnhancedForControl