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
public abstract class FlexibleFragment extends java.lang.Object implements Fragment
-
-
Field Summary
Fields Modifier and Type Field Description protected intinitialLineCountprotected java.lang.Stringlabelprotected intlineCountprotected intmaximalLineCountprotected intminimalLineCountprotected intweight
-
Constructor Summary
Constructors Constructor Description FlexibleFragment(int minimalLineCount, int lineCount, int maximalLineCount, int weight, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(FragmentVisitor visitor)booleandecLineCount(boolean force)intgetInitialLineCount()java.lang.StringgetLabel()intgetLineCount()intgetMaximalLineCount()intgetMinimalLineCount()intgetWeight()booleanincLineCount(boolean force)voidresetLineCount()java.lang.StringtoString()
-
-
-
Method Detail
-
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
public java.lang.String getLabel()
-
incLineCount
public boolean incLineCount(boolean force)
-
decLineCount
public boolean decLineCount(boolean force)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
accept
public void accept(FragmentVisitor visitor)
-
-