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

Concise view

Value members

Concrete methods

The symbol of the constructor used in the annotation.

The symbol of the constructor used in the annotation.

Attributes

def argCount(using Context): Int
def argIfConstant(idx: Int)(using Context): Option[Constant]
def arguments(using Context): 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

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