sealed abstract class VirtualSourceElement extends SourceElement with Ordered[VirtualSourceElement]
A VirtualSourceElement
is the representation of some source element that may be
detached from the concrete source element that represents the implementation; that is,
the virtual source element may not have a reference to the concrete element.
- Alphabetic
- By Inheritance
- VirtualSourceElement
- Ordered
- Comparable
- SourceElement
- CommonSourceElementAttributes
- CommonAttributes
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def classType: ReferenceType
Returns the declared/declaring class type of this
VirtualSourceElement
.Returns the declared/declaring class type of this
VirtualSourceElement
. If thisVirtualSourceElement
is a VirtualClass, the returned type is the declared class else it is the declaring class. - abstract def compare(that: VirtualSourceElement): Int
The "natural order" is VirtualClasses < VirtualFields < VirtualMethods.
The "natural order" is VirtualClasses < VirtualFields < VirtualMethods.
- Definition Classes
- VirtualSourceElement → Ordered
- abstract def getLineNumber(project: ClassFileRepository): Option[Int]
Returns the best line number information available.
- abstract def toJava: String
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def <(that: VirtualSourceElement): Boolean
- Definition Classes
- Ordered
- def <=(that: VirtualSourceElement): Boolean
- Definition Classes
- Ordered
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(that: VirtualSourceElement): Boolean
- Definition Classes
- Ordered
- def >=(that: VirtualSourceElement): Boolean
- Definition Classes
- Ordered
- def annotations: Annotations
The list of all annotations.
The list of all annotations. In general, if a specific annotation is searched for the method runtimeVisibleAnnotations or runtimeInvisibleAnnotations should be used.
- Definition Classes
- CommonSourceElementAttributes
- def asClassFile: ClassFile
- Definition Classes
- SourceElement
- def asField: Field
- Definition Classes
- SourceElement
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asMethod: Method
- Definition Classes
- SourceElement
- def attributes: Attributes
- Definition Classes
- VirtualSourceElement → CommonAttributes
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def compareAttributes(other: Attributes, config: SimilarityTestConfiguration): Option[AnyRef]
Compares this element's attributes with the given one.
Compares this element's attributes with the given one.
- returns
None, if both attribute lists are similar; Some(<description of the difference>) otherwise.
- Attributes
- protected[this]
- Definition Classes
- CommonAttributes
- def compareTo(that: VirtualSourceElement): Int
- Definition Classes
- Ordered → Comparable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def foreachTypeAnnotation[U](f: (TypeAnnotation) => U): Unit
- Definition Classes
- CommonAttributes
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def isClass: Boolean
- Definition Classes
- SourceElement
- def isDeprecated: Boolean
Returns true if this (field, method, class) declaration is declared as deprecated.
Returns true if this (field, method, class) declaration is declared as deprecated.
Note
The deprecated attribute is always set by the Java compiler when either the deprecated annotation or the JavaDoc tag is used.
- Definition Classes
- CommonSourceElementAttributes
- def isField: Boolean
- Definition Classes
- SourceElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMethod: Boolean
- Definition Classes
- SourceElement
- def isSynthetic: Boolean
True
if this element was created by the compiler and the attributeSynthetic
is present.True
if this element was created by the compiler and the attributeSynthetic
is present. Compilers are, however, free to use the attribute or the corresponding access flag.- Definition Classes
- CommonSourceElementAttributes
- final def isVirtual: Boolean
- Definition Classes
- VirtualSourceElement → SourceElement
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def runtimeInvisibleAnnotations: Annotations
- Definition Classes
- CommonSourceElementAttributes
- def runtimeInvisibleTypeAnnotations: TypeAnnotations
- Definition Classes
- CommonAttributes
- def runtimeVisibleAnnotations: Annotations
- Definition Classes
- CommonSourceElementAttributes
- def runtimeVisibleTypeAnnotations: TypeAnnotations
- Definition Classes
- CommonAttributes
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated