Class com.symantec.itools.vcafe.openapi.dtreflect.DTMember
All Packages Class Hierarchy This Package Previous Next Index
Class com.symantec.itools.vcafe.openapi.dtreflect.DTMember
Object
|
+----com.symantec.itools.vcafe.openapi.dtreflect.DTMember
- public abstract class DTMember
- extends Object
- implements Serializable
-
DECLARED
- Identifies the set of declared members of a class or interface.
-
PUBLIC
- Identifies the set of all public members of a class or interface,
including inherited members.
-
clazz
-
-
exceptions
-
-
modifiers
-
-
name
-
-
parameterNames
-
-
parameters
-
-
returns
-
-
equals(Object)
- Return true if one expression is equivalent to another.
-
getDeclaringClass()
- Returns the Class object representing the class or interface
that declares the member or constructor represented by this Member.
-
getExceptionTypes()
- Returns an array of DTClass objects that represent the types of
the checked exceptions thrown by the underlying method
represented by this DTMethod object.
-
getExceptions()
- Returns the exceptions of the method represented by this DTMethod
object, as a String, e.g., "java.lang.NullPointerException,java.lang.NumberFormatException".
-
getJavadocRange()
- gets the text range from the beginning of the first line of the member's Javadoc comment
to the closing asterisk-slash characters
-
getModifiers()
- Returns the Java language modifiers for the member or
constructor represented by this Member, as an integer.
-
getName()
- Returns the simple name of the underlying member or constructor
represented by this Member.
-
getNumParameters()
- Returns the number of parameters of the method represented by this DTMember.
-
getParameterNames()
- Returns the parameter names of the method represented by this DTMember
object, as a String, e.g., "c,i".
-
getParameterTypeNames()
- Returns an array of String objects that represent the formal
parameter type names, in declaration order, of the method/constructor
represented by this DTMember object.
-
getParameterTypes()
- Returns an array of DTClass objects that represent the formal
parameter types, in declaration order, of the method/constructor
represented by this DTMember object.
-
getParameters()
- Returns the parameters of the method represented by this DTMember
object, as a String, e.g., "java.lang.String,int".
-
getReturns()
- Returns the return type as a String, e.g., "java.lang.String".
-
getSourceRange()
- gets the text range from the beginning of the member declaration to the closing brace
(or semicolon for native or abstract members)
-
getType()
- Returns a Class object that identifies the declared type for
the field or the return type of the method.
-
hashCode()
- Returns a hashcode for this DTMember.
-
parametersToClassArray(String)
- Utility method converts a comma-delimited string of
type names into an array of DTClass.
-
parametersToStringArray(String)
- Utility method converts a comma-delimited string of
type names into an array of String.
-
validate()
- Ensure that this member is valid in its project
DECLARED
public static final int DECLARED
- Identifies the set of declared members of a class or interface.
Inherited members are not included.
PUBLIC
public static final int PUBLIC
- Identifies the set of all public members of a class or interface,
including inherited members.
clazz
protected com.symantec.itools.vcafe.openapi.dtreflect.DTClass clazz
exceptions
protected java.lang.String exceptions
modifiers
protected int modifiers
name
protected java.lang.String name
parameterNames
protected java.lang.String parameterNames
parameters
protected java.lang.String parameters
returns
protected java.lang.String returns
equals
public boolean equals(Object obj)
- Return true if one expression is equivalent to another.
Argument values are not taken into account in the comparision,
just the "value" of the expression.
- Overrides:
- equals in class Object
getDeclaringClass
public com.symantec.itools.vcafe.openapi.dtreflect.DTClass getDeclaringClass()
- Returns the Class object representing the class or interface
that declares the member or constructor represented by this Member.
getExceptionTypes
public com.symantec.itools.vcafe.openapi.dtreflect.DTClass[] getExceptionTypes()
- Returns an array of DTClass objects that represent the types of
the checked exceptions thrown by the underlying method
represented by this DTMethod object. Returns an array of length
0 if the method throws no checked exceptions. Returns null
in the corresponding array element if a class cannot be created.
- See Also:
- nonNull
getExceptions
public java.lang.String getExceptions()
- Returns the exceptions of the method represented by this DTMethod
object, as a String, e.g., "java.lang.NullPointerException,java.lang.NumberFormatException".
The exceptions appear in alphabetical order.
getJavadocRange
public abstract com.symantec.itools.vcafe.openapi.Range getJavadocRange()
- gets the text range from the beginning of the first line of the member's Javadoc comment
to the closing asterisk-slash characters
getModifiers
public int getModifiers()
- Returns the Java language modifiers for the member or
constructor represented by this Member, as an integer. The
Modifier class should be used to decode the modifiers in
the integer.
- See Also:
- Modifier
getName
public java.lang.String getName()
- Returns the simple name of the underlying member or constructor
represented by this Member.
getNumParameters
public int getNumParameters()
- Returns the number of parameters of the method represented by this DTMember.
getParameterNames
public java.lang.String getParameterNames()
- Returns the parameter names of the method represented by this DTMember
object, as a String, e.g., "c,i".
For fields, getParameters() returns an empty string.
getParameterTypeNames
public java.lang.String[] getParameterTypeNames()
- Returns an array of String objects that represent the formal
parameter type names, in declaration order, of the method/constructor
represented by this DTMember object. Returns an array of length
0 if the underlying method takes no parameters,or for a field.
Returns null if a class could not be created.
getParameterTypes
public com.symantec.itools.vcafe.openapi.dtreflect.DTClass[] getParameterTypes()
- Returns an array of DTClass objects that represent the formal
parameter types, in declaration order, of the method/constructor
represented by this DTMember object. Returns an array of length
0 if the underlying method takes no parameters or for a field.
Returns null if a class could not be created.
getParameters
public java.lang.String getParameters()
- Returns the parameters of the method represented by this DTMember
object, as a String, e.g., "java.lang.String,int".
For fields, getParameters() returns an empty string.
getReturns
public java.lang.String getReturns()
- Returns the return type as a String, e.g., "java.lang.String".
For constructors, the type is "void". For fields, this is
the field type.
getSourceRange
public abstract com.symantec.itools.vcafe.openapi.Range getSourceRange()
- gets the text range from the beginning of the member declaration to the closing brace
(or semicolon for native or abstract members)
getType
public com.symantec.itools.vcafe.openapi.dtreflect.DTClass getType()
- Returns a Class object that identifies the declared type for
the field or the return type of the method. Constructor type
is always DTClass.VoidType.
hashCode
public int hashCode()
- Returns a hashcode for this DTMember. The hashcode is computed
as the exclusive-or of the hashcodes for the declaring class name
and the member's name.
- Overrides:
- hashCode in class Object
parametersToClassArray
public com.symantec.itools.vcafe.openapi.dtreflect.DTClass[] parametersToClassArray(String sig)
- Utility method converts a comma-delimited string of
type names into an array of DTClass. Like most
other methods, does not throw if DTClass can't be
created, just returns null in the corresponding
array entry.
- Parameters:
- sig - string of types, e.g., "int,java.lang.String"
parametersToStringArray
public java.lang.String[] parametersToStringArray(String sig)
- Utility method converts a comma-delimited string of
type names into an array of String.
- Parameters:
- sig - string of types, e.g., "int,java.lang.String"
validate
public abstract boolean validate()
- Ensure that this member is valid in its project
All Packages Class Hierarchy This Package Previous Next Index