AnnotationUtils

org.encalmo.utils.AnnotationUtils

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class AnnotationInfo(name: String, params: Map[String, Any])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def annotationsOf(using cache: StatementsCache)(tpe: cache.quotes.reflect.TypeRepr): Set[AnnotationInfo]
def computeFieldAnnotations(using cache: StatementsCache)(tpe: cache.quotes.reflect.TypeRepr, fieldName: String): Set[AnnotationInfo]
def getFieldAnnotations[A](fieldName: String)(using evidence$1: Type[A], Quotes): List[x$2.reflect.Term]
def getValueAnnotations(using cache: StatementsCache)(valueTerm: cache.quotes.reflect.Term): Set[AnnotationInfo]

Extensions

Extensions

extension (annotations: Set[AnnotationInfo])
def exists[Annotation <: StaticAnnotation](using evidence$1: Type[Annotation], cache: StatementsCache): Boolean
def find[Annotation <: StaticAnnotation](using evidence$1: Type[Annotation], cache: StatementsCache): Option[AnnotationInfo]
def getString[Annotation <: StaticAnnotation : Type](using cache: StatementsCache)(parameter: String): Option[String]
def getStringOrDefault[Annotation <: StaticAnnotation : Type](using cache: StatementsCache)(parameter: String, defaultValue: String): String
def getTerm[Annotation <: StaticAnnotation : Type](using cache: StatementsCache)(parameter: String): Option[cache.quotes.reflect.Term]
def getTermOrDefault[Annotation <: StaticAnnotation : Type](using cache: StatementsCache)(parameter: String, defaultValue: cache.quotes.reflect.Term): cache.quotes.reflect.Term
def hash(filter: String => Boolean): String
def remove[Annotation <: StaticAnnotation](using evidence$1: Type[Annotation], cache: StatementsCache): Set[AnnotationInfo]
extension (using cache: StatementsCache)(annotations: List[cache.quotes.reflect.Term])