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

Variable Index

 o DECLARED
Identifies the set of declared members of a class or interface.
 o PUBLIC
Identifies the set of all public members of a class or interface, including inherited members.
 o clazz
 o exceptions
 o modifiers
 o name
 o parameterNames
 o parameters
 o returns

Method Index

 o equals(Object)
Return true if one expression is equivalent to another.
 o getDeclaringClass()
Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.
 o 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.
 o getExceptions()
Returns the exceptions of the method represented by this DTMethod object, as a String, e.g., "java.lang.NullPointerException,java.lang.NumberFormatException".
 o getJavadocRange()
gets the text range from the beginning of the first line of the member's Javadoc comment to the closing asterisk-slash characters
 o getModifiers()
Returns the Java language modifiers for the member or constructor represented by this Member, as an integer.
 o getName()
Returns the simple name of the underlying member or constructor represented by this Member.
 o getNumParameters()
Returns the number of parameters of the method represented by this DTMember.
 o getParameterNames()
Returns the parameter names of the method represented by this DTMember object, as a String, e.g., "c,i".
 o 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.
 o 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.
 o getParameters()
Returns the parameters of the method represented by this DTMember object, as a String, e.g., "java.lang.String,int".
 o getReturns()
Returns the return type as a String, e.g., "java.lang.String".
 o getSourceRange()
gets the text range from the beginning of the member declaration to the closing brace (or semicolon for native or abstract members)
 o getType()
Returns a Class object that identifies the declared type for the field or the return type of the method.
 o hashCode()
Returns a hashcode for this DTMember.
 o parametersToClassArray(String)
Utility method converts a comma-delimited string of type names into an array of DTClass.
 o parametersToStringArray(String)
Utility method converts a comma-delimited string of type names into an array of String.
 o validate()
Ensure that this member is valid in its project

Variables

 o DECLARED
public static final int DECLARED
Identifies the set of declared members of a class or interface. Inherited members are not included.

 o PUBLIC
public static final int PUBLIC
Identifies the set of all public members of a class or interface, including inherited members.

 o clazz
protected com.symantec.itools.vcafe.openapi.dtreflect.DTClass clazz
 o exceptions
protected java.lang.String exceptions
 o modifiers
protected int modifiers
 o name
protected java.lang.String name
 o parameterNames
protected java.lang.String parameterNames
 o parameters
protected java.lang.String parameters
 o returns
protected java.lang.String returns

Methods

 o 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
 o 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.

 o 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
 o 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.

 o 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

 o 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
 o getName
public java.lang.String getName()
Returns the simple name of the underlying member or constructor represented by this Member.

 o getNumParameters
public int getNumParameters()
Returns the number of parameters of the method represented by this DTMember.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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)

 o 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.

 o 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
 o 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"
 o 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"
 o validate
public abstract boolean validate()
Ensure that this member is valid in its project


All Packages  Class Hierarchy  This Package  Previous  Next  Index