Interface CodeExceptions
- All Superinterfaces:
CodeItem, CodeItemWithDeclaringType, CodeMergeableItem<CodeExceptions>, CodeMutable, CodeMutableItem, CodeNode, CodeNodeContainer<CodeException>, CodeNodeItem, CodeNodeItemContainer<CodeException>, CodeNodeItemContainerFlat<CodeException>, CodeNodeItemCopyable<CodeOperation, CodeExceptions>, CodeOperationArgs<CodeException>, CodeSimpleMergeableItem<CodeExceptions>, CodeWithContext, Iterable<CodeException>
public interface CodeExceptions
extends CodeOperationArgs<CodeException>, CodeSimpleMergeableItem<CodeExceptions>, CodeNodeItemCopyable<CodeOperation, CodeExceptions>
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
- See Also:
-
Field Summary
Fields inherited from interface CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Method Summary
Modifier and TypeMethodDescriptionadd(CodeGenericType type) copy()get(CodeGenericType type) default CodeExceptiongetOrCreate(CodeGenericType type) Methods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface CodeItemWithDeclaringType
getDeclaringTypeMethods inherited from interface CodeMutable
isImmutable, isMutableMethods inherited from interface CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface CodeNodeContainer
getDeclared, isEmpty, iteratorMethods inherited from interface CodeNodeItemContainer
copy, removeMethods inherited from interface CodeNodeItemCopyable
copy, getParentMethods inherited from interface CodeOperationArgs
getParentMethods inherited from interface CodeSimpleMergeableItem
merge, mergeMethods inherited from interface CodeWithContext
getContext, getSourceMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
get
- Parameters:
type- theCodeTypereflection theexception.- Returns:
- the
CodeExceptionthat has the given type ornullif not found.
-
add
- Parameters:
type- theCodeTypereflection theexception.- Returns:
- the new
CodeExceptionthat has been added.
-
getOrCreate
- Parameters:
type- theCodeTypereflection theexception.- Returns:
- the
matchingCodeExceptionor thenewone that was added.
-
copy
CodeExceptions copy()- Specified by:
copyin interfaceCodeMutableItem- Specified by:
copyin interfaceCodeNodeItem- Specified by:
copyin interfaceCodeNodeItemContainer<CodeException>- Specified by:
copyin interfaceCodeNodeItemContainerFlat<CodeException>- Specified by:
copyin interfaceCodeNodeItemCopyable<CodeOperation, CodeExceptions>- Specified by:
copyin interfaceCodeOperationArgs<CodeException>- Returns:
- a new
mutablecopy of thisCodeMutableItem. Will be a deep-copy with copies of all childCodeMutableItems.
-