| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06  | 
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use SourceElement | |
|---|---|
| oracle.javatools.parser.java.v2 | The parser API. | 
| oracle.javatools.parser.java.v2.common | Classes common to model implementations. | 
| oracle.javatools.parser.java.v2.model | The parser model API. | 
| oracle.javatools.parser.java.v2.model.doc | The parser model API for doc elements. | 
| oracle.javatools.parser.java.v2.model.expression | The parser model API for expressions. | 
| oracle.javatools.parser.java.v2.model.statement | The parser model API for statements. | 
| oracle.javatools.parser.java.v2.util | Various utilities for use with the parser. | 
| oracle.jdeveloper.java.dependency | Provides dependency information for Java. | 
| oracle.jdeveloper.java.insight | |
| oracle.jdeveloper.java.util | Public utilities for use with the java model, including the parser. | 
| Uses of SourceElement in oracle.javatools.parser.java.v2 | 
|---|
| Methods in oracle.javatools.parser.java.v2 that return SourceElement | |
|---|---|
abstract  SourceElement | 
SourceFactory.createSourceElement(int kind)May NOT be used to instantiate SourceExpression's.  | 
abstract  SourceElement | 
CallerContext.getSourceScope() | 
| Methods in oracle.javatools.parser.java.v2 with parameters of type SourceElement | |
|---|---|
abstract  SourceBlock | 
SourceFactory.createBlock(SourceElement[] elements)Creates a code block.  | 
static CallerContext | 
CallerContext.createContext(SourceElement sourceScope) | 
static CallerContext | 
CallerContext.createContext(SourceElement sourceScope, boolean forgiving)In case it isn't clear, the source scope can be any SourceElement that is attached to a valid SourceFile tree.  | 
| Uses of SourceElement in oracle.javatools.parser.java.v2.common | 
|---|
| Methods in oracle.javatools.parser.java.v2.common that return SourceElement | |
|---|---|
 SourceElement | 
AbstractElement.getSourceElement() | 
 SourceElement | 
WrapperMethod.getSourceElement() | 
 SourceElement | 
WrapperLocalVariable.getSourceElement() | 
 SourceElement | 
WrapperField.getSourceElement() | 
 SourceElement | 
WrapperClass.getSourceElement() | 
 SourceElement | 
WrapperPackage.getSourceElement() | 
static SourceElement | 
CommonUtilities.getSourceElement(JavaElement target, SourceFile searchSpace) | 
 SourceElement | 
AbstractElement.getSourceSymbol() | 
| Uses of SourceElement in oracle.javatools.parser.java.v2.model | 
|---|
| Subinterfaces of SourceElement in oracle.javatools.parser.java.v2.model | |
|---|---|
 interface | 
SourceAnnotationAn annotation (not to be confused with annotation type).  | 
 interface | 
SourceBlockThe SourceCodeBlock represents code blocks for methods and statements.  | 
 interface | 
SourceBlockElementA SourceElement that may be a child of a SourceBlock.  | 
 interface | 
SourceClassA SourceClass is the syntactic (aka symbolic) representation of a java class: classes, enums, interfaces, and annotation types.  | 
 interface | 
SourceClassBodyA class body, sometimes called a class block.  | 
 interface | 
SourceClassInitializerThe SourceMember represents a member declaration for a type. | 
 interface | 
SourceEnumConstantAn enum constant.  | 
 interface | 
SourceErrorAn error found in the parse tree.  | 
 interface | 
SourceFieldDeclarationA field (or enum constant) declaration.  | 
 interface | 
SourceFieldVariableA field variable.  | 
 interface | 
SourceFileThe SourceFile represents the root node for a complete Source source file.  | 
 interface | 
SourceFormalParameterA formal parameter.  | 
 interface | 
SourceFormalParameterListA formal parameter list.  | 
 interface | 
SourceHasBlockA source element that has a block.  | 
 interface | 
SourceHasModifiersA SourceElement that may have modifiers.  | 
 interface | 
SourceHasNameA SourceHasName has a SourceName (notice that this is a SourceToken child) child.  | 
 interface | 
SourceHasTypeA SourceElement that has a type reference.  | 
 interface | 
SourceImportAn import declaration.  | 
 interface | 
SourceInterfacesClauseAn extends and/or an implements clause.  | 
 interface | 
SourceLexicalBlanklineA whitespace token.  | 
 interface | 
SourceLexicalCommentA comment token.  | 
 interface | 
SourceLexicalElementA lexical element is what the JLS refers to as an input element in section 3.5.  | 
 interface | 
SourceLexicalSqljA SQLJ declaration or executable statement.  | 
 interface | 
SourceLocalVariableA local variable or formal parameter.  | 
 interface | 
SourceLocalVariableDeclarationA local variable declaration.  | 
 interface | 
SourceMemberThe SourceMember represents a member declaration for a type. | 
 interface | 
SourceMemberVariableA field (or enum constant) variable.  | 
 interface | 
SourceMethodA SourceMethod is the syntactic (aka symbolic) representation of a java method or constructor declaration.  | 
 interface | 
SourceNameA name.  | 
 interface | 
SourcePackageThe SourcePackage. | 
 interface | 
SourceSuperclassClauseAn extends and/or an implements clause.  | 
 interface | 
SourceThrowsClauseA throws clause for a method or constructor declaration.  | 
 interface | 
SourceTypeArgumentA type argument for a type reference.  | 
 interface | 
SourceTypeParameterA type parameter.  | 
 interface | 
SourceTypeReferenceA type reference.  | 
 interface | 
SourceVariableA SourceVariable is the syntactic (aka symbolic) representation of a java variable, including: field variables, enum constant variables, local variables, and formal parameters.  | 
 interface | 
SourceVariableDeclarationThe common base interface for a field declaration and a local variable declaration.  | 
| Fields in oracle.javatools.parser.java.v2.model declared as SourceElement | |
|---|---|
static SourceElement[] | 
SourceElement.EMPTY_ARRAY | 
| Methods in oracle.javatools.parser.java.v2.model that return SourceElement | |
|---|---|
 SourceElement | 
SourceElement.cloneSelf(SourceFile targetFile)Performs a deep-copy of this SourceElement but attached to the input SourceFile.  | 
 SourceElement[] | 
SourceElement.getContainedElements()This method is equivalent to getChildren() except that it returns an array.  | 
 SourceElement | 
SourceFile.getElementAt(int offset)Gets the most deeply nested SourceElement at the insertion point.  | 
 SourceElement | 
SourceFile.getElementAt(int offset, int mask)Gets the most deeply nested SourceElement at the insertion point.  | 
 SourceElement | 
SourceFile.getElementContaining(int startOffset, int endOffset)Gets the most deeply nested SourceElement that includes the range [startOffset, endOffset).  | 
 SourceElement | 
SourceError.getErrorSymbol()This needs to be a separate method because all errors are currently constructed off of the root and not off of the syntactically enclosing element.  | 
 SourceElement | 
SourceElement.getParent()Gets the parent SourceElement to this.  | 
 SourceElement | 
SourceElement.getSiblingAfter()Gets the sibling after this.  | 
 SourceElement | 
SourceElement.getSiblingBefore()Gets the sibling before this.  | 
 SourceElement | 
JavaElement.getSourceElement() | 
| Methods in oracle.javatools.parser.java.v2.model with parameters of type SourceElement | |
|---|---|
 void | 
SourceElement.addSelf(SourceElement parent)Performs an add (usually append) of this element to the parent.  | 
 void | 
SourceElement.addSelf(SourceElement sibling, boolean before)Performs an add of this element to the parent of the input sibling.  | 
 void | 
SourceElement.addSelfAfter(SourceElement sibling) | 
 void | 
SourceElement.addSelfBefore(SourceElement sibling) | 
 void | 
SourceElement.replaceSelf(SourceElement newElement)Performs a set of this element with the newElement.  | 
| Uses of SourceElement in oracle.javatools.parser.java.v2.model.doc | 
|---|
| Subinterfaces of SourceElement in oracle.javatools.parser.java.v2.model.doc | |
|---|---|
 interface | 
SourceDocBlockTagA SourceDocBlockTag represents a block tag within a SourceDocComment. | 
 interface | 
SourceDocCommentA SourceDocComment represents a documentation comment ("doc comment") associated with a class, interface, constructor, method, or field. | 
 interface | 
SourceDocDescriptionA SourceDocDescription represents the main description of a SourceDocComment or the description of a SourceDocTag. | 
 interface | 
SourceDocElementThe common supertype of all doc elements.  | 
 interface | 
SourceDocHasDescriptionA doc element that has a description.  | 
 interface | 
SourceDocInlineTagA SourceDocInlineTag represents an in-line tag within a SourceDocDescription. | 
 interface | 
SourceDocReferenceA SourceDocReference represents the Java element reference in @exception, @link, @linkplain, @param, @see, @serialField, @throws, and two-argument @value> tags. | 
 interface | 
SourceDocTagA SourceDocTag represents a block tag within a SourceDocComment or an in-line tag within a SourceDocDescription. | 
 interface | 
SourceDocTagNameA SourceDocTextFragment represents a text fragment within a SourceDocDescription. | 
 interface | 
SourceDocTextFragmentA SourceDocTextFragment represents a text fragment within a SourceDocDescription. | 
| Uses of SourceElement in oracle.javatools.parser.java.v2.model.expression | 
|---|
| Subinterfaces of SourceElement in oracle.javatools.parser.java.v2.model.expression | |
|---|---|
 interface | 
SourceAnnotationExpressionAn AnnotationExpression is a final expression representing an annotation that is also an expression operand (and therefore must be a subclass of Expression).  | 
 interface | 
SourceArrayAccessExpressionAn ArrayAccessExpression is a final expression representing an array access expression.  | 
 interface | 
SourceAssignmentExpressionAn AssignmentExpression is a final expression representing infix operations that are assignments.  | 
 interface | 
SourceDereferenceExpressionA SourceDereferenceExpression is a common base expression representing an operator that performs a dereference.  | 
 interface | 
SourceDotExpressionA DotExpression is a final expression representing a selector.  | 
 interface | 
SourceExpressionThe SourceExpression is essentially the union of all the various operators and primaries.  | 
 interface | 
SourceInfixExpressionAn InfixExpression is a final expression representing an infix operation that is not an assignment.  | 
 interface | 
SourceInvokeExpressionA SourceInvokeExpression is a common base expression representing any invocation expression.  | 
 interface | 
SourceListExpressionA ListExpression is a final expression representing non-operation expressions that have a variable number of operands.  | 
 interface | 
SourceLiteralExpressionA LiteralExpression is a final expression representing a lexical literal.  | 
 interface | 
SourceMethodCallExpressionA MethodCallExpression is a final expression representing a method invocation or an explicit constructor invocation.  | 
 interface | 
SourceNewArrayExpressionAn ArrayAccessExpression is a final expression representing an array access expression.  | 
 interface | 
SourceNewClassExpressionA ClassCreatorExpression is a final expression representing an instance creation expression.  | 
 interface | 
SourceOperatorExpressionAn OperatorExpression is a common base expression representing a multi-operand expression that performs an operation.  | 
 interface | 
SourceQuestionExpressionA QuestionExpression is a final expression representing the ternary operator x? x: x.  | 
 interface | 
SourceSimpleNameExpressionA SimpleNameExpression is a final expression representing an unqualified name access.  | 
 interface | 
SourceTypecastExpressionA TypecastExpression is a final expression representing a type cast.  | 
 interface | 
SourceTypeExpressionA TypeExpression is a final expression representing a type that is also an expression operand (and therefore must be a subclass of Expression).  | 
 interface | 
SourceUnaryExpressionA UnaryExpression is a final expression representing the prefix and postfix operators but not the typecast operator.  | 
 interface | 
SourceWrapperExpressionA WrapperExpression is a final expression that represents wrapping constructs such as parentheses and brackets.  | 
| Uses of SourceElement in oracle.javatools.parser.java.v2.model.statement | 
|---|
| Subinterfaces of SourceElement in oracle.javatools.parser.java.v2.model.statement | |
|---|---|
 interface | 
SourceAssertStatementAn assert statement.  | 
 interface | 
SourceBlockStatementA BlockStatement is a final statement representing a statement that is (and only is) a block.  | 
 interface | 
SourceBreakStatementA break statement.  | 
 interface | 
SourceCatchClauseA catch clause of a try statement.  | 
 interface | 
SourceCompoundStatementA CompoundStatement is a common base statement representing statements that have children statements.  | 
 interface | 
SourceConditionalStatementA ConditionalStatement is a common base statement representing compound statements having (requiring) a single expression of boolean type.  | 
 interface | 
SourceContinueStatementA continue statement.  | 
 interface | 
SourceDoStatementA do statement.  | 
 interface | 
SourceElseClauseAn else clause.  | 
 interface | 
SourceEmptyStatementAn empty statement.  | 
 interface | 
SourceExpressionStatementAn expression statement.  | 
 interface | 
SourceFinallyClauseA finally clause.  | 
 interface | 
SourceForStatementA for statement.  | 
 interface | 
SourceIfStatementAn if statement.  | 
 interface | 
SourceReturnStatementA return statement.  | 
 interface | 
SourceSimpleStatementA SimpleStatement is a common base statement representing a statement that has no child statement and may optionally have expressions.  | 
 interface | 
SourceStatementThis is the common base interface of all statements.  | 
 interface | 
SourceStatementLabelA label on a labeled statement.  | 
 interface | 
SourceSwitchLabelDefault and continue labels for switch bodies.  | 
 interface | 
SourceSwitchStatementA switch statement.  | 
 interface | 
SourceSynchStatementA synchronized statement.  | 
 interface | 
SourceThrowStatementA throw statement.  | 
 interface | 
SourceTryStatementA try statement.  | 
 interface | 
SourceWhileStatementA while statement.  | 
| Uses of SourceElement in oracle.javatools.parser.java.v2.util | 
|---|
| Methods in oracle.javatools.parser.java.v2.util with parameters of type SourceElement | |
|---|---|
static void | 
QualifyTypeHelper.qualifyAllTypes(SourceElement subtree)Recursively traverses the given subtree and attempts to qualify any type it finds.  | 
static void | 
Formatting.reformatSubtree(SourceElement subtree)Attempts to reformat the given subtree.  | 
 boolean | 
Usages.shouldTraverse(SourceElement element)True says "Yes, traverse (normally) the given SourceElement and its subtree as part of the compile".  | 
static void | 
SimplifyTypeHelper.simplifyAllTypes(SourceElement subtree)Recursively traverses the given subtree and attempts to simplify any type it finds.  | 
static void | 
SimplifyTypeHelper.simplifyType(SourceElement element)Attempts to perform simplify type on and only on the given element.  | 
static SimplifyTypeHelper | 
SimplifyTypeHelper.simplifyTypeName(SourceElement scope, java.lang.String name)Calculates the simplified type in the given scope.  | 
 void | 
SourceVisitor.visit(SourceElement subtree)Visits the given subtree using this visitor.  | 
| Uses of SourceElement in oracle.jdeveloper.java.dependency | 
|---|
| Constructors in oracle.jdeveloper.java.dependency with parameters of type SourceElement | |
|---|---|
FieldDeclaration(java.lang.String id, Workspace workspace, Project project, SourceElement element, java.lang.String fqClassName, java.lang.String fieldName) | 
|
MethodDeclaration(java.lang.String id, Workspace workspace, Project project, SourceElement element, java.lang.String fqClassName, java.lang.String methodName, java.util.Collection<java.lang.String> parameters) | 
|
| Uses of SourceElement in oracle.jdeveloper.java.insight | 
|---|
| Methods in oracle.jdeveloper.java.insight that return SourceElement | |
|---|---|
 SourceElement | 
AnnotationElementValueContext.getSourceCope()Get the element that the user has currently selected.  | 
| Uses of SourceElement in oracle.jdeveloper.java.util | 
|---|
| Methods in oracle.jdeveloper.java.util that return SourceElement | |
|---|---|
 SourceElement | 
SourceElementHandle.getElement() | 
| Methods in oracle.jdeveloper.java.util with parameters of type SourceElement | |
|---|---|
static void | 
SourceUtils.addBlankLine(SourceElement block, boolean before)Adds (append) a blank line before or after a source element.  | 
static SourceStatement | 
SourceUtils.addExpressionStatement(SourceBlock block, SourceExpression expr, SourceElement sibling, boolean before)Inserts an expression as a statement to the block by the specified sibling.  | 
static SourceStatement | 
SourceUtils.addExpressionStatement(SourceBlock block, java.lang.String exprText, SourceElement sibling, boolean before)Inserts an expression as a statement to the block by the specified sibling.  | 
static void | 
SourceUtils.addLineComment(SourceElement element, boolean before, java.lang.String commentText)Adds a line comment before or after a source element.  | 
static SourceStatement | 
SourceUtils.addStatement(SourceBlock block, SourceStatement stmt, SourceElement sibling, boolean before)Inserts a statement to the block by the specified sibling.  | 
static java.util.List | 
SourceElementAsList.asList(SourceElement root) | 
static java.util.List | 
SourceElementAsList.asList(SourceElement root, java.lang.Class elementClass) | 
static java.util.List | 
SourceElementAsList.asList(SourceElement root, int symbolKind) | 
static java.util.List | 
SourceElementAsList.asList(SourceElement root, int[] symbolKinds) | 
static java.lang.String | 
VariableNaming.canIntroduceField(SourceElement sourceElement, java.lang.String fieldName)Verifies if a field can added introduced to the class that contains the SourceElement. | 
static boolean | 
VariableNaming.canIntroduceVariable(SourceElement sourceElement, java.lang.String variableName) | 
static SourceBlock | 
SourceUtils.createBlock(SourceElement element)Create a new empty block.  | 
static void | 
VariableNaming.fillWithParentVariableDeclaration(SourceElement sourceElement, java.util.HashSet<java.lang.String> existingNames)Fills the set with the existing variable declarations visible from the sourceElement  | 
static SourceFactory | 
SourceUtils.getFactory(SourceElement element)Fetch a factory from the element.  | 
static java.util.List<java.lang.String> | 
VariableNaming.suggestConstantNames(SourceElement sourceElement, java.lang.String typeName) | 
static java.util.List<java.lang.String> | 
VariableNaming.suggestFieldNames(SourceElement sourceElement, java.lang.String typeName) | 
static java.util.List<java.lang.String> | 
VariableNaming.suggestParameterNames(SourceElement sourceElement, java.lang.String typeName) | 
static java.util.List<java.lang.String> | 
VariableNaming.suggestVariableNames(SourceElement sourceElement, java.lang.String typeName) | 
| Constructors in oracle.jdeveloper.java.util with parameters of type SourceElement | |
|---|---|
SourceElementHandle(SourceElement sourceElement) | 
|
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06  | 
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||