org.omnaest.utils.proxy
Class BeanProperty.Name
java.lang.Object
org.omnaest.utils.proxy.BeanProperty.Name
- Enclosing class:
- BeanProperty
public class BeanProperty.Name
- extends Object
Property BeanProperty.Name resolver for a Java BeanProperty
- Author:
- Omnaest
- See Also:
of(Object),
of(Object...),
BeanProperty
|
Method Summary |
String[] |
of(Object... methodCalls)
{
TestInterface testInterface = this.property.newInstanceOfTransitivlyCapturedType( TestInterface.class );
String[] propertyNames = this.property.name.of( testInterface.getSomething(), testInterface.getSomethingPrimitive(),
testInterface.getTestSubInterface().getSomething() );
}
|
String |
of(Object methodCall)
Returns the canonical property name related to the last method call done from the stub created by the
BeanProperty.newInstanceOfCapturedType(Class) method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanProperty.Name
public BeanProperty.Name()
of
public String of(Object methodCall)
- Returns the canonical property name related to the last method call done from the stub created by the
BeanProperty.newInstanceOfCapturedType(Class) method.
This should be used like
{
TestInterface testInterface = this.property.newInstanceOfTransitivlyCapturedType( TestInterface.class );
String propertyName = this.property.name.of( testInterface.getSomething() );
}
where the stub is a previously created stub by this BeanProperty instance.
- Parameters:
methodCall -
- Returns:
- See Also:
of(Object...),
BeanProperty.newInstanceOfCapturedType(Class)
of
public String[] of(Object... methodCalls)
{
TestInterface testInterface = this.property.newInstanceOfTransitivlyCapturedType( TestInterface.class );
String[] propertyNames = this.property.name.of( testInterface.getSomething(), testInterface.getSomethingPrimitive(),
testInterface.getTestSubInterface().getSomething() );
}
- Parameters:
methodCalls -
- Returns:
- See Also:
of(Object),
BeanProperty.newInstanceOfCapturedType(Class)
Copyright © 2013. All Rights Reserved.