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 SourceLexicalElement

All Superinterfaces:
Element, SourceElement
All Known Subinterfaces:
SourceLexicalBlankline, SourceLexicalComment, SourceLexicalSqlj

public interface SourceLexicalElement
extends SourceElement

A lexical element is what the JLS refers to as an input element in section 3.5.


Field Summary
static SourceLexicalElement[] EMPTY_ARRAY
           
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
Method Summary
 java.lang.String getText()
          Gets the raw text for this SourceElement.
 int getTokenValue()
           
 void setText(java.lang.String text)
          Attempts to replace the text of this lexical element with the input raw text.
 
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, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
 

Field Detail

EMPTY_ARRAY

static final SourceLexicalElement[] EMPTY_ARRAY
Method Detail

getTokenValue

int getTokenValue()
Returns:
The token value. See JavaTokens.

getText

java.lang.String getText()
Description copied from interface: SourceElement
Gets the raw text for this SourceElement.

Specified by:
getText in interface SourceElement
Returns:
The text.

setText

void setText(java.lang.String text)
Attempts to replace the text of this lexical element with the input raw text.

Throws:
java.lang.UnsupportedOperationException - if this operation is illegal.

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.