|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jstatcom.model.JSCTypeDef
public final class JSCTypeDef
Defines a type to be used with a symbol table. A type definition contains a name, a data type and a description.
Field Summary | |
---|---|
java.lang.String |
description
|
java.lang.String |
name
|
JSCTypes |
type
|
Constructor Summary | |
---|---|
JSCTypeDef(java.lang.String name,
JSCTypes type)
Creates a type definition with a name, a type and no description. |
|
JSCTypeDef(java.lang.String name,
JSCTypes type,
java.lang.String description)
Creates a type definition with a name, a type and an optional description. |
Method Summary | |
---|---|
JSCData |
getInstance()
Gets an empty instance of this typedef with the same name. |
java.lang.String |
toString()
Gets string representation of this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final java.lang.String name
public final JSCTypes type
public final java.lang.String description
Constructor Detail |
---|
public JSCTypeDef(java.lang.String name, JSCTypes type, java.lang.String description)
name
- the name of this typetype
- the data typedescription
- a description of the data that is stored under this type
java.lang.IllegalArgumentException
- if (type == null)
or if name
is
not valid or if description contains / * or * /JSCConstants.isValidName(java.lang.String)
public JSCTypeDef(java.lang.String name, JSCTypes type)
name
- the name of this typetype
- the data type
java.lang.IllegalArgumentException
- if (type == null)
or if name
is
not validJSCConstants.isValidName(java.lang.String)
Method Detail |
---|
public final java.lang.String toString()
toString
in class java.lang.Object
public JSCData getInstance()
JSCData
object of type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |