| java.lang.Object org.acm.seguin.summary.LineCountVisitor org.acm.seguin.summary.SummaryLoadVisitor
SummaryLoadVisitor | public class SummaryLoadVisitor extends LineCountVisitor (Code) | | This object visits an abstract syntax tree with the purpose of gathering
summary information.
author: Chris Seguin author: Mike Atkinson |
Method Summary | |
protected void | addAccess(MethodSummary parent, ASTName name, boolean isMessageSend) | protected void | forInit(ASTLocalVariableDeclaration node, Object data) | void | loadInitializer(TypeSummary current, SummaryLoaderState state, SimpleNode body, boolean isStatic) | public Object | visit(ASTEnumDeclaration node, Object data) | public Object | visit(ASTPackageDeclaration node, Object data) | public Object | visit(ASTImportDeclaration node, Object data) | public Object | visit(ASTTypeDeclaration node, Object data) | public Object | visit(ASTClassDeclaration node, Object data) | public Object | visit(ASTUnmodifiedClassDeclaration node, Object data) | public Object | visit(ASTClassBody node, Object data) | public Object | visit(ASTNestedClassDeclaration node, Object data) | public Object | visit(ASTInterfaceDeclaration node, Object data) | public Object | visit(ASTNestedInterfaceDeclaration node, Object data) | public Object | visit(ASTUnmodifiedInterfaceDeclaration node, Object data) | public Object | visit(ASTInterfaceBody node, Object data) | public Object | visit(ASTFieldDeclaration node, Object data) | public Object | visit(ASTMethodDeclaration node, Object data) | public Object | visit(ASTFormalParameter node, Object data) | public Object | visit(ASTConstructorDeclaration node, Object data) | public Object | visit(ASTInitializer node, Object data) | public Object | visit(ASTType node, Object data) | public Object | visit(ASTReferenceType node, Object data) | public Object | visit(ASTResultType node, Object data) | public Object | visit(ASTClassOrInterfaceType node, Object data) | public Object | visit(ASTName node, Object data) | public Object | visit(ASTNameList node, Object data) | public Object | visit(ASTGenericNameList node, Object data) | public Object | visit(ASTPrimaryExpression node, Object data) | public Object | visit(ASTAllocationExpression node, Object data) | public Object | visit(ASTStatement node, Object data) | public Object | visit(ASTExplicitConstructorInvocation node, Object data) | public Object | visit(ASTLocalVariableDeclaration node, Object data) | public Object | visit(ASTBlock node, Object data) Visits a block in the parse tree. | public Object | visit(ASTSwitchStatement node, Object data) A switch statement counts as a block, even though it does not use the
block parse token. |
addAccess | protected void addAccess(MethodSummary parent, ASTName name, boolean isMessageSend)(Code) | | Adds an access to the method
Parameters: parent - the parent Parameters: name - the name Parameters: isMessageSend - is this a message send |
forInit | protected void forInit(ASTLocalVariableDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter |
loadInitializer | void loadInitializer(TypeSummary current, SummaryLoaderState state, SimpleNode body, boolean isStatic)(Code) | | Description of the Method
Parameters: current - Description of Parameter Parameters: state - Description of Parameter Parameters: body - Description of Parameter Parameters: isStatic - Description of Parameter |
visit | public Object visit(ASTEnumDeclaration node, Object data)(Code) | | Visits an enum declaration
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTPackageDeclaration node, Object data)(Code) | | Visits a package declaration
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTImportDeclaration node, Object data)(Code) | | Visits an import statement
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTTypeDeclaration node, Object data)(Code) | | Visits a type declaration
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTClassDeclaration node, Object data)(Code) | | Visits a class declaration
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTClassBody node, Object data)(Code) | | Visit the items in the class body
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTNestedClassDeclaration node, Object data)(Code) | | Visit a class that is nested in another class
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTInterfaceDeclaration node, Object data)(Code) | | Visit an interface declaration
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTInterfaceBody node, Object data)(Code) | | Visit the body of an interface
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTFieldDeclaration node, Object data)(Code) | | Visit a field declaration
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTFormalParameter node, Object data)(Code) | | Visit a formal parameter
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTInitializer node, Object data)(Code) | | Visit an initializer
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTType node, Object data)(Code) | | Visit a type
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTReferenceType node, Object data)(Code) | | Visit a type
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTResultType node, Object data)(Code) | | Visit a return type
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTName node, Object data)(Code) | | Visit a name
// FIXME? is this required?
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTNameList node, Object data)(Code) | | Visit a list of names
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTGenericNameList node, Object data)(Code) | | Visit a list of names
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTPrimaryExpression node, Object data)(Code) | | Visit an expression
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTStatement node, Object data)(Code) | | Visit a statement
Parameters: node - the node we are visiting Parameters: data - the state we are in nothing of interest |
visit | public Object visit(ASTExplicitConstructorInvocation node, Object data)(Code) | | Explicit constructor invocation gets one statement count
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTBlock node, Object data)(Code) | | Visits a block in the parse tree. This code counts the block depth
associated with a method. Deeply nested blocks in a method is a sign of
poor design.
Parameters: node - the block node Parameters: data - the information that is used to traverse the tree data is returned |
visit | public Object visit(ASTSwitchStatement node, Object data)(Code) | | A switch statement counts as a block, even though it does not use the
block parse token.
Parameters: node - the switch node in the parse tree Parameters: data - the data used to visit this parse tree the data |
Methods inherited from org.acm.seguin.summary.LineCountVisitor | protected Object binaryExpression(SimpleNode node, String name, Object data)(Code)(Java Doc) protected Object binaryExpression2(SimpleNode node, Enumeration names, Object data)(Code)(Java Doc) protected void countLines(Token token)(Code)(Java Doc) protected void forInit(ASTLocalVariableDeclaration node, Object data)(Code)(Java Doc) protected void forceBlock(Node node, Object data)(Code)(Java Doc) protected Token getInitialToken(ASTResultType top)(Code)(Java Doc) protected Token getInitialToken(ASTTypeParameters top)(Code)(Java Doc) protected int getLineCount()(Code)(Java Doc) public Object visit(SimpleNode node, Object data)(Code)(Java Doc) public Object visit(ASTJSPBody node, Object data)(Code)(Java Doc) public Object visit(ASTTypeParameterList node, Object data)(Code)(Java Doc) public Object visit(ASTTypeParameter node, Object data)(Code)(Java Doc) public Object visit(ASTTypeArguments node, Object data)(Code)(Java Doc) public Object visit(ASTReferenceTypeList node, Object data)(Code)(Java Doc) public Object visit(ASTReferenceType node, Object data)(Code)(Java Doc) public Object visit(ASTClassOrInterfaceType node, Object data)(Code)(Java Doc) public Object visit(ASTActualTypeArgument node, Object data)(Code)(Java Doc) public Object visit(ASTTypeParameters node, Object data)(Code)(Java Doc) public Object visit(ASTGenericNameList node, Object data)(Code)(Java Doc) public Object visit(ASTEnumDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTEnumElement node, Object data)(Code)(Java Doc) public Object visit(ASTIdentifier node, Object data)(Code)(Java Doc) public Object visit(ASTAnnotationTypeDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTAnnotationTypeMemberDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTAnnotationMethodDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTConstantDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTAnnotation node, Object data)(Code)(Java Doc) public Object visit(ASTMemberValuePairs node, Object data)(Code)(Java Doc) public Object visit(ASTMemberValuePair node, Object data)(Code)(Java Doc) public Object visit(ASTMemberValue node, Object data)(Code)(Java Doc) public Object visit(ASTMemberValueArrayInitializer node, Object data)(Code)(Java Doc) public Object visit(ASTCompilationUnit node, Object data)(Code)(Java Doc) public Object visit(ASTPackageDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTImportDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTTypeDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTClassDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTUnmodifiedClassDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTClassBody node, Object data)(Code)(Java Doc) public Object visit(ASTNestedClassDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTClassBodyDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTInterfaceDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTNestedInterfaceDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTUnmodifiedInterfaceDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTInterfaceBody node, Object data)(Code)(Java Doc) public Object visit(ASTInterfaceMemberDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTFieldDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTVariableDeclarator node, Object data)(Code)(Java Doc) public Object visit(ASTVariableDeclaratorId node, Object data)(Code)(Java Doc) public Object visit(ASTVariableInitializer node, Object data)(Code)(Java Doc) public Object visit(ASTArrayInitializer node, Object data)(Code)(Java Doc) public Object visit(ASTMethodDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTMethodDeclarator node, Object data)(Code)(Java Doc) public Object visit(ASTFormalParameters node, Object data)(Code)(Java Doc) public Object visit(ASTFormalParameter node, Object data)(Code)(Java Doc) public Object visit(ASTConstructorDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTExplicitConstructorInvocation node, Object data)(Code)(Java Doc) public Object visit(ASTInitializer node, Object data)(Code)(Java Doc) public Object visit(ASTType node, Object data)(Code)(Java Doc) public Object visit(ASTPrimitiveType node, Object data)(Code)(Java Doc) public Object visit(ASTResultType node, Object data)(Code)(Java Doc) public Object visit(ASTName node, Object data)(Code)(Java Doc) public Object visit(ASTNameList node, Object data)(Code)(Java Doc) public Object visit(ASTExpression node, Object data)(Code)(Java Doc) public Object visit(ASTAssignmentOperator node, Object data)(Code)(Java Doc) public Object visit(ASTConditionalExpression node, Object data)(Code)(Java Doc) public Object visit(ASTConditionalOrExpression node, Object data)(Code)(Java Doc) public Object visit(ASTConditionalAndExpression node, Object data)(Code)(Java Doc) public Object visit(ASTInclusiveOrExpression node, Object data)(Code)(Java Doc) public Object visit(ASTExclusiveOrExpression node, Object data)(Code)(Java Doc) public Object visit(ASTAndExpression node, Object data)(Code)(Java Doc) public Object visit(ASTEqualityExpression node, Object data)(Code)(Java Doc) public Object visit(ASTInstanceOfExpression node, Object data)(Code)(Java Doc) public Object visit(ASTRelationalExpression node, Object data)(Code)(Java Doc) public Object visit(ASTShiftExpression node, Object data)(Code)(Java Doc) public Object visit(ASTAdditiveExpression node, Object data)(Code)(Java Doc) public Object visit(ASTMultiplicativeExpression node, Object data)(Code)(Java Doc) public Object visit(ASTUnaryExpression node, Object data)(Code)(Java Doc) public Object visit(ASTPreIncrementExpression node, Object data)(Code)(Java Doc) public Object visit(ASTPreDecrementExpression node, Object data)(Code)(Java Doc) public Object visit(ASTUnaryExpressionNotPlusMinus node, Object data)(Code)(Java Doc) public Object visit(ASTPostfixExpression node, Object data)(Code)(Java Doc) public Object visit(ASTCastExpression node, Object data)(Code)(Java Doc) public Object visit(ASTPrimaryExpression node, Object data)(Code)(Java Doc) public Object visit(ASTPrimaryPrefix node, Object data)(Code)(Java Doc) public Object visit(ASTPrimarySuffix node, Object data)(Code)(Java Doc) public Object visit(ASTLiteral node, Object data)(Code)(Java Doc) public Object visit(ASTBooleanLiteral node, Object data)(Code)(Java Doc) public Object visit(ASTNullLiteral node, Object data)(Code)(Java Doc) public Object visit(ASTArguments node, Object data)(Code)(Java Doc) public Object visit(ASTArgumentList node, Object data)(Code)(Java Doc) public Object visit(ASTAllocationExpression node, Object data)(Code)(Java Doc) public Object visit(ASTArrayDimsAndInits node, Object data)(Code)(Java Doc) public Object visit(ASTStatement node, Object data)(Code)(Java Doc) public Object visit(ASTLabeledStatement node, Object data)(Code)(Java Doc) public Object visit(ASTBlock node, Object data)(Code)(Java Doc) public Object visit(ASTBlockStatement node, Object data)(Code)(Java Doc) public Object visit(ASTLocalVariableDeclaration node, Object data)(Code)(Java Doc) public Object visit(ASTEmptyStatement node, Object data)(Code)(Java Doc) public Object visit(ASTStatementExpression node, Object data)(Code)(Java Doc) public Object visit(ASTSwitchStatement node, Object data)(Code)(Java Doc) public Object visit(ASTSwitchLabel node, Object data)(Code)(Java Doc) public Object visit(ASTIfStatement node, Object data)(Code)(Java Doc) public Object visit(ASTWhileStatement node, Object data)(Code)(Java Doc) public Object visit(ASTDoStatement node, Object data)(Code)(Java Doc) public Object visit(ASTForStatement node, Object data)(Code)(Java Doc) public Object visit(ASTForInit node, Object data)(Code)(Java Doc) public Object visit(ASTStatementExpressionList node, Object data)(Code)(Java Doc) public Object visit(ASTForUpdate node, Object data)(Code)(Java Doc) public Object visit(ASTBreakStatement node, Object data)(Code)(Java Doc) public Object visit(ASTContinueStatement node, Object data)(Code)(Java Doc) public Object visit(ASTReturnStatement node, Object data)(Code)(Java Doc) public Object visit(ASTThrowStatement node, Object data)(Code)(Java Doc) public Object visit(ASTSynchronizedStatement node, Object data)(Code)(Java Doc) public Object visit(ASTTryStatement node, Object data)(Code)(Java Doc) public Object visit(ASTAssertionStatement node, Object data)(Code)(Java Doc)
|
|
|