|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectProjetCompil.Global.Src.Type
public class Type
Classe des types. Un objet de la classe Type représente un type du langage JCas. L'ensemble des types est défini par la grammaire d'arbres suivante :
NatureType
.
Les différentes natures d'un type sont les suivantes :
NatureType.String
, NatureType.Boolean
,
NatureType.Real
, NatureType.Interval
,
NatureType.Array
.
taille
de type int
,
initialisé à la valeur -1 lors de leur création.
Cet attribut sert à stocker la taille mémoire occupée par une valeur du
type en passe 3.
Type.Interval
possèdent deux attributs de type
int
:
la borne inférieure borneInf
et la borne supérieure
borneSup
de l'intervalle.
Type.String
,
Type.Boolean
,
Type.Real
n'existent qu'en un
seul exemplaire.
borneInf = -java.lang.Integer.MAX_VALUE borneSup = java.lang.Integer.MAX_VALUE
Field Summary | |
---|---|
static Type |
Boolean
Le type boolean. |
static Type |
Integer
Le type integer. |
static Type |
Real
Le type real. |
static Type |
String
Le type string. |
Method Summary | |
---|---|
void |
afficher(int niveau)
Affiche ce type avec le niveau de détails spécifié. |
static Type |
creationArray(Type typeIndice,
Type typeElement)
Constructeur de type tableau. |
static Type |
creationInterval(int borneInf,
int borneSup)
Constructeur de type intervalle de bornes inférieure et supérieure spécifiées. |
int |
getBorneInf()
La borne inférieure d'un type intervalle. |
int |
getBorneSup()
La borne supérieure d'un type intervalle. |
Type |
getElement()
Le type des éléments pour un type tableau. |
Type |
getIndice()
Le type des indices pour un type tableau. |
NatureType |
getNature()
La nature de ce type. |
int |
getTaille()
La taille de ce type. |
void |
setBorneInf(int borneInf)
Modifie la borne inférieure d'un type intervalle. |
void |
setBorneSup(int borneSup)
Modifie la borne supérieure d'un type intervalle. |
void |
setElement(Type typeElement)
Modifie le type des éléments pour un type tableau. |
void |
setIndice(Type typeIndice)
Modifie le type des indices pour un type tableau. |
void |
setTaille(int taille)
Modifie la taille de ce type. |
java.lang.String |
toString()
Chaîne de carcatères qui correspond à ce type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Type String
public static final Type Boolean
public static final Type Real
public static final Type Integer
Method Detail |
---|
public static Type creationInterval(int borneInf, int borneSup)
public static Type creationArray(Type typeIndice, Type typeElement)
public NatureType getNature()
public int getTaille()
public Type getIndice()
public Type getElement()
public int getBorneInf()
public int getBorneSup()
public void setTaille(int taille)
public void setIndice(Type typeIndice)
public void setElement(Type typeElement)
public void setBorneInf(int borneInf)
public void setBorneSup(int borneSup)
public java.lang.String toString()
toString
in class java.lang.Object
public void afficher(int niveau)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |