public class IrLocation extends Object implements Serializable
IrDocComment
.Constructor and Description |
---|
IrLocation(int startPosition,
int length)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getLength()
Returns the character length.
|
int |
getStartPosition()
Returns the starting position.
|
int |
hashCode() |
static IrLocation |
move(IrLocation base,
int offset)
Returns a new location object which is moved the base location as the specified offset.
|
String |
toString() |
public IrLocation(int startPosition, int length)
startPosition
- the starting position (0-origin)length
- the character lengthIllegalArgumentException
- if some parameters are negative valuepublic int getStartPosition()
public int getLength()
public static IrLocation move(IrLocation base, int offset)
base
- the base location (nullable)offset
- the moving offsetnull
if the base location is also null
IllegalArgumentException
- if the moved location starts with negative positionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.