| java.lang.Object org.acm.seguin.summary.LineCountVisitor
All known Subclasses: org.acm.seguin.summary.SummaryLoadVisitor,
LineCountVisitor | public class LineCountVisitor implements JavaParserVisitor(Code) | | This object counts the lines and labels them with specific data
author: Chris Seguin author: Mike Atkinson |
Method Summary | |
protected Object | binaryExpression(SimpleNode node, String name, Object data) | protected Object | binaryExpression2(SimpleNode node, Enumeration names, Object data) | protected void | countLines(Token token) | protected void | forInit(ASTLocalVariableDeclaration node, Object data) | protected void | forceBlock(Node node, Object data) This code is based on the pretty printer, and was used to force the
source code to have a block for an if statement. | protected Token | getInitialToken(ASTResultType top) Check the initial token, and removes it from the object. | protected Token | getInitialToken(ASTTypeParameters top) Check the initial token, and removes it from the object. | protected int | getLineCount() | public Object | visit(SimpleNode node, Object data) | public Object | visit(ASTJSPBody node, Object data) | public Object | visit(ASTTypeParameterList node, Object data) | public Object | visit(ASTTypeParameter node, Object data) | public Object | visit(ASTTypeArguments node, Object data) | public Object | visit(ASTReferenceTypeList node, Object data) | public Object | visit(ASTReferenceType node, Object data) | public Object | visit(ASTClassOrInterfaceType node, Object data) | public Object | visit(ASTActualTypeArgument node, Object data) | public Object | visit(ASTTypeParameters node, Object data) | public Object | visit(ASTGenericNameList node, Object data) | public Object | visit(ASTEnumDeclaration node, Object data) | public Object | visit(ASTEnumElement node, Object data) | public Object | visit(ASTIdentifier node, Object data) | public Object | visit(ASTAnnotationTypeDeclaration node, Object data) | public Object | visit(ASTAnnotationTypeMemberDeclaration node, Object data) | public Object | visit(ASTAnnotationMethodDeclaration node, Object data) | public Object | visit(ASTConstantDeclaration node, Object data) | public Object | visit(ASTAnnotation node, Object data) | public Object | visit(ASTMemberValuePairs node, Object data) | public Object | visit(ASTMemberValuePair node, Object data) | public Object | visit(ASTMemberValue node, Object data) | public Object | visit(ASTMemberValueArrayInitializer node, Object data) | public Object | visit(ASTCompilationUnit 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(ASTClassBodyDeclaration 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(ASTInterfaceMemberDeclaration node, Object data) | public Object | visit(ASTFieldDeclaration node, Object data) | public Object | visit(ASTVariableDeclarator node, Object data) | public Object | visit(ASTVariableDeclaratorId node, Object data) | public Object | visit(ASTVariableInitializer node, Object data) | public Object | visit(ASTArrayInitializer node, Object data) | public Object | visit(ASTMethodDeclaration node, Object data) | public Object | visit(ASTMethodDeclarator node, Object data) | public Object | visit(ASTFormalParameters node, Object data) | public Object | visit(ASTFormalParameter node, Object data) | public Object | visit(ASTConstructorDeclaration node, Object data) | public Object | visit(ASTExplicitConstructorInvocation node, Object data) | public Object | visit(ASTInitializer node, Object data) | public Object | visit(ASTType node, Object data) | public Object | visit(ASTPrimitiveType node, Object data) | public Object | visit(ASTResultType node, Object data) | public Object | visit(ASTName node, Object data) | public Object | visit(ASTNameList node, Object data) | public Object | visit(ASTExpression node, Object data) | public Object | visit(ASTAssignmentOperator node, Object data) | public Object | visit(ASTConditionalExpression node, Object data) | public Object | visit(ASTConditionalOrExpression node, Object data) | public Object | visit(ASTConditionalAndExpression node, Object data) | public Object | visit(ASTInclusiveOrExpression node, Object data) | public Object | visit(ASTExclusiveOrExpression node, Object data) | public Object | visit(ASTAndExpression node, Object data) | public Object | visit(ASTEqualityExpression node, Object data) | public Object | visit(ASTInstanceOfExpression node, Object data) | public Object | visit(ASTRelationalExpression node, Object data) | public Object | visit(ASTShiftExpression node, Object data) | public Object | visit(ASTAdditiveExpression node, Object data) | public Object | visit(ASTMultiplicativeExpression node, Object data) | public Object | visit(ASTUnaryExpression node, Object data) | public Object | visit(ASTPreIncrementExpression node, Object data) | public Object | visit(ASTPreDecrementExpression node, Object data) | public Object | visit(ASTUnaryExpressionNotPlusMinus node, Object data) | public Object | visit(ASTPostfixExpression node, Object data) | public Object | visit(ASTCastExpression node, Object data) | public Object | visit(ASTPrimaryExpression node, Object data) | public Object | visit(ASTPrimaryPrefix node, Object data) | public Object | visit(ASTPrimarySuffix node, Object data) | public Object | visit(ASTLiteral node, Object data) | public Object | visit(ASTBooleanLiteral node, Object data) | public Object | visit(ASTNullLiteral node, Object data) | public Object | visit(ASTArguments node, Object data) | public Object | visit(ASTArgumentList node, Object data) | public Object | visit(ASTAllocationExpression node, Object data) | public Object | visit(ASTArrayDimsAndInits node, Object data) | public Object | visit(ASTStatement node, Object data) | public Object | visit(ASTLabeledStatement node, Object data) | public Object | visit(ASTBlock node, Object data) | public Object | visit(ASTBlockStatement node, Object data) | public Object | visit(ASTLocalVariableDeclaration node, Object data) | public Object | visit(ASTEmptyStatement node, Object data) | public Object | visit(ASTStatementExpression node, Object data) | public Object | visit(ASTSwitchStatement node, Object data) | public Object | visit(ASTSwitchLabel node, Object data) | public Object | visit(ASTIfStatement node, Object data) | public Object | visit(ASTWhileStatement node, Object data) | public Object | visit(ASTDoStatement node, Object data) | public Object | visit(ASTForStatement node, Object data) | public Object | visit(ASTForInit node, Object data) | public Object | visit(ASTStatementExpressionList node, Object data) | public Object | visit(ASTForUpdate node, Object data) | public Object | visit(ASTBreakStatement node, Object data) | public Object | visit(ASTContinueStatement node, Object data) | public Object | visit(ASTReturnStatement node, Object data) | public Object | visit(ASTThrowStatement node, Object data) | public Object | visit(ASTSynchronizedStatement node, Object data) | public Object | visit(ASTTryStatement node, Object data) | public Object | visit(ASTAssertionStatement node, Object data) |
LineCountVisitor | public LineCountVisitor()(Code) | | Constructor for the LineCountVisitor object
|
binaryExpression | protected Object binaryExpression(SimpleNode node, String name, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: name - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
binaryExpression2 | protected Object binaryExpression2(SimpleNode node, Enumeration names, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: names - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
countLines | protected void countLines(Token token)(Code) | | Counts the number of lines in the current token
Parameters: token - the token |
forInit | protected void forInit(ASTLocalVariableDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter |
forceBlock | protected void forceBlock(Node node, Object data)(Code) | | This code is based on the pretty printer, and was used to force the
source code to have a block for an if statement.
Parameters: node - The node that should be contained inside a block Parameters: data - the print data |
getInitialToken | protected Token getInitialToken(ASTResultType top)(Code) | | Check the initial token, and removes it from the object.
Parameters: top - the result type the initial token |
getInitialToken | protected Token getInitialToken(ASTTypeParameters top)(Code) | | Check the initial token, and removes it from the object.
Parameters: top - the result type the initial token |
getLineCount | protected int getLineCount()(Code) | | Returns the current line count
the line count |
visit | public Object visit(SimpleNode node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTJSPBody node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTCompilationUnit node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTPackageDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTImportDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTTypeDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTClassDeclaration node, Object data)(Code) | | Visit a class declaration
Parameters: node - the class declaration Parameters: data - the print data the result of visiting this node |
visit | public Object visit(ASTClassBody node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTNestedClassDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTClassBodyDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTInterfaceDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTInterfaceBody node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTFieldDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTVariableDeclarator node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTVariableDeclaratorId node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTVariableInitializer node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTArrayInitializer node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTMethodDeclaration node, Object data)(Code) | | Pretty prints the method declaration
Parameters: node - the node in the parse tree Parameters: data - the print data the print data |
visit | public Object visit(ASTMethodDeclarator node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTFormalParameters node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTFormalParameter node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTConstructorDeclaration node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTInitializer node, Object data)(Code) | | Formats the initializer
Parameters: node - The initializer node Parameters: data - The print data Nothing interesting |
visit | public Object visit(ASTType node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTPrimitiveType node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTResultType node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTName node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTNameList node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTAssignmentOperator node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTConditionalExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTConditionalOrExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTInclusiveOrExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTExclusiveOrExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTAndExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTEqualityExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTInstanceOfExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTRelationalExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTShiftExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTAdditiveExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTUnaryExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTPreIncrementExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTPreDecrementExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTPostfixExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTCastExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTPrimaryExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTPrimaryPrefix node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTPrimarySuffix node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTLiteral node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTBooleanLiteral node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTNullLiteral node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTArguments node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTArgumentList node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTAllocationExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTArrayDimsAndInits node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTLabeledStatement node, Object data)(Code) | | Description of the Method
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
Parameters: node - the block node Parameters: data - the information that is used to traverse the tree data is returned |
visit | public Object visit(ASTBlockStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTEmptyStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTStatementExpression node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTSwitchStatement node, Object data)(Code) | | Counts the number of lines associated with a switch statement
Parameters: node - the switch node in the parse tree Parameters: data - the data used to visit this parse tree the data |
visit | public Object visit(ASTSwitchLabel node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTIfStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTWhileStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTDoStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTForStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTForInit node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTStatementExpressionList node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTForUpdate node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTBreakStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTContinueStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTReturnStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTThrowStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTSynchronizedStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTTryStatement node, Object data)(Code) | | Description of the Method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Description of the Returned Value |
visit | public Object visit(ASTAssertionStatement node, Object data)(Code) | | Visit the assertion node
Parameters: node - the node Parameters: data - the data needed to perform the visit the result of visiting the node |
|
|