Package org.jd.core.v1.model.fragment
Class FlexibleFragment
java.lang.Object
org.jd.core.v1.model.fragment.FlexibleFragment
- All Implemented Interfaces:
Fragment
- Direct Known Subclasses:
EndMovableBlockFragment
,ImportsFragment
,SpacerBetweenMovableBlocksFragment
,SpacerFragment
,StartFlexibleBlockFragment
,StartMovableBlockFragment
,TokensFragment
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected final String
protected int
protected int
protected final int
protected final int
-
Constructor Summary
ConstructorsConstructorDescriptionFlexibleFragment
(int minimalLineCount, int lineCount, int maximalLineCount, int weight, String label) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(FragmentVisitor visitor) boolean
decLineCount
(boolean force) int
getLabel()
int
int
int
int
boolean
incLineCount
(boolean force) void
toString()
-
Field Details
-
minimalLineCount
protected final int minimalLineCount -
maximalLineCount
protected int maximalLineCount -
initialLineCount
protected int initialLineCount -
lineCount
protected int lineCount -
weight
protected final int weight -
label
-
-
Constructor Details
-
FlexibleFragment
public FlexibleFragment(int minimalLineCount, int lineCount, int maximalLineCount, int weight, String label)
-
-
Method Details
-
resetLineCount
public void resetLineCount() -
getMinimalLineCount
public int getMinimalLineCount() -
getMaximalLineCount
public int getMaximalLineCount() -
getInitialLineCount
public int getInitialLineCount() -
getLineCount
public int getLineCount() -
getWeight
public int getWeight() -
getLabel
-
incLineCount
public boolean incLineCount(boolean force) -
decLineCount
public boolean decLineCount(boolean force) -
toString
-
accept
-