|
|
@ -61,7 +61,7 @@ class AnalyzeRule(private var book: BaseBook? = null) { |
|
|
|
private fun getAnalyzeByXPath(): AnalyzeByXPath { |
|
|
|
private fun getAnalyzeByXPath(): AnalyzeByXPath { |
|
|
|
if (analyzeByXPath == null || objectChangedXP) { |
|
|
|
if (analyzeByXPath == null || objectChangedXP) { |
|
|
|
analyzeByXPath = AnalyzeByXPath() |
|
|
|
analyzeByXPath = AnalyzeByXPath() |
|
|
|
analyzeByXPath!!.parse(content!!) |
|
|
|
analyzeByXPath?.parse(content!!) |
|
|
|
objectChangedXP = false |
|
|
|
objectChangedXP = false |
|
|
|
} |
|
|
|
} |
|
|
|
return analyzeByXPath as AnalyzeByXPath |
|
|
|
return analyzeByXPath as AnalyzeByXPath |
|
|
@ -79,7 +79,7 @@ class AnalyzeRule(private var book: BaseBook? = null) { |
|
|
|
private fun getAnalyzeByJSoup(): AnalyzeByJSoup { |
|
|
|
private fun getAnalyzeByJSoup(): AnalyzeByJSoup { |
|
|
|
if (analyzeByJSoup == null || objectChangedJS) { |
|
|
|
if (analyzeByJSoup == null || objectChangedJS) { |
|
|
|
analyzeByJSoup = AnalyzeByJSoup() |
|
|
|
analyzeByJSoup = AnalyzeByJSoup() |
|
|
|
analyzeByJSoup!!.parse(content!!) |
|
|
|
analyzeByJSoup?.parse(content!!) |
|
|
|
objectChangedJS = false |
|
|
|
objectChangedJS = false |
|
|
|
} |
|
|
|
} |
|
|
|
return analyzeByJSoup as AnalyzeByJSoup |
|
|
|
return analyzeByJSoup as AnalyzeByJSoup |
|
|
@ -97,7 +97,7 @@ class AnalyzeRule(private var book: BaseBook? = null) { |
|
|
|
private fun getAnalyzeByJSonPath(): AnalyzeByJSonPath { |
|
|
|
private fun getAnalyzeByJSonPath(): AnalyzeByJSonPath { |
|
|
|
if (analyzeByJSonPath == null || objectChangedJP) { |
|
|
|
if (analyzeByJSonPath == null || objectChangedJP) { |
|
|
|
analyzeByJSonPath = AnalyzeByJSonPath() |
|
|
|
analyzeByJSonPath = AnalyzeByJSonPath() |
|
|
|
analyzeByJSonPath!!.parse(content!!) |
|
|
|
analyzeByJSonPath?.parse(content!!) |
|
|
|
objectChangedJP = false |
|
|
|
objectChangedJP = false |
|
|
|
} |
|
|
|
} |
|
|
|
return analyzeByJSonPath as AnalyzeByJSonPath |
|
|
|
return analyzeByJSonPath as AnalyzeByJSonPath |
|
|
|