|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.iiop.rmi.AbstractAnalysis org.jboss.iiop.rmi.ClassAnalysis org.jboss.iiop.rmi.ContainerAnalysis
Common base class of ValueAnalysis and InterfaceAnalysis. Routines here are conforming to the "Java(TM) Language to IDL Mapping Specification", version 1.1 (01-06-07).
Field Summary | |
protected ValueAnalysis[] |
abstractBaseValuetypes
Array of analysis of the abstract base valuetypes implemented/extended here. |
protected AttributeAnalysis[] |
attributes
Array of attributes. |
protected long |
classHashCode
The class hash code, as specified in "The Common Object Request Broker: Architecture and Specification" (01-02-33), section 10.6.2. |
protected ConstantAnalysis[] |
constants
Array of Constants. |
protected byte |
F_CONSTANT
Flags a field as being a constant (public final static). |
protected byte[] |
f_flags
Array with flags for all java fields. |
protected byte |
F_SPFFIELD
Flags a field as being the special public final static
java.io.ObjectStreamField[] serialPersistentFields field. |
protected Field[] |
fields
Array of all java fields. |
protected InterfaceAnalysis[] |
interfaces
Array of analysis of the interfaces implemented/extended here. |
protected byte[] |
m_flags
Array with flags for all java methods. |
protected byte |
M_INHERITED
Flags a method as being inherited. |
protected byte |
M_OVERLOADED
Flags a method as overloaded. |
protected byte |
M_READ
Flags a method as the accessor of a read-write property. |
protected byte |
M_READONLY
Flags a method as the accessor of a read-only property. |
protected byte |
M_WRITE
Flags a method as the mutator of a read-write property. |
protected byte |
M_WRITEOBJECT
Flags a method as being the writeObject() method used for serialization. |
protected String |
memberPostfix
The prefix and postfix of members repository ID. |
protected String |
memberPrefix
The prefix and postfix of members repository ID. |
protected Method[] |
methods
Array of all java methods. |
protected int[] |
mutators
Index of the mutator for read-write attributes. |
protected OperationAnalysis[] |
operations
Array of operations. |
protected String |
repositoryId
The repository ID. |
Fields inherited from class org.jboss.iiop.rmi.ClassAnalysis |
cls |
Constructor Summary | |
protected |
ContainerAnalysis(Class cls)
|
Method Summary | |
protected void |
analyzeAttributes()
Analyse attributes. |
protected void |
analyzeConstants()
Analyse constants. |
protected void |
analyzeFields()
Analyze the fields of the class. |
protected void |
analyzeInterfaces()
Analyze the interfaces of the class. |
protected void |
analyzeMethods()
Analyze the methods of the class. |
protected void |
analyzeOperations()
Analyse operations. |
protected String |
attributeReadName(String name)
Convert an attribute read method name in Java format to an attribute name in Java format. |
protected String |
attributeWriteName(String name)
Convert an attribute write method name in Java format to an attribute name in Java format. |
protected void |
calculateClassHashCode()
Return the class hash code, as specified in "The Common Object Request Broker: Architecture and Specification" (01-02-33), section 10.6.2. |
protected void |
calculateRepositoryId()
Return the IR global ID of the given class or interface. |
protected void |
doAnalyze()
|
protected String |
escapeIRName(String name)
Escape non-ISO characters for an IR name. |
protected void |
fixupCaseNames()
Fixup names differing only in case. |
protected void |
fixupOverloadedOperationNames()
Fixup overloaded operation names. |
ValueAnalysis[] |
getAbstractBaseValuetypes()
Return the abstract base valuetypes. |
AttributeAnalysis[] |
getAttributes()
Return the attributes. |
ConstantAnalysis[] |
getConstants()
Return the constants. |
protected abstract ArrayList |
getContainedEntries()
Return a list of all the entries contained here. |
String |
getIDLModuleName()
Return the fully qualified IDL module name that this analysis should be placed in. |
InterfaceAnalysis[] |
getInterfaces()
Return the interfaces. |
String |
getMemberRepositoryId(String memberName)
Return a repository ID for a member. |
OperationAnalysis[] |
getOperations()
Return the operations. |
String |
getRepositoryId()
Return the repository ID. |
protected boolean |
hasNonAppExceptions(Method m)
Check if a method throws anything checked other than java.rmi.RemoteException and its subclasses. |
protected boolean |
isAccessor(Method m)
Check if a method is an accessor. |
protected boolean |
isMutator(Method m)
Check if a method is a mutator. |
protected String |
toHexString(int i)
Convert an integer to a 16-digit hex string. |
protected String |
toHexString(long l)
Convert a long to a 16-digit hex string. |
Methods inherited from class org.jboss.iiop.rmi.ClassAnalysis |
getCls, getIDLName, getJavaName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final byte M_OVERLOADED
protected final byte M_READ
protected final byte M_WRITE
protected final byte M_READONLY
protected final byte M_INHERITED
protected final byte M_WRITEOBJECT
protected final byte F_CONSTANT
protected final byte F_SPFFIELD
public final static
java.io.ObjectStreamField[] serialPersistentFields
field.
protected Method[] methods
protected byte[] m_flags
protected int[] mutators
i
where (m_flags[i]&M_READ) != 0
are used. These entries contain the index of the mutator method
corresponding to the accessor method.
protected Field[] fields
protected byte[] f_flags
protected long classHashCode
protected String repositoryId
protected String memberPrefix
protected String memberPostfix
protected InterfaceAnalysis[] interfaces
protected ValueAnalysis[] abstractBaseValuetypes
protected AttributeAnalysis[] attributes
protected ConstantAnalysis[] constants
protected OperationAnalysis[] operations
Constructor Detail |
protected ContainerAnalysis(Class cls)
Method Detail |
protected void doAnalyze() throws RMIIIOPViolationException
RMIIIOPViolationException
public InterfaceAnalysis[] getInterfaces()
public ValueAnalysis[] getAbstractBaseValuetypes()
public AttributeAnalysis[] getAttributes()
public ConstantAnalysis[] getConstants()
public OperationAnalysis[] getOperations()
public String getRepositoryId()
public String getMemberRepositoryId(String memberName)
memberName
- The Java name of the member.public String getIDLModuleName()
protected String toHexString(int i)
protected String toHexString(long l)
protected boolean isAccessor(Method m)
protected boolean isMutator(Method m)
protected boolean hasNonAppExceptions(Method m)
protected void analyzeFields()
fields
and f_flags
arrays.
protected void analyzeInterfaces() throws RMIIIOPViolationException
interfaces
array.
RMIIIOPViolationException
protected void analyzeMethods()
methods
and m_flags
arrays.
protected String attributeReadName(String name)
protected String attributeWriteName(String name)
protected void analyzeConstants() throws RMIIIOPViolationException
constants
array.
RMIIIOPViolationException
protected void analyzeAttributes() throws RMIIIOPViolationException
attributes
array.
RMIIIOPViolationException
protected void analyzeOperations() throws RMIIIOPViolationException
operations
array.
This implementation just creates an empty array; override
in subclasses for a real analysis.
RMIIIOPViolationException
protected void fixupOverloadedOperationNames() throws RMIIIOPViolationException
RMIIIOPViolationException
protected void fixupCaseNames() throws RMIIIOPViolationException
RMIIIOPViolationException
protected abstract ArrayList getContainedEntries()
protected void calculateClassHashCode()
protected String escapeIRName(String name)
protected void calculateRepositoryId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |