Class ImportsFragment
java.lang.Object
org.jd.core.v1.model.fragment.FlexibleFragment
org.jd.core.v1.model.javafragment.ImportsFragment
- All Implemented Interfaces:
Fragment, JavaFragment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ImportsFragment.ImportCountComparatorprotected final HashMap<String, ImportsFragment.Import> Fields inherited from class FlexibleFragment
initialLineCount, label, lineCount, maximalLineCount, minimalLineCount, weight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(JavaFragmentVisitor visitor) voidbooleanintvoidbooleanisEmpty()Methods inherited from class FlexibleFragment
accept, decLineCount, getInitialLineCount, getLabel, getMaximalLineCount, getMinimalLineCount, getWeight, incLineCount, resetLineCount, toString
-
Field Details
-
COUNT_COMPARATOR
-
importMap
-
-
Constructor Details
-
ImportsFragment
public ImportsFragment(int weight)
-
-
Method Details
-
addImport
-
isEmpty
public boolean isEmpty() -
initLineCounts
public void initLineCounts() -
contains
-
getLineCount
public int getLineCount()- Overrides:
getLineCountin classFlexibleFragment
-
getImports
-
accept
- Specified by:
acceptin interfaceJavaFragment
-