io.sarl.lang.extralanguage.validator
Class MethodWrapper
Enclosing class:
AbstractExtraLanguageValidator
protected static class MethodWrapper
extends java.lang.Object
Method wrapper.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.6
Property Summary
Modifier and type Property and description
java.lang.reflect.Method method
Replies the wrapped method.
Constructor Summary
Constructor and description
new(Method)
Constructor.
Action Summary
Modifier and type Action and description
java.lang.reflect.Method getMethod
Replies the wrapped method.
void invoke(Context)
Invoke the method.
boolean isMatching(Class<T>)
Replies if this method is matching the parameter.
java.lang.String toString
Property Details
method
val method : java.lang.reflect.Method
Replies the wrapped method.

This property is an alias for the action: getMethod

Returns:
the wrapped method.
Constructor Details
new(Method)
new(Method)
Constructor.
Parameters:
method - the method.
Action Details
getMethod
def getMethod : java.lang.reflect.Method
Replies the wrapped method.
Returns:
the wrapped method.
invoke(Context)
def invoke(Context)
Invoke the method.
Parameters:
context - the context.
isMatching(Class<T>)
def isMatching(Class<T>) : boolean
Replies if this method is matching the parameter.
Parameters:
param - the parameter type.
Returns:
true if the method matches the parameter type.
toString
def toString : java.lang.String