|
JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.service.Location
public final class Location
A location at which a service was defined.
| Constructor Summary | |
|---|---|
Location(String fileName,
int lineNumber,
int columnNumber,
Location parentLocation)
Create a new instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(Location obj)
Compare this location with another. |
boolean |
equals(Object obj)
Compare this location with another. |
int |
getColumnNumber()
Get the column number. |
String |
getFileName()
Get the file name. |
int |
getLineNumber()
Get the line number. |
int |
hashCode()
Get the hash code. |
String |
toString()
Get the human-readable string representation of this location. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Location(String fileName,
int lineNumber,
int columnNumber,
Location parentLocation)
fileName - the file name, or null if unknownlineNumber - the line number, or 0 if unknowncolumnNumber - the column number, or 0 if unknownparentLocation - the parent location, or null for none| Method Detail |
|---|
public String getFileName()
null if unknownpublic int getLineNumber()
0 if unknownpublic int getColumnNumber()
0 if unknownpublic int hashCode()
equals(); location objects
are not generally optimized to be usable as hash keys.
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the other location
true if they are equal, false if they are not equal or the argument is not a locationpublic boolean equals(Location obj)
obj - the other location
true if they are equal, false if they are not equal or the argument is nullpublic String toString()
toString in class Object
|
JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||