public static class DefaultComponentLocation.DefaultLocationPart extends Object implements LocationPart, Serializable
Constructor and Description |
---|
DefaultLocationPart(String partPath,
Optional<TypedComponentIdentifier> partIdentifier,
Optional<String> fileName,
Optional<Integer> lineInFile) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<String> |
getFileName() |
Optional<Integer> |
getLineInFile() |
Optional<TypedComponentIdentifier> |
getPartIdentifier()
A location part represent an specific location of a component within another component.
|
String |
getPartPath() |
int |
hashCode() |
String |
toString() |
public DefaultLocationPart(String partPath, Optional<TypedComponentIdentifier> partIdentifier, Optional<String> fileName, Optional<Integer> lineInFile)
partPath
- the path of this partpartIdentifier
- the component identifier of the part if it's not a synthetic partfileName
- the file name in which the component was definedlineInFile
- the line number in which the component was definedpublic String getPartPath()
getPartPath
in interface LocationPart
public Optional<TypedComponentIdentifier> getPartIdentifier()
LocationPart
getPartIdentifier
in interface LocationPart
public Optional<String> getFileName()
getFileName
in interface LocationPart
public Optional<Integer> getLineInFile()
getLineInFile
in interface LocationPart
Copyright © 2018. All rights reserved.