StaticMethodParameter

wvlet.airframe.surface.StaticMethodParameter
case class StaticMethodParameter(method: MethodRef, index: Int, name: String, isRequired: Boolean, isSecret: Boolean, surface: Surface, defaultValue: Option[Any], accessor: Option[Any => Any], methodArgAccessor: Option[Any => Any]) extends MethodParameter

Parameters of a Surface. Renamed from StdMethodParameter to StaticMethodParameter for binary compatibility

Attributes

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

Members list

Value members

Concrete methods

def get(x: Any): Any

Get this parameter value from a given object x

Get this parameter value from a given object x

Attributes

override def getDefaultValue: Option[Any]

Get the default value of this parameter. For example the default value of x in class A(x:Int = 10) is 10

Get the default value of this parameter. For example the default value of x in class A(x:Int = 10) is 10

Attributes

Definition Classes
override def getMethodArgDefaultValue(methodOwner: Any): Option[Any]

Method owner instance is necessary to find by-name parameter default values

Method owner instance is necessary to find by-name parameter default values

Attributes

Definition Classes
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

Inherited methods

override def call(obj: Any, x: Any*): Any

Attributes

Definition Classes
Inherited from:
Parameter
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product