org.apache.hivemind.impl
Class LocationImpl
java.lang.Object
   org.apache.hivemind.impl.LocationImpl
org.apache.hivemind.impl.LocationImpl
- All Implemented Interfaces: 
- Location
- public final class LocationImpl 
- extends java.lang.Object- implements Location
Implementation of the Location interface.
 Uses a line and column based position.
- Author:
- Howard Lewis Ship
 
 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
 
LocationImpl
public LocationImpl(Resource resource)
LocationImpl
public LocationImpl(Resource resource,
                    int lineNumber)
LocationImpl
public LocationImpl(Resource resource,
                    int lineNumber,
                    int columnNumber)
getResource
public Resource getResource()
- Description copied from interface: Location
- The resource containing the location.
 
- 
- Specified by:
- getResourcein interface- Location
 
- 
 
getLineNumber
public int getLineNumber()
- 
 
- 
 
getColumnNumber
public int getColumnNumber()
- 
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- java.lang.Object
 
- 
 
equals
public boolean equals(java.lang.Object other)
- 
- Overrides:
- equalsin class- java.lang.Object
 
- 
 
getPosition
public java.lang.String getPosition()
- Returns the position in format "line x, column y"
 
- 
- Specified by:
- getPositionin interface- Location
 
- 
- See Also:
- Location.getPosition()
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object
 
- 
 
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.