Annotation

tastyquery.Annotations.Annotation
See theAnnotation companion object
final class Annotation(val tree: TermTree)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

The symbol of the constructor used in the annotation.

The symbol of the constructor used in the annotation.

This operation is not supported for annotations read from Java or Scala 2. It will throw an UnsupportedOperationException.

Attributes

def argCount: Int
def argIfConstant(idx: Int): Option[Constant]
def arguments: List[TermTree]

All the term arguments to the annotation's constructor.

All the term arguments to the annotation's constructor.

If the constructor has several parameter lists, the arguments are flattened in a single list.

NamedArgs are not visible with this method. They are replaced by their right-hand-side.

Attributes

def symbol(using Context): ClassSymbol

The annotation class symbol.

The annotation class symbol.

Attributes

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val tree: TermTree