|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SIRCodeUnit
Interface of accessors for classes that define methods and field variables. It is useful for optimization and code transformation passes operate on the IR of multiple backends.
Method Summary | |
---|---|
void |
addField(JFieldDeclaration field)
Adds field to this, if field is not already registered as a field of this. |
void |
addFields(JFieldDeclaration[] fields)
Adds fields to the end fields of this. |
void |
addMethod(JMethodDeclaration method)
Add this method to the end of the methods array. |
void |
addMethods(JMethodDeclaration[] methods)
Adds methods to the methods of this if it not already in the methods container. |
JFieldDeclaration[] |
getFields()
Return the fields of this unit. |
JMethodDeclaration[] |
getMethods()
Return the methods of this unit. |
void |
setFields(JFieldDeclaration[] fields)
Set the fields of this to fields, overwriting the old array. |
void |
setMethods(JMethodDeclaration[] methods)
Install methods as the new methods array. |
Method Detail |
---|
JMethodDeclaration[] getMethods()
void addMethod(JMethodDeclaration method)
method
- The method to add.void addMethods(JMethodDeclaration[] methods)
methods
- The methods to attempt to add to the end of the methods.void setMethods(JMethodDeclaration[] methods)
methods
- The new methods to install.JFieldDeclaration[] getFields()
void addField(JFieldDeclaration field)
field
- The field to attempt to add.void addFields(JFieldDeclaration[] fields)
fields
- The fields to add to the end.void setFields(JFieldDeclaration[] fields)
fields
- The fields to install.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |