@@ -47,7 +47,7 @@ class Container extends @container, Top {
4747 */
4848 string getRelativePath ( ) {
4949 exists ( string absPath , string pref |
50- absPath = getAbsolutePath ( ) and sourceLocationPrefix ( pref )
50+ absPath = this . getAbsolutePath ( ) and sourceLocationPrefix ( pref )
5151 |
5252 absPath = pref and result = ""
5353 or
@@ -74,7 +74,7 @@ class Container extends @container, Top {
7474 * </table>
7575 */
7676 string getBaseName ( ) {
77- result = getAbsolutePath ( ) .regexpCapture ( ".*/(([^/]*?)(?:\\.([^.]*))?)" , 1 )
77+ result = this . getAbsolutePath ( ) .regexpCapture ( ".*/(([^/]*?)(?:\\.([^.]*))?)" , 1 )
7878 }
7979
8080 /**
@@ -100,7 +100,9 @@ class Container extends @container, Top {
100100 * <tr><td>"/tmp/x.tar.gz"</td><td>"gz"</td></tr>
101101 * </table>
102102 */
103- string getExtension ( ) { result = getAbsolutePath ( ) .regexpCapture ( ".*/([^/]*?)(\\.([^.]*))?" , 3 ) }
103+ string getExtension ( ) {
104+ result = this .getAbsolutePath ( ) .regexpCapture ( ".*/([^/]*?)(\\.([^.]*))?" , 3 )
105+ }
104106
105107 /**
106108 * Gets the stem of this container, that is, the prefix of its base name up to
@@ -119,7 +121,9 @@ class Container extends @container, Top {
119121 * <tr><td>"/tmp/x.tar.gz"</td><td>"x.tar"</td></tr>
120122 * </table>
121123 */
122- string getStem ( ) { result = getAbsolutePath ( ) .regexpCapture ( ".*/([^/]*?)(?:\\.([^.]*))?" , 1 ) }
124+ string getStem ( ) {
125+ result = this .getAbsolutePath ( ) .regexpCapture ( ".*/([^/]*?)(?:\\.([^.]*))?" , 1 )
126+ }
123127
124128 /** Gets the parent container of this file or folder, if any. */
125129 Container getParentContainer ( ) { containerparent ( result , this ) }
@@ -128,20 +132,20 @@ class Container extends @container, Top {
128132 Container getAChildContainer ( ) { this = result .getParentContainer ( ) }
129133
130134 /** Gets a file in this container. */
131- File getAFile ( ) { result = getAChildContainer ( ) }
135+ File getAFile ( ) { result = this . getAChildContainer ( ) }
132136
133137 /** Gets the file in this container that has the given `baseName`, if any. */
134138 File getFile ( string baseName ) {
135- result = getAFile ( ) and
139+ result = this . getAFile ( ) and
136140 result .getBaseName ( ) = baseName
137141 }
138142
139143 /** Gets a sub-folder in this container. */
140- Folder getAFolder ( ) { result = getAChildContainer ( ) }
144+ Folder getAFolder ( ) { result = this . getAChildContainer ( ) }
141145
142146 /** Gets the sub-folder in this container that has the given `baseName`, if any. */
143147 Folder getFolder ( string baseName ) {
144- result = getAFolder ( ) and
148+ result = this . getAFolder ( ) and
145149 result .getBaseName ( ) = baseName
146150 }
147151
@@ -152,15 +156,15 @@ class Container extends @container, Top {
152156 * to provide a different result. To get the absolute path of any `Container`, call
153157 * `Container.getAbsolutePath()` directly.
154158 */
155- override string toString ( ) { result = getAbsolutePath ( ) }
159+ override string toString ( ) { result = this . getAbsolutePath ( ) }
156160}
157161
158162/** A folder. */
159163class Folder extends Container , @folder {
160164 override string getAbsolutePath ( ) { folders ( this , result ) }
161165
162166 /** Gets the URL of this folder. */
163- override string getURL ( ) { result = "folder://" + getAbsolutePath ( ) }
167+ override string getURL ( ) { result = "folder://" + this . getAbsolutePath ( ) }
164168
165169 override string getAPrimaryQlClass ( ) { result = "Folder" }
166170}
@@ -183,7 +187,7 @@ class File extends Container, @file {
183187 * A Java archive file with a ".jar" extension.
184188 */
185189class JarFile extends File {
186- JarFile ( ) { getExtension ( ) = "jar" }
190+ JarFile ( ) { this . getExtension ( ) = "jar" }
187191
188192 /**
189193 * Gets the main attribute with the specified `key`
@@ -195,13 +199,17 @@ class JarFile extends File {
195199 * Gets the "Specification-Version" main attribute
196200 * from this JAR file's manifest.
197201 */
198- string getSpecificationVersion ( ) { result = getManifestMainAttribute ( "Specification-Version" ) }
202+ string getSpecificationVersion ( ) {
203+ result = this .getManifestMainAttribute ( "Specification-Version" )
204+ }
199205
200206 /**
201207 * Gets the "Implementation-Version" main attribute
202208 * from this JAR file's manifest.
203209 */
204- string getImplementationVersion ( ) { result = getManifestMainAttribute ( "Implementation-Version" ) }
210+ string getImplementationVersion ( ) {
211+ result = this .getManifestMainAttribute ( "Implementation-Version" )
212+ }
205213
206214 /**
207215 * Gets the per-entry attribute for the specified `entry` and `key`
0 commit comments