public class ObjectDescription extends Object implements ValueDescription
ValueDescription.ValueKind| Constructor and Description |
|---|
ObjectDescription(ClassDescription objectType,
String methodName,
List<? extends ValueDescription> arguments)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<ValueDescription> |
getArguments()
Returns the arguments.
|
String |
getMethodName()
Returns the factory method name.
|
ValueDescription.ValueKind |
getValueKind()
Returns the value kind.
|
ClassDescription |
getValueType()
Returns the value type.
|
int |
hashCode() |
static ObjectDescription |
of(ClassDescription objectType,
List<? extends ValueDescription> arguments)
Creates a new instance.
|
static ObjectDescription |
of(ClassDescription objectType,
String methodName,
List<? extends ValueDescription> arguments)
Creates a new instance.
|
static ObjectDescription |
of(ClassDescription objectType,
String methodName,
ValueDescription... arguments)
Creates a new instance.
|
static ObjectDescription |
of(ClassDescription objectType,
ValueDescription... arguments)
Creates a new instance.
|
String |
toString() |
public ObjectDescription(ClassDescription objectType, String methodName, List<? extends ValueDescription> arguments)
objectType - the object typemethodName - the factory method name, or null to indicate constructorarguments - the method or constructor argumentspublic static ObjectDescription of(ClassDescription objectType, List<? extends ValueDescription> arguments)
objectType - the object typearguments - the constructor argumentspublic static ObjectDescription of(ClassDescription objectType, ValueDescription... arguments)
objectType - the object typearguments - the constructor argumentspublic static ObjectDescription of(ClassDescription objectType, String methodName, List<? extends ValueDescription> arguments)
objectType - the object typemethodName - the factory method namearguments - the method argumentspublic static ObjectDescription of(ClassDescription objectType, String methodName, ValueDescription... arguments)
objectType - the object typemethodName - the factory method namearguments - the method argumentspublic ValueDescription.ValueKind getValueKind()
ValueDescriptiongetValueKind in interface ValueDescriptionpublic ClassDescription getValueType()
ValueDescriptiongetValueType in interface ValueDescriptionpublic String getMethodName()
null if constructor is instead of class methodspublic List<ValueDescription> getArguments()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.