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.2.1.0
 
 
 
 
 
 
 
 
 
 
| 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 | 
 
 
 
| 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<SourceTypeReference> 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. In some cases, the type symbols
 will be synthetic.
 
setSourceTypes
void setSourceTypes(java.util.List<SourceTypeReference> sourceTypes)
- Unlinks the current source types and links the input elements.
 
- 
 
- 
- Parameters:
- sourceTypes- The new source types
 
Copyright © 1997, 2013, Oracle. All rights reserved.