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 class
protected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ImportsFragment.ImportCountComparator
protected final HashMap
<String, ImportsFragment.Import> Fields inherited from class org.jd.core.v1.model.fragment.FlexibleFragment
initialLineCount, label, lineCount, maximalLineCount, minimalLineCount, weight
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(JavaFragmentVisitor visitor) void
boolean
int
void
boolean
isEmpty()
Methods inherited from class org.jd.core.v1.model.fragment.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:
getLineCount
in classFlexibleFragment
-
getImports
-
accept
- Specified by:
accept
in interfaceJavaFragment
-