Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.parser.java.v2.model
Interface SourceClassBody

All Superinterfaces:
Element, SourceElement

public interface SourceClassBody
extends SourceElement

A class body, sometimes called a class block.


Field Summary
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, EMPTY_ARRAY, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
Method Summary
 java.util.List getSourceClasses()
          Gets the list of declared member class declarations.
 java.util.List getSourceConstructors()
          Gets the list of declared constructor declarations.
 java.util.List getSourceEnumConstants()
          Gets the list of declared enum constants.
 java.util.List getSourceFieldDeclarations()
          Gets the list of declared field declarations.
 java.util.Collection getSourceFieldVariables()
          Gets the collection of declared field variables.
 java.util.List getSourceInitializers()
          Gets the list of declared class initializers.
 java.util.List getSourceMembers()
          Gets the list of declared member declarations.
 java.util.Collection getSourceMemberVariables()
          Gets the list of all enum constants and field variables.
 java.util.List getSourceMethods()
          Gets the list of declared method (but not constructor) declarations.
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
addSelf, addSelf, addSelfAfter, addSelfBefore, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
 

Method Detail

getSourceMembers

java.util.List getSourceMembers()
Gets the list of declared member declarations.

Returns:
All source-model declared members of this class, including synthetic members. This will include every member: methods, constructors, field declarations, enum constant declarations, inner classes, and initializers. Returns a collection of SourceMember's.

getSourceMemberVariables

java.util.Collection getSourceMemberVariables()
Gets the list of all enum constants and field variables.

Returns:
All source-model declared member variables of this class, including synthetic members.

getSourceEnumConstants

java.util.List getSourceEnumConstants()
Gets the list of declared enum constants.

Returns:
All source-model declared enum constants. Returns a list of SourceEnumConstants's.

getSourceFieldDeclarations

java.util.List getSourceFieldDeclarations()
Gets the list of declared field declarations.

Returns:
All source-model declared field declarations and enum constant declarations of this class. Should enum constants be returned separately from fields? Does not include the synthetic "this$0" field. Returns a collection of SourceFieldDeclaration's.

getSourceFieldVariables

java.util.Collection getSourceFieldVariables()
Gets the collection of declared field variables. To be clear, a field variable is a member variable that has been declared in a field declaration. An enum constant is NOT a field variable.

Returns:
All source-model declared field variables and enum constant variables of this class. Should enum constants be returned separately from fields? Does not include the synthetic "this$0" field. Returns a collection of SourceFieldVariable's.

getSourceMethods

java.util.List getSourceMethods()
Gets the list of declared method (but not constructor) declarations.

Returns:
All source-model declared methods of this class, not including constructors. Does not include the synthetic default constructor or the synthetic method. Returns a collection of SourceMethod's.

getSourceConstructors

java.util.List getSourceConstructors()
Gets the list of declared constructor declarations.

Returns:
All source-model declared constructors of this class. Does not include the synthetic default constructor nor the synthetic method. Returns a collection of SourceMethod's.

getSourceClasses

java.util.List getSourceClasses()
Gets the list of declared member class declarations.

Returns:
All source-model directly declared inner classes of this class. Returns a collection of SourceClass's.

getSourceInitializers

java.util.List getSourceInitializers()
Gets the list of declared class initializers.

Returns:
All source-model initializers declared in this class. Returns a collection of SourceClassInitializer's.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.