Top Fields Constructors Methods
org.joni

public final Class MultiRegion

extends Region
Class Inheritance
Imports
java.util.Arrays

Field Summary

Modifier and TypeField and Description
private final int[]
Inherited from org.joni.Region:
historyRootREGION_NOTPOS

Constructor Summary

AccessConstructor and Description
public
MultiRegion(int num)

public
MultiRegion(int begin, int end)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
clear()

Implements abstract org.joni.Region.clear.

public MultiRegion
clone()

Implements abstract org.joni.Region.clone.

Creates and returns a copy of this object.

public int
getBeg(int index)

Implements abstract org.joni.Region.getBeg.

public int
getEnd(int index)

Implements abstract org.joni.Region.getEnd.

public final int
getNumRegs()

Implements abstract org.joni.Region.getNumRegs.

public int
setBeg(int index, int value)

Implements abstract org.joni.Region.setBeg.

public int
setEnd(int index, int value)

Implements abstract org.joni.Region.setEnd.

Inherited from org.joni.Region:
getCaptureTreenewRegionnewRegionsetCaptureTreetoString

Field Detail

begEndback to summary
private final int[] begEnd

Constructor Detail

MultiRegionback to summary
public MultiRegion(int num)
MultiRegionback to summary
public MultiRegion(int begin, int end)

Method Detail

clearback to summary
pack-priv void clear()

Implements abstract org.joni.Region.clear.

Annotations
@Override
cloneback to summary
public MultiRegion clone()

Implements abstract org.joni.Region.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:MultiRegion

a clone of this instance.

Annotations
@Override
getBegback to summary
public int getBeg(int index)

Implements abstract org.joni.Region.getBeg.

Annotations
@Override
getEndback to summary
public int getEnd(int index)

Implements abstract org.joni.Region.getEnd.

Annotations
@Override
getNumRegsback to summary
public final int getNumRegs()

Implements abstract org.joni.Region.getNumRegs.

Annotations
@Override
setBegback to summary
public int setBeg(int index, int value)

Implements abstract org.joni.Region.setBeg.

Annotations
@Override
setEndback to summary
public int setEnd(int index, int value)

Implements abstract org.joni.Region.setEnd.

Annotations
@Override