com.g11ntoolkit.parser.java
Class LTTreeWalker

java.lang.Object
  |
  +--com.g11ntoolkit.parser.java.LTTreeWalker
All Implemented Interfaces:
JavaParserVisitor, LTParserVisitor
Direct Known Subclasses:
LTVisitor

public class LTTreeWalker
extends java.lang.Object
implements JavaParserVisitor, LTParserVisitor

Visit all the nodes in the Parse Tree.

Determines what to do for each node in the tree. Processing is intended to extract strings from ListResourceBundle files.

Version:
2005/07/07
Author:
Bill Rich, Wilandra Consulting LLC
Copyright © 2004-2005, Wilandra Consulting LLC. All rights reserved.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See License Agreement.


Field Summary
protected  int arrayLevel
          State variable to hold the level number of array initializers.
protected  java.lang.String contentsId
          State variable indicating the name of the contents section for the file.
protected  java.lang.String expression
          State variable used to collect an expression for further processing.
protected  boolean gcm
          State variable indicating that the getContents method has been found in the tree.
protected  boolean gotKey
          State variable indicating that the key for an entry has been identified.
protected  boolean gotValue
          State variable indicating that the value for an entry has been identified.
protected  boolean inContents
          State variable indicating that the contents section of the file has been located and is ready for processing.
protected  boolean inMethod
          State variable indicating that processing is within the bounds of a method.
protected  java.lang.String key
          State variable used to collect the key of an entry for further processing.
private static java.util.logging.Logger log
          The log used for all messages from this class.
protected  boolean needCN
          State variable indicating that the name of the contents section is still needed.
protected  boolean openForKVPair
          A switch to indicate when we are expecting a Key/Value pair.
protected  java.io.PrintStream out
          The output stream writer used for the normal print process.
protected  boolean ret
          State variable indicating that the return statement for the getContents method has been found.
protected  boolean retnew
          State variable indicating the possbility that the getContents method is returning a new Object array.
protected  boolean retobj
          State variable indicating that the getContents method is returning a new Object array.
protected  StrFile strfile
          The StrFile object to use for the extracted strings.
protected  java.util.Locale targetLocale
          The target locale to use for each extracted string.
protected  java.lang.String theContextFileName
          The file name to use for the context of each extracted string.
protected  Token token
          The Token object to use to generate tokens for each extracted string.
protected  TokFile tokfile
          The TokFile object to use for the source file skeleton.
protected  java.lang.String value
          State variable used to collect the value of an entry for further processing.
protected  int valueEndCol
          State variable used to save the ending column number for the value of an entry for further processing.
protected  int valueEndRow
          State variable used to save the ending line number for the value of an entry for further processing.
protected  int valueStartCol
          State variable used to save the starting column number for the value of an entry for further processing.
protected  int valueStartRow
          State variable used to save the starting line number for the value of an entry for further processing.
protected static java.util.ResourceBundle xliffrb
          Constants, messages, and variables used by the tools and classes for XLIFF processing.
 
Constructor Summary
LTTreeWalker()
          Constructor to set up the tree walker.
LTTreeWalker(java.io.PrintStream o)
          Constructor to set up to use the specified print stream for default output.
 
Method Summary
private  java.lang.String addUnicodeEscapes(java.lang.String str)
          Add unicode escapes to the specified string.
protected  void print(Token t)
          Print a com.g11ntoolkit.parser.java.Token for a node in the tree.
 java.lang.String removeConcat(java.lang.String s)
          Removes string concatenation where possible.
 void setContextFileName(java.lang.String tc)
          Sets the Context File Name to be used by the Tree Walker.
 void setStrFile(StrFile sf)
          Sets the StrFile to be used by the Tree Walker
 void setTargetLocale(java.util.Locale tl)
          Sets the target locale to be used by the Tree Walker.
 void setTokenObject(Token tk)
          Sets the com.g11ntoolkit.token.Token object to be used by the Tree Walker.
 void setTokFile(TokFile tf)
          Sets the TokFile to be used by the Tree Walker.
 java.lang.Object visit(LTAdditiveExpression node, java.lang.Object data)
          Process a LTAdditiveExpression node in the tree.
 java.lang.Object visit(LTAllocationExpression node, java.lang.Object data)
          Process a LTAllocationExpression node in the tree.
 java.lang.Object visit(LTAndExpression node, java.lang.Object data)
          Process a LTAndExpression node in the tree.
 java.lang.Object visit(LTArgumentList node, java.lang.Object data)
          Process a LTArgumentList node in the tree.
 java.lang.Object visit(LTArguments node, java.lang.Object data)
          Process a LTArguments node in the tree.
 java.lang.Object visit(LTArrayDimsAndInits node, java.lang.Object data)
          Process a LTArrayDimsAndInits node in the tree.
 java.lang.Object visit(LTArrayInitializer node, java.lang.Object data)
          Process a LTArrayInitializer node in the tree.
 java.lang.Object visit(LTAssertStatement node, java.lang.Object data)
          Process a LTAssertStatement node in the tree.
 java.lang.Object visit(LTAssignmentOperator node, java.lang.Object data)
          Process a LTAssignmentOperator node in the tree.
 java.lang.Object visit(LTBlock node, java.lang.Object data)
          Process a LTBlock node in the tree.
 java.lang.Object visit(LTBlockStatement node, java.lang.Object data)
          Process a LTBlockStatement node in the tree.
 java.lang.Object visit(LTBooleanLiteral node, java.lang.Object data)
          Process a LTBooleanLiteral node in the tree.
 java.lang.Object visit(LTBreakStatement node, java.lang.Object data)
          Process a LTBreakStatement node in the tree.
 java.lang.Object visit(LTCastExpression node, java.lang.Object data)
          Process a LTCastExpression node in the tree.
 java.lang.Object visit(LTCastLookahead node, java.lang.Object data)
          Process a LTCastLookahead node in the tree.
 java.lang.Object visit(LTClassBodyDeclaration node, java.lang.Object data)
          Process a LTClassBodyDeclaration node in the tree.
 java.lang.Object visit(LTClassBody node, java.lang.Object data)
          Process a LTClassBody node in the tree.
 java.lang.Object visit(LTClassDeclaration node, java.lang.Object data)
          Process a LTClassDeclaration node in the tree.
 java.lang.Object visit(LTCompilationUnit node, java.lang.Object data)
          Process a LTCompilationUnit node in the tree.
 java.lang.Object visit(LTConditionalAndExpression node, java.lang.Object data)
          Process a LTConditionalAndExpression node in the tree.
 java.lang.Object visit(LTConditionalExpression node, java.lang.Object data)
          Process a LTConditionalExpression node in the tree.
 java.lang.Object visit(LTConditionalOrExpression node, java.lang.Object data)
          Process a LTConditionalOrExpression node in the tree.
 java.lang.Object visit(LTConstructorDeclaration node, java.lang.Object data)
          Process a LTConstructorDeclaration node in the tree.
 java.lang.Object visit(LTContinueStatement node, java.lang.Object data)
          Process a LTContinueStatement node in the tree.
 java.lang.Object visit(LTDoStatement node, java.lang.Object data)
          Process a LTDoStatement node in the tree.
 java.lang.Object visit(LTEmptyStatement node, java.lang.Object data)
          Process a LTEmptyStatement node in the tree.
 java.lang.Object visit(LTEqualityExpression node, java.lang.Object data)
          Process a LTEqualityExpression node in the tree.
 java.lang.Object visit(LTExclusiveOrExpression node, java.lang.Object data)
          Process a LTExclusiveOrExpression node in the tree.
 java.lang.Object visit(LTExplicitConstructorInvocation node, java.lang.Object data)
          Process a LTExplicitConstructorInvocation node in the tree.
 java.lang.Object visit(LTExpression node, java.lang.Object data)
          Process a LTExpression node in the tree.
 java.lang.Object visit(LTFieldDeclaration node, java.lang.Object data)
          Process a LTFieldDeclaration node in the tree.
 java.lang.Object visit(LTForInit node, java.lang.Object data)
          Process a LTForInit node in the tree.
 java.lang.Object visit(LTFormalParameter node, java.lang.Object data)
          Process a LTFormalParameter node in the tree.
 java.lang.Object visit(LTFormalParameters node, java.lang.Object data)
          Process a LTFormalParameters node in the tree.
 java.lang.Object visit(LTForStatement node, java.lang.Object data)
          Process a LTForStatement node in the tree.
 java.lang.Object visit(LTForUpdate node, java.lang.Object data)
          Process a LTForUpdate node in the tree.
 java.lang.Object visit(LTIfStatement node, java.lang.Object data)
          Process a LTIfStatement node in the tree.
 java.lang.Object visit(LTImportDeclaration node, java.lang.Object data)
          Process a LTImportDeclaration node in the tree.
 java.lang.Object visit(LTInclusiveOrExpression node, java.lang.Object data)
          Process a LTInclusiveOrExpression node in the tree.
 java.lang.Object visit(LTInitializer node, java.lang.Object data)
          Process a LTInitializer node in the tree.
 java.lang.Object visit(LTInstanceOfExpression node, java.lang.Object data)
          Process a LTInstanceOfExpression node in the tree.
 java.lang.Object visit(LTInterfaceDeclaration node, java.lang.Object data)
          Process a LTInterfaceDeclaration node in the tree.
 java.lang.Object visit(LTInterfaceMemberDeclaration node, java.lang.Object data)
          Process a LTInterfaceMemberDeclaration node in the tree.
 java.lang.Object visit(LTLabeledStatement node, java.lang.Object data)
          Process a LTLabeledStatement node in the tree.
 java.lang.Object visit(LTLiteral node, java.lang.Object data)
          Process a LTLiteral node in the tree.
 java.lang.Object visit(LTLocalVariableDeclaration node, java.lang.Object data)
          Process a LTLocalVariableDeclaration node in the tree.
 java.lang.Object visit(LTMethodDeclarationLookahead node, java.lang.Object data)
          Process a LTMethodDeclarationLookahead node in the tree.
 java.lang.Object visit(LTMethodDeclaration node, java.lang.Object data)
          Process a LTMethodDeclaration node in the tree.
 java.lang.Object visit(LTMethodDeclarator node, java.lang.Object data)
          Process a LTMethodDeclarator node in the tree.
 java.lang.Object visit(LTMultiplicativeExpression node, java.lang.Object data)
          Process a LTMultiplicativeExpression node in the tree.
 java.lang.Object visit(LTNameList node, java.lang.Object data)
          Process a LTNameList node in the tree.
 java.lang.Object visit(LTName node, java.lang.Object data)
          Process a LTName node in the tree.
 java.lang.Object visit(LTNestedClassDeclaration node, java.lang.Object data)
          Process a LTNestedClassDeclaration node in the tree.
 java.lang.Object visit(LTNestedInterfaceDeclaration node, java.lang.Object data)
          Process a LTNestedInterfaceDeclaration node in the tree.
 java.lang.Object visit(LTNullLiteral node, java.lang.Object data)
          Process a LTNullLiteral node in the tree.
 java.lang.Object visit(LTPackageDeclaration node, java.lang.Object data)
          Process a LTPackageDeclaration node in the tree.
 java.lang.Object visit(LTPostfixExpression node, java.lang.Object data)
          Process a LTPostfixExpression node in the tree.
 java.lang.Object visit(LTPreDecrementExpression node, java.lang.Object data)
          Process a LTPreDecrementExpression node in the tree.
 java.lang.Object visit(LTPreIncrementExpression node, java.lang.Object data)
          Process a LTPreIncrementExpression node in the tree.
 java.lang.Object visit(LTPrimaryExpression node, java.lang.Object data)
          Process a LTPrimaryExpression node in the tree.
 java.lang.Object visit(LTPrimaryPrefix node, java.lang.Object data)
          Process a LTPrimaryPrefix node in the tree.
 java.lang.Object visit(LTPrimarySuffix node, java.lang.Object data)
          Process a LTPrimarySuffix node in the tree.
 java.lang.Object visit(LTPrimitiveType node, java.lang.Object data)
          Process a LTPrimitiveType node in the tree.
 java.lang.Object visit(LTRelationalExpression node, java.lang.Object data)
          Process a LTRelationalExpression node in the tree.
 java.lang.Object visit(LTResultType node, java.lang.Object data)
          Process a LTResultType node in the tree.
 java.lang.Object visit(LTReturnStatement node, java.lang.Object data)
          Process a LTReturnStatement node in the tree.
 java.lang.Object visit(LTShiftExpression node, java.lang.Object data)
          Process a LTShiftExpression node in the tree.
 java.lang.Object visit(LTStatementExpressionList node, java.lang.Object data)
          Process a LTStatementExpressionList node in the tree.
 java.lang.Object visit(LTStatementExpression node, java.lang.Object data)
          Process a LTStatementExpression node in the tree.
 java.lang.Object visit(LTStatement node, java.lang.Object data)
          Process a LTStatement node in the tree.
 java.lang.Object visit(LTSwitchLabel node, java.lang.Object data)
          Process a LTSwitchLabel node in the tree.
 java.lang.Object visit(LTSwitchStatement node, java.lang.Object data)
          Process a LTSwitchStatement node in the tree.
 java.lang.Object visit(LTSynchronizedStatement node, java.lang.Object data)
          Process a LTSynchronizedStatement node in the tree.
 java.lang.Object visit(LTThrowStatement node, java.lang.Object data)
          Process a LTThrowStatement node in the tree.
 java.lang.Object visit(LTTryStatement node, java.lang.Object data)
          Process a LTTryStatement node in the tree.
 java.lang.Object visit(LTTypeDeclaration node, java.lang.Object data)
          Process a LTTypeDeclaration node in the tree.
 java.lang.Object visit(LTType node, java.lang.Object data)
          Process a LTType node in the tree.
 java.lang.Object visit(LTUnaryExpressionNotPlusMinus node, java.lang.Object data)
          Process a LTUnaryExpressionNotPlusMinus node in the tree.
 java.lang.Object visit(LTUnaryExpression node, java.lang.Object data)
          Process a LTUnaryExpression node in the tree.
 java.lang.Object visit(LTUnmodifiedClassDeclaration node, java.lang.Object data)
          Process a LTUnmodifiedClassDeclaration node in the tree.
 java.lang.Object visit(LTUnmodifiedInterfaceDeclaration node, java.lang.Object data)
          Process a LTUnmodifiedInterfaceDeclaration node in the tree.
 java.lang.Object visit(LTVariableDeclaratorId node, java.lang.Object data)
          Process a LTVariableDeclaratorId node in the tree.
 java.lang.Object visit(LTVariableDeclarator node, java.lang.Object data)
          Process a LTVariableDeclarator node in the tree.
 java.lang.Object visit(LTVariableInitializer node, java.lang.Object data)
          Process a LTVariableInitializer node in the tree.
 java.lang.Object visit(LTWhileStatement node, java.lang.Object data)
          Process a LTWhileStatement node in the tree.
 java.lang.Object visit(SimpleNode node, java.lang.Object data)
          Process a SimpleNode node in the tree.
 java.lang.Object walk(SimpleNode node, java.lang.Object data)
          Walk through the nodes of a SimpleNode node in the tree.
 void writeXLIFF(java.io.OutputStreamWriter osw)
          Writes the tree walker results to an XLIFF format file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static java.util.logging.Logger log
The log used for all messages from this class.


xliffrb

protected static java.util.ResourceBundle xliffrb
Constants, messages, and variables used by the tools and classes for XLIFF processing.


gcm

protected boolean gcm
State variable indicating that the getContents method has been found in the tree.


ret

protected boolean ret
State variable indicating that the return statement for the getContents method has been found.


inContents

protected boolean inContents
State variable indicating that the contents section of the file has been located and is ready for processing.


inMethod

protected boolean inMethod
State variable indicating that processing is within the bounds of a method.


gotKey

protected boolean gotKey
State variable indicating that the key for an entry has been identified.


gotValue

protected boolean gotValue
State variable indicating that the value for an entry has been identified.


retnew

protected boolean retnew
State variable indicating the possbility that the getContents method is returning a new Object array.


retobj

protected boolean retobj
State variable indicating that the getContents method is returning a new Object array.


needCN

protected boolean needCN
State variable indicating that the name of the contents section is still needed.


contentsId

protected java.lang.String contentsId
State variable indicating the name of the contents section for the file.


expression

protected java.lang.String expression
State variable used to collect an expression for further processing.


key

protected java.lang.String key
State variable used to collect the key of an entry for further processing.


value

protected java.lang.String value
State variable used to collect the value of an entry for further processing.


valueStartRow

protected int valueStartRow
State variable used to save the starting line number for the value of an entry for further processing.


valueStartCol

protected int valueStartCol
State variable used to save the starting column number for the value of an entry for further processing.


valueEndRow

protected int valueEndRow
State variable used to save the ending line number for the value of an entry for further processing.


valueEndCol

protected int valueEndCol
State variable used to save the ending column number for the value of an entry for further processing.


arrayLevel

protected int arrayLevel
State variable to hold the level number of array initializers.


out

protected java.io.PrintStream out
The output stream writer used for the normal print process.


strfile

protected StrFile strfile
The StrFile object to use for the extracted strings.


tokfile

protected TokFile tokfile
The TokFile object to use for the source file skeleton.


theContextFileName

protected java.lang.String theContextFileName
The file name to use for the context of each extracted string.


targetLocale

protected java.util.Locale targetLocale
The target locale to use for each extracted string.


token

protected Token token
The Token object to use to generate tokens for each extracted string.


openForKVPair

protected boolean openForKVPair
A switch to indicate when we are expecting a Key/Value pair.

Constructor Detail

LTTreeWalker

public LTTreeWalker(java.io.PrintStream o)
Constructor to set up to use the specified print stream for default output.

Parameters:
o - a PrintStream specifying ?

LTTreeWalker

public LTTreeWalker()
Constructor to set up the tree walker.

Method Detail

walk

public java.lang.Object walk(SimpleNode node,
                             java.lang.Object data)
Walk through the nodes of a SimpleNode node in the tree.

Parameters:
node - a SimpleNode specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

print

protected void print(Token t)
Print a com.g11ntoolkit.parser.java.Token for a node in the tree.

This method will only print the requested token if the logging level is FINE or higher. This method is great for debugging purposes. It is used by the walk method just for that purpose.

Parameters:
t - a com.g11ntoolkit.parser.java.Token specifying the com.g11ntoolkit.parser.java.Token in the node in the parse tree

addUnicodeEscapes

private java.lang.String addUnicodeEscapes(java.lang.String str)
Add unicode escapes to the specified string.

Parameters:
str - a String specifying the strng to contain the unicode escapes
Returns:
a String representing the specified string with the unicode escapes added

visit

public java.lang.Object visit(SimpleNode node,
                              java.lang.Object data)
Process a SimpleNode node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a SimpleNode specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTCompilationUnit node,
                              java.lang.Object data)
Process a LTCompilationUnit node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTCompilationUnit specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTPackageDeclaration node,
                              java.lang.Object data)
Process a LTPackageDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTPackageDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTImportDeclaration node,
                              java.lang.Object data)
Process a LTImportDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTImportDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTTypeDeclaration node,
                              java.lang.Object data)
Process a LTTypeDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTTypeDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTClassDeclaration node,
                              java.lang.Object data)
Process a LTClassDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTClassDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTUnmodifiedClassDeclaration node,
                              java.lang.Object data)
Process a LTUnmodifiedClassDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTUnmodifiedClassDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTClassBody node,
                              java.lang.Object data)
Process a LTClassBody node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTClassBody specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTNestedClassDeclaration node,
                              java.lang.Object data)
Process a LTNestedClassDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTNestedClassDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTClassBodyDeclaration node,
                              java.lang.Object data)
Process a LTClassBodyDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTClassBodyDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTMethodDeclarationLookahead node,
                              java.lang.Object data)
Process a LTMethodDeclarationLookahead node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTMethodDeclarationLookahead specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTInterfaceDeclaration node,
                              java.lang.Object data)
Process a LTInterfaceDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTInterfaceDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTNestedInterfaceDeclaration node,
                              java.lang.Object data)
Process a LTNestedInterfaceDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTNestedInterfaceDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTUnmodifiedInterfaceDeclaration node,
                              java.lang.Object data)
Process a LTUnmodifiedInterfaceDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTUnmodifiedInterfaceDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTInterfaceMemberDeclaration node,
                              java.lang.Object data)
Process a LTInterfaceMemberDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTInterfaceMemberDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTFieldDeclaration node,
                              java.lang.Object data)
Process a LTFieldDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTFieldDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTVariableDeclarator node,
                              java.lang.Object data)
Process a LTVariableDeclarator node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTVariableDeclarator specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTVariableDeclaratorId node,
                              java.lang.Object data)
Process a LTVariableDeclaratorId node in the tree.

Looking for the name of the contents section. When found, we then begin processing that section looking for strings to extract when they are part of the value for an entry.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTVariableDeclaratorId specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTVariableInitializer node,
                              java.lang.Object data)
Process a LTVariableInitializer node in the tree.

This indicated that we have progressed beyond the boundaries of the statement that contains a key and value.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTVariableInitializer specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTArrayInitializer node,
                              java.lang.Object data)
Process a LTArrayInitializer node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTArrayInitializer specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTMethodDeclaration node,
                              java.lang.Object data)
Process a LTMethodDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTMethodDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTMethodDeclarator node,
                              java.lang.Object data)
Process a LTMethodDeclarator node in the tree.

This will indicate the name of the contents section since it is the item returned from the getContents method.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTMethodDeclarator specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTFormalParameters node,
                              java.lang.Object data)
Process a LTFormalParameters node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTFormalParameters specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTFormalParameter node,
                              java.lang.Object data)
Process a LTFormalParameter node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTFormalParameter specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTConstructorDeclaration node,
                              java.lang.Object data)
Process a LTConstructorDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTConstructorDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTExplicitConstructorInvocation node,
                              java.lang.Object data)
Process a LTExplicitConstructorInvocation node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTExplicitConstructorInvocation specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTInitializer node,
                              java.lang.Object data)
Process a LTInitializer node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTInitializer specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTType node,
                              java.lang.Object data)
Process a LTType node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTType specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTPrimitiveType node,
                              java.lang.Object data)
Process a LTPrimitiveType node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTPrimitiveType specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTResultType node,
                              java.lang.Object data)
Process a LTResultType node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTResultType specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTName node,
                              java.lang.Object data)
Process a LTName node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTName specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTNameList node,
                              java.lang.Object data)
Process a LTNameList node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTNameList specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTExpression node,
                              java.lang.Object data)
Process a LTExpression node in the tree.

An expression can contain either the key or value for an entry if it is found in the contents section.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTAssignmentOperator node,
                              java.lang.Object data)
Process a LTAssignmentOperator node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTAssignmentOperator specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTConditionalExpression node,
                              java.lang.Object data)
Process a LTConditionalExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTConditionalExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTConditionalOrExpression node,
                              java.lang.Object data)
Process a LTConditionalOrExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTConditionalOrExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTConditionalAndExpression node,
                              java.lang.Object data)
Process a LTConditionalAndExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTConditionalAndExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTInclusiveOrExpression node,
                              java.lang.Object data)
Process a LTInclusiveOrExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTInclusiveOrExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTExclusiveOrExpression node,
                              java.lang.Object data)
Process a LTExclusiveOrExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTExclusiveOrExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTAndExpression node,
                              java.lang.Object data)
Process a LTAndExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTAndExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTEqualityExpression node,
                              java.lang.Object data)
Process a LTEqualityExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTEqualityExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTInstanceOfExpression node,
                              java.lang.Object data)
Process a LTInstanceOfExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTInstanceOfExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTRelationalExpression node,
                              java.lang.Object data)
Process a LTRelationalExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTRelationalExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTShiftExpression node,
                              java.lang.Object data)
Process a LTShiftExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTShiftExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTAdditiveExpression node,
                              java.lang.Object data)
Process a LTAdditiveExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTAdditiveExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTMultiplicativeExpression node,
                              java.lang.Object data)
Process a LTMultiplicativeExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTMultiplicativeExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTUnaryExpression node,
                              java.lang.Object data)
Process a LTUnaryExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTUnaryExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTPreIncrementExpression node,
                              java.lang.Object data)
Process a LTPreIncrementExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTPreIncrementExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTPreDecrementExpression node,
                              java.lang.Object data)
Process a LTPreDecrementExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTPreDecrementExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTUnaryExpressionNotPlusMinus node,
                              java.lang.Object data)
Process a LTUnaryExpressionNotPlusMinus node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTUnaryExpressionNotPlusMinus specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTCastLookahead node,
                              java.lang.Object data)
Process a LTCastLookahead node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTCastLookahead specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTPostfixExpression node,
                              java.lang.Object data)
Process a LTPostfixExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTPostfixExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTCastExpression node,
                              java.lang.Object data)
Process a LTCastExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTCastExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTPrimaryExpression node,
                              java.lang.Object data)
Process a LTPrimaryExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTPrimaryExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTPrimaryPrefix node,
                              java.lang.Object data)
Process a LTPrimaryPrefix node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTPrimaryPrefix specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTPrimarySuffix node,
                              java.lang.Object data)
Process a LTPrimarySuffix node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTPrimarySuffix specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTLiteral node,
                              java.lang.Object data)
Process a LTLiteral node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTLiteral specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTBooleanLiteral node,
                              java.lang.Object data)
Process a LTBooleanLiteral node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTBooleanLiteral specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTNullLiteral node,
                              java.lang.Object data)
Process a LTNullLiteral node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTNullLiteral specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTArguments node,
                              java.lang.Object data)
Process a LTArguments node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTArguments specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTArgumentList node,
                              java.lang.Object data)
Process a LTArgumentList node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTArgumentList specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTAllocationExpression node,
                              java.lang.Object data)
Process a LTAllocationExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTAllocationExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTArrayDimsAndInits node,
                              java.lang.Object data)
Process a LTArrayDimsAndInits node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTArrayDimsAndInits specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTStatement node,
                              java.lang.Object data)
Process a LTStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTLabeledStatement node,
                              java.lang.Object data)
Process a LTLabeledStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTLabeledStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTBlock node,
                              java.lang.Object data)
Process a LTBlock node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTBlock specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTBlockStatement node,
                              java.lang.Object data)
Process a LTBlockStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTBlockStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTLocalVariableDeclaration node,
                              java.lang.Object data)
Process a LTLocalVariableDeclaration node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTLocalVariableDeclaration specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTEmptyStatement node,
                              java.lang.Object data)
Process a LTEmptyStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTEmptyStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTStatementExpression node,
                              java.lang.Object data)
Process a LTStatementExpression node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTStatementExpression specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTSwitchStatement node,
                              java.lang.Object data)
Process a LTSwitchStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTSwitchStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTSwitchLabel node,
                              java.lang.Object data)
Process a LTSwitchLabel node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTSwitchLabel specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTIfStatement node,
                              java.lang.Object data)
Process a LTIfStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTIfStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTWhileStatement node,
                              java.lang.Object data)
Process a LTWhileStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTWhileStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTDoStatement node,
                              java.lang.Object data)
Process a LTDoStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTDoStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTForStatement node,
                              java.lang.Object data)
Process a LTForStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTForStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTForInit node,
                              java.lang.Object data)
Process a LTForInit node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTForInit specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTStatementExpressionList node,
                              java.lang.Object data)
Process a LTStatementExpressionList node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTStatementExpressionList specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTForUpdate node,
                              java.lang.Object data)
Process a LTForUpdate node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTForUpdate specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTBreakStatement node,
                              java.lang.Object data)
Process a LTBreakStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTBreakStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTContinueStatement node,
                              java.lang.Object data)
Process a LTContinueStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTContinueStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTReturnStatement node,
                              java.lang.Object data)
Process a LTReturnStatement node in the tree.

The return statement in the getContents method of the class will tell what the name of contents section is.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTReturnStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTThrowStatement node,
                              java.lang.Object data)
Process a LTThrowStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTThrowStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTSynchronizedStatement node,
                              java.lang.Object data)
Process a LTSynchronizedStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTSynchronizedStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTTryStatement node,
                              java.lang.Object data)
Process a LTTryStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTTryStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

visit

public java.lang.Object visit(LTAssertStatement node,
                              java.lang.Object data)
Process a LTAssertStatement node in the tree.

Basically does nothing except move on to the next node in the tree.

Specified by:
visit in interface JavaParserVisitor
Parameters:
node - a LTAssertStatement specifying the node in the parse tree
data - an Object specifying ?
Returns:
an Object representing ?

setStrFile

public void setStrFile(StrFile sf)
Sets the StrFile to be used by the Tree Walker

Specified by:
setStrFile in interface LTParserVisitor
Parameters:
sf - a StrFile specifying the StrFile object to be used

setTokFile

public void setTokFile(TokFile tf)
Sets the TokFile to be used by the Tree Walker.

Specified by:
setTokFile in interface LTParserVisitor
Parameters:
tf - a TokFile specifying the TokFile object to be used

setContextFileName

public void setContextFileName(java.lang.String tc)
Sets the Context File Name to be used by the Tree Walker.

Specified by:
setContextFileName in interface LTParserVisitor
Parameters:
tc - a String specifying the file name to be used for the context of each extracted string

setTargetLocale

public void setTargetLocale(java.util.Locale tl)
Sets the target locale to be used by the Tree Walker.

Specified by:
setTargetLocale in interface LTParserVisitor
Parameters:
tl - a Locale object specifying the target locale to be used for each extracted string

setTokenObject

public void setTokenObject(Token tk)
Sets the com.g11ntoolkit.token.Token object to be used by the Tree Walker.

Specified by:
setTokenObject in interface LTParserVisitor
Parameters:
tk - a com.g11ntoolkit.token.Token object specifying the token object to be used to generate the tokens for each extracted string

writeXLIFF

public void writeXLIFF(java.io.OutputStreamWriter osw)
Writes the tree walker results to an XLIFF format file.

Specified by:
writeXLIFF in interface LTParserVisitor
Parameters:
osw - a OutputStreamWriter specifying the output stream writer to use

removeConcat

public java.lang.String removeConcat(java.lang.String s)
Removes string concatenation where possible.

Specified by:
removeConcat in interface LTParserVisitor
Parameters:
s - a String specifying the string that has possible concatenation
Returns:
a String representing the input string with concatenation removed if possible