object ReflectionUtil
- Alphabetic
- By Inheritance
- ReflectionUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
ClassTag
for the givenTypeTag
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @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
IllegalArgumentException
is 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
IllegalArgumentException
is thrown. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @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
IllegalArgumentException
is 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
TypeTag
for the givenType
.Creates a corresponding
TypeTag
for the givenType
. Allows to use reflection-created objects in APIs expectingTypeTag
. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()