public abstract static class NumberTerm.FormattedTerm extends NumberTerm
NumberTerm.DigitsTerm, NumberTerm.ExponentTerm, NumberTerm.FormattedTerm, NumberTerm.GeneralTerm, NumberTerm.QuestionTerm, NumberTerm.SeparatorTerm, NumberTerm.SharpTerm, NumberTerm.SymbolTerm, NumberTerm.ZeroTerm
修飾子とタイプ | フィールドと説明 |
---|---|
protected int |
index
桁のインデックス
|
protected boolean |
lastPart
書式の部分の最後かどうか
|
protected boolean |
outSepearator
桁の区切り文字を出力するかどうか
|
protected NumberPartType |
partType
書式の部分
|
コンストラクタと説明 |
---|
FormattedTerm() |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getIndex() |
protected String |
getNumber(FormattedNumber number)
数値の部分に対する桁の値を取得する。
|
NumberPartType |
getPartType() |
NumberTerm.FormattedTerm |
index(int index) |
boolean |
isLastPart() |
boolean |
isOutSepearator() |
NumberTerm.FormattedTerm |
lastPart(boolean lastPart) |
NumberTerm.FormattedTerm |
partType(NumberPartType partType) |
void |
setIndex(int index) |
void |
setLastPart(boolean lastPart) |
void |
setOutSepearator(boolean outSepearator) |
void |
setPart(NumberPartType partType) |
digits, exponnet, general, question, separator, sharp, symbol, zero
protected int index
protected NumberPartType partType
protected boolean lastPart
protected boolean outSepearator
public NumberTerm.FormattedTerm index(int index)
public NumberTerm.FormattedTerm partType(NumberPartType partType)
public NumberTerm.FormattedTerm lastPart(boolean lastPart)
protected String getNumber(FormattedNumber number)
number
- public int getIndex()
public void setIndex(int index)
public NumberPartType getPartType()
public void setPart(NumberPartType partType)
public boolean isLastPart()
public void setLastPart(boolean lastPart)
public boolean isOutSepearator()
public void setOutSepearator(boolean outSepearator)
Copyright © 2021 mygreen. All rights reserved.