|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Represents a class initializer declared in a type. Instance and static initializers can be distingushed by the associated modifiers.
| Method Summary | |
AstCompoundStatement |
getBody()
Returns the body of this class initializer. |
java.lang.String |
getElementName()
Returns the name of this class initializer which is always "<clinit>". |
AstVariable[] |
getParameters()
Returns am empty array since class initializers have no parameters. |
AstTypeReference |
getReturnType()
Returns a reference to the void type since class initializers have no return type. |
| Methods inherited from interface com.togethersoft.sca.ast.AstMethod |
getExceptionTypes, getOverridden, getQualifiedName, getSignature, isConstructor, isErrorFree, isInitializer, overriddenBy |
| Methods inherited from interface com.togethersoft.sca.ast.AstDeclaration |
getDeclaredModifiers, getModifiers, getModifiersList, getReferences, isAbstract, isFinal, isNative, isPackage, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaredModifiers, swapWith |
| Methods inherited from interface com.togethersoft.sca.ast.AstObject |
addComment, getChildren, getComments, getCompilationUnit, getDeclaringMethod, getDeclaringType, getObjectKind, getPackage, getParent, getPosition, isDeleted, remove, replaceWith, replaceWith, setPosition, setPositionAfter, visitExpressions, visitStatements |
| Methods inherited from interface com.togethersoft.sca.ast.AstDbcProvider |
getInvariants, getPostconditions, getPreconditions |
| Method Detail |
public AstCompoundStatement getBody()
getBody in interface AstMethodpublic java.lang.String getElementName()
"<clinit>".getElementName in interface AstMethodpublic AstVariable[] getParameters()
getParameters in interface AstMethodpublic AstTypeReference getReturnType()
getReturnType in interface AstMethodvoid type.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||