Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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<SourceClass> getSourceClasses()
          Gets the list of declared member class declarations.
 java.util.List<SourceMethod> getSourceConstructors()
          Gets the list of declared constructor declarations.
 java.util.List<SourceEnumConstant> getSourceEnumConstants()
          Gets the list of declared enum constants.
 java.util.List<SourceFieldDeclaration> getSourceFieldDeclarations()
          Gets the list of declared field declarations.
 java.util.Collection<SourceFieldVariable> getSourceFieldVariables()
          Gets the collection of declared field variables.
 java.util.List<SourceClassInitializer> getSourceInitializers()
          Gets the list of declared class initializers.
 java.util.List<SourceMember> getSourceMembers()
          Gets the list of declared member declarations.
 java.util.Collection<SourceMemberVariable> getSourceMemberVariables()
          Gets the list of all enum constants and field variables.
 java.util.List<SourceMethod> 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, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
 

Method Detail

getSourceMembers

java.util.List<SourceMember> 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<SourceMemberVariable> 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<SourceEnumConstant> getSourceEnumConstants()
Gets the list of declared enum constants.

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

getSourceFieldDeclarations

java.util.List<SourceFieldDeclaration> 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<SourceFieldVariable> 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<SourceMethod> 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<SourceMethod> 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<SourceClass> 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<SourceClassInitializer> 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
11g Release 2 (11.1.2.1.0)

E17493-02

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