org.sonar.api.component.mock
Class MockSourceFile
java.lang.Object
org.sonar.api.component.mock.MockSourceFile
- All Implemented Interfaces:
- Component<SourceFile>, SourceFile
public class MockSourceFile
- extends Object
- implements SourceFile
key
public String key()
- Specified by:
key
in interface Component<SourceFile>
setKey
public MockSourceFile setKey(String key)
path
public String path()
- Description copied from interface:
Component
- Path of the component relative to basedir of the parent module.
- Specified by:
path
in interface Component<SourceFile>
- Returns:
- null if this component is not a child of a module
setPath
public MockSourceFile setPath(String path)
qualifier
public String qualifier()
- Specified by:
qualifier
in interface Component<SourceFile>
setQualifier
public MockSourceFile setQualifier(String qualifier)
language
public String language()
setLanguage
public MockSourceFile setLanguage(String language)
name
public String name()
- Specified by:
name
in interface Component<SourceFile>
setName
public MockSourceFile setName(String name)
longName
public String longName()
- Specified by:
longName
in interface Component<SourceFile>
setLongName
public MockSourceFile setLongName(String longName)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
createMain
public static MockSourceFile createMain(String key)
Copyright © 2009–2015 SonarSource. All rights reserved.