class TransparentPosition extends RangePosition
- Alphabetic
- By Inheritance
- TransparentPosition
- RangePosition
- OffsetPosition
- DefinedPosition
- Position
- DeprecatedPosition
- InternalPositionImpl
- Position
- Attachments
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TransparentPosition(sourceIn: SourceFile, startIn: Int, pointIn: Int, endIn: Int)
Type Members
-
type
Pos = Position
The position type of this attachment
The position type of this attachment
- Definition Classes
- Position → Position → Attachments
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
^(point: Int): Position
- Definition Classes
- InternalPositionImpl
-
def
^|(that: Position): Position
- Definition Classes
- InternalPositionImpl
-
def
all: Predef.Set[Any]
The underlying payload with the guarantee that no two elements have the same type.
The underlying payload with the guarantee that no two elements have the same type.
- Definition Classes
- Attachments
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
column: Int
- Definition Classes
- InternalPositionImpl
-
def
contains[T](implicit arg0: ClassTag[T]): Boolean
Check underlying payload contains an instance of type
T
.Check underlying payload contains an instance of type
T
.- Definition Classes
- Attachments
-
def
end: Int
The end of the position's range, or the point if not a range position.
The end of the position's range, or the point if not a range position.
- Definition Classes
- RangePosition → OffsetPosition → Position → InternalPositionImpl → Position
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- DefinedPosition → AnyRef → Any
-
def
fail(what: String): Nothing
- Attributes
- protected
- Definition Classes
- Position
-
def
finalPosition: Pos
Map this position to its position in the original source file (which may be this position unchanged.)
Map this position to its position in the original source file (which may be this position unchanged.)
- Definition Classes
- InternalPositionImpl
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
focus: Position
- Definition Classes
- InternalPositionImpl
-
def
focusEnd: Position
- Definition Classes
- InternalPositionImpl
-
def
focusStart: Position
Convert a range position to a simple offset.
Convert a range position to a simple offset.
- Definition Classes
- InternalPositionImpl
-
def
get[T](implicit arg0: ClassTag[T]): Option[T]
An underlying payload of the given class type
T
.An underlying payload of the given class type
T
.- Definition Classes
- Attachments
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- DefinedPosition → AnyRef → Any
-
def
includes(pos: Position): Boolean
- Definition Classes
- InternalPositionImpl
-
final
def
isDefined: Boolean
Is this position not a NoPosition? If isDefined is true, offset and source are both defined.
Is this position not a NoPosition? If isDefined is true, offset and source are both defined.
- Definition Classes
- DefinedPosition → Position → InternalPositionImpl → Position
-
def
isEmpty: Boolean
- Definition Classes
- Attachments
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isOffset: Boolean
- Definition Classes
- InternalPositionImpl
-
def
isOpaqueRange: Boolean
- Definition Classes
- InternalPositionImpl
-
def
isRange: Boolean
Is this position a range position?
Is this position a range position?
- Definition Classes
- RangePosition → OffsetPosition → Position → InternalPositionImpl → Position
-
def
isTransparent: Boolean
Is this position a transparent position?
Is this position a transparent position?
- Definition Classes
- TransparentPosition → InternalPositionImpl → Position
-
def
line: Int
- Definition Classes
- InternalPositionImpl
-
def
lineCaret: String
- Definition Classes
- InternalPositionImpl
-
def
lineContent: String
- Definition Classes
- InternalPositionImpl
-
def
makeTransparent: Position
- Definition Classes
- InternalPositionImpl
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
overlaps(pos: Position): Boolean
- Definition Classes
- InternalPositionImpl
-
def
point: Int
The point (where the ^ is) of the position, which is easiest to access using the line and column values. The line content is also available.
The point (where the ^ is) of the position, which is easiest to access using the line and column values. The line content is also available.
- Definition Classes
- OffsetPosition → Position → InternalPositionImpl → Position
-
def
pointOrElse(alt: Int): Int
- Definition Classes
- InternalPositionImpl
-
def
pos: Position
The underlying position
The underlying position
- Definition Classes
- Position → Attachments
-
def
precedes(pos: Position): Boolean
- Definition Classes
- InternalPositionImpl
-
def
properlyIncludes(pos: Position): Boolean
- Definition Classes
- InternalPositionImpl
-
def
properlyPrecedes(pos: Position): Boolean
- Definition Classes
- InternalPositionImpl
-
def
remove[T](implicit arg0: ClassTag[T]): Attachments { type Pos = TransparentPosition.this.Pos }
Creates a copy of this attachment with the payload of the given class type
T
removed.Creates a copy of this attachment with the payload of the given class type
T
removed.- Definition Classes
- Attachments
-
def
samePointAs(that: Position): Boolean
- Definition Classes
- InternalPositionImpl
-
def
sameRange(pos: Position): Boolean
- Definition Classes
- InternalPositionImpl
-
def
show: String
- Definition Classes
- InternalPositionImpl
-
def
showDebug: String
- Definition Classes
- InternalPositionImpl
-
def
showError(msg: String): String
- Definition Classes
- InternalPositionImpl
-
def
source: SourceFile
Java file corresponding to the source file of this position.
Java file corresponding to the source file of this position.
The return type is
scala.reflect.io.AbstractFile
, which belongs to an experimental part of Scala reflection. It should not be used unless you know what you are doing. In subsequent releases, this API will be refined and exposed as a part of scala.reflect.api.- Definition Classes
- OffsetPosition → Position → InternalPositionImpl → Position
-
def
start: Int
The start of the position's range, or the point if not a range position.
The start of the position's range, or the point if not a range position.
- Definition Classes
- RangePosition → OffsetPosition → Position → InternalPositionImpl → Position
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- DefinedPosition → AnyRef → Any
-
def
union(pos: Position): Position
- Definition Classes
- InternalPositionImpl
-
def
update[T](attachment: T)(implicit arg0: ClassTag[T]): Attachments { type Pos = TransparentPosition.this.Pos }
Creates a copy of this attachment with the payload slot of T added/updated with the provided value.
Creates a copy of this attachment with the payload slot of T added/updated with the provided value. Replaces an existing payload of the same type, if exists.
- Definition Classes
- Attachments
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withEnd(end: Int): Position
- Definition Classes
- InternalPositionImpl
-
def
withPoint(point: Int): Position
- Definition Classes
- InternalPositionImpl
-
def
withPos(newPos: Position): Attachments { type Pos = TransparentPosition.this.Pos }
Creates a copy of this attachment with the position replaced by
newPos
Creates a copy of this attachment with the position replaced by
newPos
- Definition Classes
- Position → Attachments
-
def
withShift(shift: Int): Position
- Definition Classes
- InternalPositionImpl
-
def
withSource(source: SourceFile): Position
- Definition Classes
- InternalPositionImpl
-
def
withStart(start: Int): Position
Copy a range position with a changed value.
Copy a range position with a changed value.
- Definition Classes
- InternalPositionImpl
-
def
|(that: Position): Position
- Definition Classes
- InternalPositionImpl
-
def
|(that: Position, poses: Position*): Position
If you have it in for punctuation you might not like these methods.
If you have it in for punctuation you might not like these methods. However I think they're aptly named.
| means union means "the point" (look, it's a caret) | means union, taking the point of the rhs ^| means union, taking the point of the lhs
- Definition Classes
- InternalPositionImpl
-
def
|^(that: Position): Position
- Definition Classes
- InternalPositionImpl
Deprecated Value Members
-
def
dbgString: String
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
showDebug
-
def
endOrPoint: Int
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
end
instead
-
def
inUltimateSource(source: SourceFile): Position
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
finalPosition
-
def
lineCarat: String
- Definition Classes
- InternalPositionImpl
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
lineCaret
-
def
lineWithCarat(maxWidth: Int): (String, String)
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
lineCaret
-
def
offset: Option[Int]
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.9.0) use
point
-
def
safeLine: Int
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
line
-
def
startOrPoint: Int
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
start
instead
-
def
toSingleLine: Position
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
focus
-
def
withSource(source: SourceFile, shift: Int): Position
- Definition Classes
- DeprecatedPosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
withSource(source)
andwithShift