|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonar.api.resources.AbstractResource<Directory>
org.sonar.api.resources.File
public class File
Field Summary |
---|
Fields inherited from interface org.sonar.api.resources.Resource |
---|
QUALIFIER_CLASS, QUALIFIER_DIRECTORY, QUALIFIER_FILE, QUALIFIER_PACKAGE, QUALIFIER_PROJECT_BRANCH, QUALIFIER_PROJECT_TRUNK, QUALIFIER_UNIT_TEST_CLASS, SCOPE_DIRECTORY, SCOPE_FILE, SCOPE_FUNCTION, SCOPE_PROJECT |
Constructor Summary | |
---|---|
File(java.lang.String key)
|
|
File(java.lang.String directory,
java.lang.String filename)
|
Method Summary | |
---|---|
Directory |
getParent()
The parent is used to build the resources tree, for example for relations between classes, packages and projects. |
boolean |
matchFilePattern(java.lang.String antPattern)
Check resource against an Ant pattern, like mypackag?/*Foo.java. |
Methods inherited from class org.sonar.api.resources.AbstractResource |
---|
equals, getDescription, getKey, getLanguage, getName, getQualifier, getScope, hashCode, setDescription, setKey, setLanguage, setName, setQualifier, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public File(java.lang.String key)
public File(java.lang.String directory, java.lang.String filename)
Method Detail |
---|
public Directory getParent()
Resource
Return null if the parent is the project.
getParent
in interface Resource
getParent
in class AbstractResource<Directory>
public boolean matchFilePattern(java.lang.String antPattern)
Resource
antPattern
- Ant-like pattern (with **, * and ?). It includes file suffixes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |