/** * Parses the method bodies in the given compilation unit * @param unit CompilationUnitDeclaration */ public void parseBodies(CompilationUnitDeclaration unit) { TypeDeclaration[] types = unit.types; if (types == null) return; for (int i = 0; i < types.length; i++) { TypeDeclaration type = types[i]; this.patternLocator.match(type, this.nodeSet); this.parseBodies(type, unit); } } /**
/** * Parses the method bodies in the given compilation unit * @param unit CompilationUnitDeclaration */ public void parseBodies(CompilationUnitDeclaration unit) { TypeDeclaration[] types = unit.types; if (types == null) return; for (int i = 0; i < types.length; i++) { TypeDeclaration type = types[i]; this.patternLocator.match(type, this.nodeSet); this.parseBodies(type, unit); } } /**
/** * Parses the method bodies in the given compilation unit * @param unit CompilationUnitDeclaration */ public void parseBodies(CompilationUnitDeclaration unit) { TypeDeclaration[] types = unit.types; if (types == null) return; for (int i = 0; i < types.length; i++) { TypeDeclaration type = types[i]; this.patternLocator.match(type, this.nodeSet); this.parseBodies(type, unit); } } /**
/** * Parses the method bodies in the given compilation unit * @param unit CompilationUnitDeclaration */ public void parseBodies(CompilationUnitDeclaration unit) { TypeDeclaration[] types = unit.types; if (types == null) return; for (int i = 0; i < types.length; i++) { TypeDeclaration type = types[i]; this.patternLocator.match(type, this.nodeSet); this.parseBodies(type, unit); } } /**
/** * Parses the method bodies in the given compilation unit * @param unit CompilationUnitDeclaration */ public void parseBodies(CompilationUnitDeclaration unit) { TypeDeclaration[] types = unit.types; if (types == null) return; for (int i = 0; i < types.length; i++) { TypeDeclaration type = types[i]; this.patternLocator.match(type, this.nodeSet); this.parseBodies(type, unit); } } /**
/** * Parses the method bodies in the given compilation unit * @param unit CompilationUnitDeclaration */ public void parseBodies(CompilationUnitDeclaration unit) { TypeDeclaration[] types = unit.types; if (types == null) return; for (int i = 0; i < types.length; i++) { TypeDeclaration type = types[i]; this.patternLocator.match(type, this.nodeSet); this.parseBodies(type, unit); } } /**
protected void getMethodBodies(CompilationUnitDeclaration unit, MatchingNodeSet nodeSet) { if (unit.ignoreMethodBodies) { unit.ignoreFurtherInvestigation = true; return; // if initial diet parse did not work, no need to dig into method bodies. } // save existing values to restore them at the end of the parsing process // see bug 47079 for more details int[] oldLineEnds = this.parser.scanner.lineEnds; int oldLinePtr = this.parser.scanner.linePtr; try { CompilationResult compilationResult = unit.compilationResult; this.parser.scanner.setSource(compilationResult); if (this.parser.javadocParser.checkDocComment) { char[] contents = compilationResult.compilationUnit.getContents(); this.parser.javadocParser.scanner.setSource(contents); } this.parser.nodeSet = nodeSet; this.parser.parseBodies(unit); } finally { this.parser.nodeSet = null; // this is done to prevent any side effects on the compilation unit result // line separator positions array. this.parser.scanner.lineEnds = oldLineEnds; this.parser.scanner.linePtr = oldLinePtr; } } protected TypeBinding getType(Object typeKey, char[] typeName) {
protected void getMethodBodies(CompilationUnitDeclaration unit, MatchingNodeSet nodeSet) { if (unit.ignoreMethodBodies) { unit.ignoreFurtherInvestigation = true; return; // if initial diet parse did not work, no need to dig into method bodies. } // save existing values to restore them at the end of the parsing process // see bug 47079 for more details int[] oldLineEnds = this.parser.scanner.lineEnds; int oldLinePtr = this.parser.scanner.linePtr; try { CompilationResult compilationResult = unit.compilationResult; this.parser.scanner.setSource(compilationResult); if (this.parser.javadocParser.checkDocComment) { char[] contents = compilationResult.compilationUnit.getContents(); this.parser.javadocParser.scanner.setSource(contents); } this.parser.nodeSet = nodeSet; this.parser.parseBodies(unit); } finally { this.parser.nodeSet = null; // this is done to prevent any side effects on the compilation unit result // line separator positions array. this.parser.scanner.lineEnds = oldLineEnds; this.parser.scanner.linePtr = oldLinePtr; } } protected TypeBinding getType(Object typeKey, char[] typeName) {
protected void getMethodBodies(CompilationUnitDeclaration unit, MatchingNodeSet nodeSet) { if (unit.ignoreMethodBodies) { unit.ignoreFurtherInvestigation = true; return; // if initial diet parse did not work, no need to dig into method bodies. } // save existing values to restore them at the end of the parsing process // see bug 47079 for more details int[] oldLineEnds = this.parser.scanner.lineEnds; int oldLinePtr = this.parser.scanner.linePtr; try { CompilationResult compilationResult = unit.compilationResult; this.parser.scanner.setSource(compilationResult); if (this.parser.javadocParser.checkDocComment) { char[] contents = compilationResult.compilationUnit.getContents(); this.parser.javadocParser.scanner.setSource(contents); } this.parser.nodeSet = nodeSet; this.parser.parseBodies(unit); } finally { this.parser.nodeSet = null; // this is done to prevent any side effects on the compilation unit result // line separator positions array. this.parser.scanner.lineEnds = oldLineEnds; this.parser.scanner.linePtr = oldLinePtr; } } protected TypeBinding getType(Object typeKey, char[] typeName) {
protected void getMethodBodies(CompilationUnitDeclaration unit, MatchingNodeSet nodeSet) { if (unit.ignoreMethodBodies) { unit.ignoreFurtherInvestigation = true; return; // if initial diet parse did not work, no need to dig into method bodies. } // save existing values to restore them at the end of the parsing process // see bug 47079 for more details int[] oldLineEnds = this.parser.scanner.lineEnds; int oldLinePtr = this.parser.scanner.linePtr; try { CompilationResult compilationResult = unit.compilationResult; this.parser.scanner.setSource(compilationResult); if (this.parser.javadocParser.checkDocComment) { char[] contents = compilationResult.compilationUnit.getContents(); this.parser.javadocParser.scanner.setSource(contents); } this.parser.nodeSet = nodeSet; this.parser.parseBodies(unit); } finally { this.parser.nodeSet = null; // this is done to prevent any side effects on the compilation unit result // line separator positions array. this.parser.scanner.lineEnds = oldLineEnds; this.parser.scanner.linePtr = oldLinePtr; } } protected TypeBinding getType(Object typeKey, char[] typeName) {
protected void getMethodBodies(CompilationUnitDeclaration unit, MatchingNodeSet nodeSet) { if (unit.ignoreMethodBodies) { unit.ignoreFurtherInvestigation = true; return; // if initial diet parse did not work, no need to dig into method bodies. } // save existing values to restore them at the end of the parsing process // see bug 47079 for more details int[] oldLineEnds = this.parser.scanner.lineEnds; int oldLinePtr = this.parser.scanner.linePtr; try { CompilationResult compilationResult = unit.compilationResult; this.parser.scanner.setSource(compilationResult); if (this.parser.javadocParser.checkDocComment) { char[] contents = compilationResult.compilationUnit.getContents(); this.parser.javadocParser.scanner.setSource(contents); } this.parser.nodeSet = nodeSet; this.parser.parseBodies(unit); } finally { this.parser.nodeSet = null; // this is done to prevent any side effects on the compilation unit result // line separator positions array. this.parser.scanner.lineEnds = oldLineEnds; this.parser.scanner.linePtr = oldLinePtr; } } protected TypeBinding getType(Object typeKey, char[] typeName) {
protected void getMethodBodies(CompilationUnitDeclaration unit, MatchingNodeSet nodeSet) { if (unit.ignoreMethodBodies) { unit.ignoreFurtherInvestigation = true; return; // if initial diet parse did not work, no need to dig into method bodies. } // save existing values to restore them at the end of the parsing process // see bug 47079 for more details int[] oldLineEnds = this.parser.scanner.lineEnds; int oldLinePtr = this.parser.scanner.linePtr; try { CompilationResult compilationResult = unit.compilationResult; this.parser.scanner.setSource(compilationResult); if (this.parser.javadocParser.checkDocComment) { char[] contents = compilationResult.compilationUnit.getContents(); this.parser.javadocParser.scanner.setSource(contents); } this.parser.nodeSet = nodeSet; this.parser.parseBodies(unit); } finally { this.parser.nodeSet = null; // this is done to prevent any side effects on the compilation unit result // line separator positions array. this.parser.scanner.lineEnds = oldLineEnds; this.parser.scanner.linePtr = oldLinePtr; } } protected TypeBinding getType(Object typeKey, char[] typeName) {
for (int i = 0; i < memberTypes.length; i++) { TypeDeclaration memberType = memberTypes[i]; this.parseBodies(memberType, unit); memberType.traverse(this.localDeclarationVisitor, (ClassScope) null);
for (int i = 0; i < memberTypes.length; i++) { TypeDeclaration memberType = memberTypes[i]; this.parseBodies(memberType, unit); memberType.traverse(this.localDeclarationVisitor, (ClassScope) null);
for (int i = 0; i < memberTypes.length; i++) { TypeDeclaration memberType = memberTypes[i]; this.parseBodies(memberType, unit); memberType.traverse(this.localDeclarationVisitor, (ClassScope) null);
for (int i = 0; i < memberTypes.length; i++) { TypeDeclaration memberType = memberTypes[i]; this.parseBodies(memberType, unit); memberType.traverse(this.localDeclarationVisitor, (ClassScope) null);
for (int i = 0; i < memberTypes.length; i++) { TypeDeclaration memberType = memberTypes[i]; this.parseBodies(memberType, unit); memberType.traverse(this.localDeclarationVisitor, (ClassScope) null);
for (int i = 0; i < memberTypes.length; i++) { TypeDeclaration memberType = memberTypes[i]; this.parseBodies(memberType, unit); memberType.traverse(this.localDeclarationVisitor, (ClassScope) null);