public class PropertyMethodType extends MethodType
MethodType.OperationType
Modifier and Type | Field and Description |
---|---|
static PropertyMethodType |
ADDER |
static PropertyMethodType |
CREATOR |
static PropertyMethodType |
DESTROYER |
static PropertyMethodType |
FINDER |
static PropertyMethodType |
GETTER |
static PropertyMethodType |
IS_INHERITED |
static PropertyMethodType |
ISSET |
static PropertyMethodType |
PROPERTY_METHOD |
static PropertyMethodType |
REMOVER |
static PropertyMethodType |
SETTER |
static PropertyMethodType |
STRING_GETTER |
static PropertyMethodType |
STRING_SETTER |
private java.lang.String |
suffix |
ANY, BASE, BOOLEAN, EXPLICIT_OPERATION, IMPLICIT_OPERATION, KEY_GETTER, NO_ARGS, NO_EXCEPTIONS, OBJECT, OPERATION, STRING, VALIDATOR, VOID
Modifier | Constructor and Description |
---|---|
protected |
PropertyMethodType() |
protected |
PropertyMethodType(java.lang.String[] prefixes,
com.bea.util.jam.JClass returnType,
com.bea.util.jam.JClass paramType) |
protected |
PropertyMethodType(java.lang.String prefix,
com.bea.util.jam.JClass returnType,
com.bea.util.jam.JClass paramType) |
protected |
PropertyMethodType(java.lang.String prefix,
java.lang.String suffix,
com.bea.util.jam.JClass returnType,
com.bea.util.jam.JClass paramType) |
Modifier and Type | Method and Description |
---|---|
MethodDeclaration |
createDeclaration(BeanClass bean,
com.bea.util.jam.JClass type,
java.lang.String propName) |
MethodDeclaration |
createDeclaration(BeanClass bean,
com.bea.util.jam.JMethod method) |
protected java.lang.String |
getName(java.lang.String propName) |
private java.lang.String |
getPrefix() |
java.lang.String |
getPrefix(java.lang.String methodName) |
boolean |
isType(MethodType type) |
boolean |
matches(com.bea.util.jam.JMethod method) |
protected boolean |
matchesNamePattern(java.lang.String methodName) |
createDeclaration, getName, getNames, matches
public static final PropertyMethodType PROPERTY_METHOD
public static final PropertyMethodType GETTER
public static final PropertyMethodType SETTER
public static final PropertyMethodType STRING_GETTER
public static final PropertyMethodType STRING_SETTER
public static final PropertyMethodType ISSET
public static final PropertyMethodType IS_INHERITED
public static final PropertyMethodType CREATOR
public static final PropertyMethodType DESTROYER
public static final PropertyMethodType ADDER
public static final PropertyMethodType REMOVER
public static final PropertyMethodType FINDER
private java.lang.String suffix
protected PropertyMethodType()
protected PropertyMethodType(java.lang.String prefix, com.bea.util.jam.JClass returnType, com.bea.util.jam.JClass paramType)
protected PropertyMethodType(java.lang.String prefix, java.lang.String suffix, com.bea.util.jam.JClass returnType, com.bea.util.jam.JClass paramType)
protected PropertyMethodType(java.lang.String[] prefixes, com.bea.util.jam.JClass returnType, com.bea.util.jam.JClass paramType)
public java.lang.String getPrefix(java.lang.String methodName)
public boolean isType(MethodType type)
isType
in class MethodType
public boolean matches(com.bea.util.jam.JMethod method)
matches
in class MethodType
public MethodDeclaration createDeclaration(BeanClass bean, com.bea.util.jam.JMethod method)
createDeclaration
in class MethodType
public MethodDeclaration createDeclaration(BeanClass bean, com.bea.util.jam.JClass type, java.lang.String propName)
protected boolean matchesNamePattern(java.lang.String methodName)
matchesNamePattern
in class MethodType
protected java.lang.String getName(java.lang.String propName)
private java.lang.String getPrefix()