Package org.eclipse.emf.common.util
Class URI.URIPool.PlatformAccessUnit
java.lang.Object
org.eclipse.emf.common.util.Pool.AccessUnit<URI>
org.eclipse.emf.common.util.URI.URIPool.URIPoolAccessUnitBase
org.eclipse.emf.common.util.URI.URIPool.PlatformAccessUnit
- Enclosing class:
URI.URIPool
An access units for platform URI string-based access.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe base that implicitly precedes theURI.path().protected char[]A buffer uses for processing the path.protected booleanWhether the pathName needs encoding.protected StringThe path after it's been encoded.protected StringThe path being accessed.protected static final intThe hash code of"platform:/plugin/".protected static final intThe hash code of"platform:/plugin/".protected static final intThe hash code of"platform:/resource/".protected static final intThe hash code of"platform:/resource".protected int[]The boundaries of the path segments.protected intThe number ofURI.segments().protected int[]The hash code of the path segments.protected String[]The accumulated segments pulled from the path.protected intThe number of segments populated with strings during intern that need to be nulled during reset.Fields inherited from class org.eclipse.emf.common.util.URI.URIPool.URIPoolAccessUnitBase
charactersAccessUnit, stringAccessUnit, stringArraySegmentsAndSegmentCountAccessUnit, stringPoolEntry, substringAccessUnitFields inherited from class org.eclipse.emf.common.util.Pool.AccessUnit
createdEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates and instance managed by the given queue. -
Method Summary
Modifier and TypeMethodDescriptionGets the value that should be added to the pool.protected booleanUsed to determine whether the given value from the pool is equal to the value being accessed.voidreset(boolean isExclusive) Prepare the access unit for reuse.protected voidCaches the parameters and computes the hash code, which can involve encoding the path.Methods inherited from class org.eclipse.emf.common.util.URI.URIPool.URIPoolAccessUnitBase
getValue, intern, intern, intern, intern, intern, intern, internArray, setArbitraryValue, setValueMethods inherited from class org.eclipse.emf.common.util.Pool.AccessUnit
add, getEntry, match, rematches
-
Field Details
-
PLATFORM_RESOURCE_BASE_FULL_HASH_CODE
protected static final int PLATFORM_RESOURCE_BASE_FULL_HASH_CODEThe hash code of"platform:/resource/". -
PLATFORM_PLUGIN_BASE_FULL_HASH_CODE
protected static final int PLATFORM_PLUGIN_BASE_FULL_HASH_CODEThe hash code of"platform:/plugin/". -
PLATFORM_RESOURCE_BASE_INITIAL_HASH_CODE
protected static final int PLATFORM_RESOURCE_BASE_INITIAL_HASH_CODEThe hash code of"platform:/resource". -
PLATFORM_PLUGIN_BASE_INITIAL_HASH_CODE
protected static final int PLATFORM_PLUGIN_BASE_INITIAL_HASH_CODEThe hash code of"platform:/plugin/". -
base
The base that implicitly precedes theURI.path(). -
path
The path being accessed. -
encode
protected boolean encodeWhether the pathName needs encoding. -
characters
protected char[] charactersA buffer uses for processing the path. -
segments
The accumulated segments pulled from the path. -
segmentCount
protected int segmentCountThe number ofURI.segments(). -
usedSegmentCount
protected int usedSegmentCountThe number of segments populated with strings during intern that need to be nulled during reset. -
segmentBoundaries
protected int[] segmentBoundariesThe boundaries of the path segments. -
segmentHashCodes
protected int[] segmentHashCodesThe hash code of the path segments. -
encodedPath
The path after it's been encoded.
-
-
Constructor Details
-
PlatformAccessUnit
Creates and instance managed by the given queue.
-
-
Method Details
-
setValue
Caches the parameters and computes the hash code, which can involve encoding the path. -
matches
Description copied from class:Pool.AccessUnitUsed to determine whether the given value from the pool is equal to the value being accessed. The default implementation usesObject.equals(Object).- Overrides:
matchesin classPool.AccessUnit<URI>
-
getInternalizedValue
Description copied from class:Pool.AccessUnitGets the value that should be added to the pool. This can be specialized to internalized the value, e.g., to make a copy that uses minimal storage or is read only.- Overrides:
getInternalizedValuein classPool.AccessUnit<URI>
-
reset
public void reset(boolean isExclusive) Description copied from class:Pool.AccessUnitPrepare the access unit for reuse. In particular remove the hard references to each element in both thePool.AccessUnit.valuesandPool.AccessUnit.entriesand then reset thePool.AccessUnit.valuesLengthto 0- Overrides:
resetin classURI.URIPool.URIPoolAccessUnitBase
-