|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.g11ntoolkit.parser.java.LTTreeWalker
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.
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 |
private static java.util.logging.Logger log
protected static java.util.ResourceBundle xliffrb
protected boolean gcm
getContents method has been found in the tree.
protected boolean ret
return statement for the getContents method has been found.
protected boolean inContents
protected boolean inMethod
protected boolean gotKey
protected boolean gotValue
protected boolean retnew
getContents method is returning a new Object array.
protected boolean retobj
getContents method is returning a new Object array.
protected boolean needCN
protected java.lang.String contentsId
protected java.lang.String expression
protected java.lang.String key
protected java.lang.String value
protected int valueStartRow
protected int valueStartCol
protected int valueEndRow
protected int valueEndCol
protected int arrayLevel
protected java.io.PrintStream out
print process.
protected StrFile strfile
protected TokFile tokfile
protected java.lang.String theContextFileName
protected java.util.Locale targetLocale
protected Token token
protected boolean openForKVPair
| Constructor Detail |
public LTTreeWalker(java.io.PrintStream o)
o - a PrintStream specifying ?public LTTreeWalker()
| Method Detail |
public java.lang.Object walk(SimpleNode node,
java.lang.Object data)
SimpleNode node in the tree.
node - a SimpleNode specifying the node in the parse treedata - an Object specifying ?
protected void print(Token t)
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.
t - a com.g11ntoolkit.parser.java.Token specifying the com.g11ntoolkit.parser.java.Token in the node in the parse treeprivate java.lang.String addUnicodeEscapes(java.lang.String str)
str - a String specifying the strng to contain the unicode escapes
public java.lang.Object visit(SimpleNode node,
java.lang.Object data)
SimpleNode node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a SimpleNode specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTCompilationUnit node,
java.lang.Object data)
LTCompilationUnit node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTCompilationUnit specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTPackageDeclaration node,
java.lang.Object data)
LTPackageDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTPackageDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTImportDeclaration node,
java.lang.Object data)
LTImportDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTImportDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTTypeDeclaration node,
java.lang.Object data)
LTTypeDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTTypeDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTClassDeclaration node,
java.lang.Object data)
LTClassDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTClassDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTUnmodifiedClassDeclaration node,
java.lang.Object data)
LTUnmodifiedClassDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTUnmodifiedClassDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTClassBody node,
java.lang.Object data)
LTClassBody node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTClassBody specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTNestedClassDeclaration node,
java.lang.Object data)
LTNestedClassDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTNestedClassDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTClassBodyDeclaration node,
java.lang.Object data)
LTClassBodyDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTClassBodyDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTMethodDeclarationLookahead node,
java.lang.Object data)
LTMethodDeclarationLookahead node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTMethodDeclarationLookahead specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTInterfaceDeclaration node,
java.lang.Object data)
LTInterfaceDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTInterfaceDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTNestedInterfaceDeclaration node,
java.lang.Object data)
LTNestedInterfaceDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTNestedInterfaceDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTUnmodifiedInterfaceDeclaration node,
java.lang.Object data)
LTUnmodifiedInterfaceDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTUnmodifiedInterfaceDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTInterfaceMemberDeclaration node,
java.lang.Object data)
LTInterfaceMemberDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTInterfaceMemberDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTFieldDeclaration node,
java.lang.Object data)
LTFieldDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTFieldDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTVariableDeclarator node,
java.lang.Object data)
LTVariableDeclarator node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTVariableDeclarator specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTVariableDeclaratorId node,
java.lang.Object data)
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.
visit in interface JavaParserVisitornode - a LTVariableDeclaratorId specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTVariableInitializer node,
java.lang.Object data)
LTVariableInitializer node in the tree.
This indicated that we have progressed beyond the boundaries of the statement that contains a key and value.
visit in interface JavaParserVisitornode - a LTVariableInitializer specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTArrayInitializer node,
java.lang.Object data)
LTArrayInitializer node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTArrayInitializer specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTMethodDeclaration node,
java.lang.Object data)
LTMethodDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTMethodDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTMethodDeclarator node,
java.lang.Object data)
LTMethodDeclarator node in the tree.
This will indicate the name of the contents section since it is the item returned from the getContents method.
visit in interface JavaParserVisitornode - a LTMethodDeclarator specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTFormalParameters node,
java.lang.Object data)
LTFormalParameters node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTFormalParameters specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTFormalParameter node,
java.lang.Object data)
LTFormalParameter node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTFormalParameter specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTConstructorDeclaration node,
java.lang.Object data)
LTConstructorDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTConstructorDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTExplicitConstructorInvocation node,
java.lang.Object data)
LTExplicitConstructorInvocation node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTExplicitConstructorInvocation specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTInitializer node,
java.lang.Object data)
LTInitializer node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTInitializer specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTType node,
java.lang.Object data)
LTType node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTType specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTPrimitiveType node,
java.lang.Object data)
LTPrimitiveType node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTPrimitiveType specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTResultType node,
java.lang.Object data)
LTResultType node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTResultType specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTName node,
java.lang.Object data)
LTName node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTName specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTNameList node,
java.lang.Object data)
LTNameList node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTNameList specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTExpression node,
java.lang.Object data)
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.
visit in interface JavaParserVisitornode - a LTExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTAssignmentOperator node,
java.lang.Object data)
LTAssignmentOperator node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTAssignmentOperator specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTConditionalExpression node,
java.lang.Object data)
LTConditionalExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTConditionalExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTConditionalOrExpression node,
java.lang.Object data)
LTConditionalOrExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTConditionalOrExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTConditionalAndExpression node,
java.lang.Object data)
LTConditionalAndExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTConditionalAndExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTInclusiveOrExpression node,
java.lang.Object data)
LTInclusiveOrExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTInclusiveOrExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTExclusiveOrExpression node,
java.lang.Object data)
LTExclusiveOrExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTExclusiveOrExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTAndExpression node,
java.lang.Object data)
LTAndExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTAndExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTEqualityExpression node,
java.lang.Object data)
LTEqualityExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTEqualityExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTInstanceOfExpression node,
java.lang.Object data)
LTInstanceOfExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTInstanceOfExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTRelationalExpression node,
java.lang.Object data)
LTRelationalExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTRelationalExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTShiftExpression node,
java.lang.Object data)
LTShiftExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTShiftExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTAdditiveExpression node,
java.lang.Object data)
LTAdditiveExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTAdditiveExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTMultiplicativeExpression node,
java.lang.Object data)
LTMultiplicativeExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTMultiplicativeExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTUnaryExpression node,
java.lang.Object data)
LTUnaryExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTUnaryExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTPreIncrementExpression node,
java.lang.Object data)
LTPreIncrementExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTPreIncrementExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTPreDecrementExpression node,
java.lang.Object data)
LTPreDecrementExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTPreDecrementExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTUnaryExpressionNotPlusMinus node,
java.lang.Object data)
LTUnaryExpressionNotPlusMinus node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTUnaryExpressionNotPlusMinus specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTCastLookahead node,
java.lang.Object data)
LTCastLookahead node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTCastLookahead specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTPostfixExpression node,
java.lang.Object data)
LTPostfixExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTPostfixExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTCastExpression node,
java.lang.Object data)
LTCastExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTCastExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTPrimaryExpression node,
java.lang.Object data)
LTPrimaryExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTPrimaryExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTPrimaryPrefix node,
java.lang.Object data)
LTPrimaryPrefix node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTPrimaryPrefix specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTPrimarySuffix node,
java.lang.Object data)
LTPrimarySuffix node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTPrimarySuffix specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTLiteral node,
java.lang.Object data)
LTLiteral node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTLiteral specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTBooleanLiteral node,
java.lang.Object data)
LTBooleanLiteral node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTBooleanLiteral specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTNullLiteral node,
java.lang.Object data)
LTNullLiteral node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTNullLiteral specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTArguments node,
java.lang.Object data)
LTArguments node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTArguments specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTArgumentList node,
java.lang.Object data)
LTArgumentList node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTArgumentList specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTAllocationExpression node,
java.lang.Object data)
LTAllocationExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTAllocationExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTArrayDimsAndInits node,
java.lang.Object data)
LTArrayDimsAndInits node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTArrayDimsAndInits specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTStatement node,
java.lang.Object data)
LTStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTLabeledStatement node,
java.lang.Object data)
LTLabeledStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTLabeledStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTBlock node,
java.lang.Object data)
LTBlock node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTBlock specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTBlockStatement node,
java.lang.Object data)
LTBlockStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTBlockStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTLocalVariableDeclaration node,
java.lang.Object data)
LTLocalVariableDeclaration node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTLocalVariableDeclaration specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTEmptyStatement node,
java.lang.Object data)
LTEmptyStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTEmptyStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTStatementExpression node,
java.lang.Object data)
LTStatementExpression node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTStatementExpression specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTSwitchStatement node,
java.lang.Object data)
LTSwitchStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTSwitchStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTSwitchLabel node,
java.lang.Object data)
LTSwitchLabel node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTSwitchLabel specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTIfStatement node,
java.lang.Object data)
LTIfStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTIfStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTWhileStatement node,
java.lang.Object data)
LTWhileStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTWhileStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTDoStatement node,
java.lang.Object data)
LTDoStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTDoStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTForStatement node,
java.lang.Object data)
LTForStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTForStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTForInit node,
java.lang.Object data)
LTForInit node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTForInit specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTStatementExpressionList node,
java.lang.Object data)
LTStatementExpressionList node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTStatementExpressionList specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTForUpdate node,
java.lang.Object data)
LTForUpdate node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTForUpdate specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTBreakStatement node,
java.lang.Object data)
LTBreakStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTBreakStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTContinueStatement node,
java.lang.Object data)
LTContinueStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTContinueStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTReturnStatement node,
java.lang.Object data)
LTReturnStatement node in the tree.
The return statement in the getContents method of the class will tell what the name of contents section is.
visit in interface JavaParserVisitornode - a LTReturnStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTThrowStatement node,
java.lang.Object data)
LTThrowStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTThrowStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTSynchronizedStatement node,
java.lang.Object data)
LTSynchronizedStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTSynchronizedStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTTryStatement node,
java.lang.Object data)
LTTryStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTTryStatement specifying the node in the parse treedata - an Object specifying ?
public java.lang.Object visit(LTAssertStatement node,
java.lang.Object data)
LTAssertStatement node in the tree.
Basically does nothing except move on to the next node in the tree.
visit in interface JavaParserVisitornode - a LTAssertStatement specifying the node in the parse treedata - an Object specifying ?
public void setStrFile(StrFile sf)
setStrFile in interface LTParserVisitorsf - a StrFile specifying the StrFile object to be usedpublic void setTokFile(TokFile tf)
setTokFile in interface LTParserVisitortf - a TokFile specifying the TokFile object to be usedpublic void setContextFileName(java.lang.String tc)
setContextFileName in interface LTParserVisitortc - a String specifying the file name to be used for the context of each extracted stringpublic void setTargetLocale(java.util.Locale tl)
setTargetLocale in interface LTParserVisitortl - a Locale object specifying the target locale to be used for each extracted stringpublic void setTokenObject(Token tk)
setTokenObject in interface LTParserVisitortk - a com.g11ntoolkit.token.Token object specifying the token object to be used to generate the tokens for each extracted stringpublic void writeXLIFF(java.io.OutputStreamWriter osw)
writeXLIFF in interface LTParserVisitorosw - a OutputStreamWriter specifying the output stream writer to usepublic java.lang.String removeConcat(java.lang.String s)
removeConcat in interface LTParserVisitors - a String specifying the string that has possible concatenation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||