Interface CodeProperties
- All Superinterfaces:
CodeItem, CodeItemWithDeclaringType, CodeMembers<CodeProperty>, CodeMutable, CodeMutableItem, CodeNode, CodeNodeContainer<CodeProperty>, CodeNodeItem, CodeNodeItemContainer<CodeProperty>, CodeNodeItemContainerHierarchical<CodeProperty>, CodeNodeItemContainerHierarchicalWithName<CodeProperty>, CodeNodeItemContainerWithName<CodeProperty>, CodeNodeItemCopyable<CodeType, CodeProperties>, CodeWithContext, Iterable<CodeProperty>
public interface CodeProperties
extends CodeMembers<CodeProperty>, CodeNodeItemContainerHierarchicalWithName<CodeProperty>, CodeNodeItemCopyable<CodeType, CodeProperties>
CodeMembers as a container for the CodePropertys. Attention:
The
properties are calculated on the fly and the operations may be expensive. Avoid subsequent
calls to the same method if possible.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
Fields inherited from interface CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Method Summary
Methods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface CodeItemWithDeclaringType
getDeclaringTypeMethods inherited from interface CodeMembers
add, getParentMethods 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 CodeNodeItemContainerHierarchical
getAllMethods inherited from interface CodeNodeItemContainerWithName
get, getDeclared, getDeclaredOrCreate, getOrCreate, getRequiredMethods inherited from interface CodeNodeItemCopyable
copy, getParentMethods inherited from interface CodeWithContext
getContext, getSourceMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
add
Deprecated.instances ofCodePropertyare dynamically created on the fly.- Specified by:
addin interfaceCodeNodeItemContainerWithName<CodeProperty>- Parameters:
name- thenameof theCodeItemWithNameto create.- Returns:
- a new
CodeItemthat has been added.
-
copy
CodeProperties copy()- Specified by:
copyin interfaceCodeMembers<CodeProperty>- Specified by:
copyin interfaceCodeMutableItem- Specified by:
copyin interfaceCodeNodeItem- Specified by:
copyin interfaceCodeNodeItemContainer<CodeProperty>- Specified by:
copyin interfaceCodeNodeItemContainerHierarchical<CodeProperty>- Specified by:
copyin interfaceCodeNodeItemContainerHierarchicalWithName<CodeProperty>- Specified by:
copyin interfaceCodeNodeItemContainerWithName<CodeProperty>- Specified by:
copyin interfaceCodeNodeItemCopyable<CodeType, CodeProperties>- Returns:
- a new
mutablecopy of thisCodeMutableItem. Will be a deep-copy with copies of all childCodeMutableItems.
-
CodePropertyare dynamically created on the fly.