oracle.javatools.parser.java.v2.model
Interface SourceCatchParameter
- All Superinterfaces: 
 - Element, JavaElement, JavaHasAnnotations, JavaHasName, JavaHasType, JavaLocalVariable, JavaVariable, SourceElement, SourceFormalParameter, SourceHasModifiers, SourceHasName, SourceHasType, SourceVariable
 
public interface SourceCatchParameter
- extends SourceFormalParameter
 
Represents a catch clause parameter, which is similar to a
  SourceFormalParameter except the type can be the union of
  several disjunct types
- Since:
 
  - 11.1.1.6.0
 
 
 
 
 
| 
Method Summary | 
 java.util.List | 
getSourceTypes()
 
          Gets the source types. | 
 void | 
setSourceTypes(java.util.List sourceTypes)
 
          Unlinks the current source types and links the input elements. | 
 
 
 
 
 
 
| 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 | 
 
 
 
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasName | 
getName | 
 
 
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement | 
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo | 
 
getSourceTypes
java.util.List getSourceTypes()
- Gets the source types. In JDK 7 and beyond, catch parameters
 can be the union of one or more types
 
- Returns:
 - The types of this variable, which will be a List of
 SourceTypeReferences. In some cases, the type symbols
 will be synthetic. The list might be empty but will not be null.
 
 
 
setSourceTypes
void setSourceTypes(java.util.List sourceTypes)
- Unlinks the current source types and links the input elements.
 
- Parameters:
 sourceTypes - The new source types which should be a List
 of SourceTypeReferences
 
 
Copyright © 1997, 2013, Oracle. All rights reserved.