object ReflectionUtil
- Alphabetic
- By Inheritance
- ReflectionUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def classTag[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): ClassTag[T]
Creates a corresponding
ClassTagfor the givenTypeTag - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def constructorParams[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[(String, scala.reflect.api.JavaUniverse.Type)]
- def constructorParams(tpe: scala.reflect.api.JavaUniverse.Type): Seq[(String, scala.reflect.api.JavaUniverse.Type)]
Returns a list of parameter names and types of the main constructor.
Returns a list of parameter names and types of the main constructor. The main constructor is assumed to be the one that has the highest number of parameters. In case on ambiguity, this method throws IllegalArgumentException.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def findGlobalObject[T](objectName: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): T
Returns either a global Scala object by its fully qualified name or a singleton instance of a Java class identified by its fully qualified class name.
Returns either a global Scala object by its fully qualified name or a singleton instance of a Java class identified by its fully qualified class name. Java class instances are cached. The Java class must provide a default constructor.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getters[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[(String, scala.reflect.api.JavaUniverse.Type)]
- def getters(tpe: scala.reflect.api.JavaUniverse.Type): Seq[(String, scala.reflect.api.JavaUniverse.Type)]
Returns a list of names and return types of 0-argument public methods of a Scala type
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isScalaTuple(tpe: scala.reflect.api.JavaUniverse.Type): Boolean
Returns true if the type is scala tuple of any arity
- def isScalaTuple(symbol: scala.reflect.api.JavaUniverse.Symbol): Boolean
Returns true if the type is scala tuple of any arity
- def method(tpe: scala.reflect.api.JavaUniverse.Type, methodName: String): scala.reflect.api.JavaUniverse.Type
Looks up a method by name in a type.
Looks up a method by name in a type. The method must exist, otherwise
IllegalArgumentExceptionis thrown. - def methodParamTypes(tpe: scala.reflect.api.JavaUniverse.Type, methodName: String): Seq[scala.reflect.api.JavaUniverse.Type]
Returns the type of the parameters of the given method.
Returns the type of the parameters of the given method. The method must exist, otherwise
IllegalArgumentExceptionis thrown. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def returnType(tpe: scala.reflect.api.JavaUniverse.Type, methodName: String): scala.reflect.api.JavaUniverse.Type
Returns the return type of the method.
Returns the return type of the method. The method must exist, otherwise
IllegalArgumentExceptionis thrown. - def setters[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[(String, scala.reflect.api.JavaUniverse.Type)]
- def setters(tpe: scala.reflect.api.JavaUniverse.Type): Seq[(String, scala.reflect.api.JavaUniverse.Type)]
Returns a list of names and parameter types of 1-argument public methods of a Scala type, returning no result (Unit)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def typeToTypeTag[T](tpe: scala.reflect.api.JavaUniverse.Type): scala.reflect.api.JavaUniverse.TypeTag[T]
Creates a corresponding
TypeTagfor the givenType.Creates a corresponding
TypeTagfor the givenType. Allows to use reflection-created objects in APIs expectingTypeTag. - 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]) @native()
- 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
(Since version 9)