public class StructureMembers.Member extends Object
| 构造器 | 说明 |
|---|---|
Member(String name,
String desc,
String units,
DataType dtype,
int[] shape) |
|
Member(StructureMembers.Member from) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Array |
getDataArray() |
Get the data array, if any.
|
Object |
getDataObject() |
Get an opaque data object, for use behind the scenes.
|
int |
getDataParam() |
Get the data parameter value, for use behind the scenes.
|
DataType |
getDataType() |
Get the DataType.
|
String |
getDescription() |
Get the description, if any.
|
String |
getFullName() |
|
String |
getName() |
Get the short name.
|
int[] |
getShape() |
Get the array shape.
|
int |
getSize() |
Get the total number of elements.
|
int |
getSizeBytes() |
Get the total size in bytes.
|
StructureMembers |
getStructureMembers() |
|
String |
getUnitsString() |
Get the units string, if any.
|
boolean |
isScalar() |
Is this a scalar (size == 1).
|
boolean |
isVariableLength() |
|
void |
setDataArray(Array data) |
Set the data array.
|
void |
setDataObject(Object o) |
Set an opaque data object, for use behind the scenes.
|
void |
setDataParam(int dataParam) |
Set the data parameter value, for use behind the scenes.
|
void |
setShape(int[] shape) |
|
void |
setStructureMembers(StructureMembers members) |
|
void |
setVariableInfo(String vname,
String desc,
String unitString,
DataType dtype) |
|
void |
showInternal(Formatter f,
Indent indent) |
|
String |
toString() |
public Member(StructureMembers.Member from)
public void setStructureMembers(StructureMembers members)
public StructureMembers getStructureMembers()
public void setShape(int[] shape)
public String getName()
public String getFullName()
public String getUnitsString()
public String getDescription()
public DataType getDataType()
public int[] getShape()
public int getSize()
public boolean isVariableLength()
public int getSizeBytes()
public boolean isScalar()
public int getDataParam()
public void setDataParam(int dataParam)
dataParam - set to this valuepublic Array getDataArray()
public void setDataArray(Array data)
data - set to this Array. must not be a logical viewpublic Object getDataObject()
public void setDataObject(Object o)
o - set to this valuepublic void setVariableInfo(String vname, String desc, String unitString, DataType dtype)
Copyright © 2019. All rights reserved.