|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openorb.compiler.object.IdlObject
Cette classe represente la representation generique d'une donnee de l'IDL
Field Summary | |
static boolean |
_case_sensitive
Indique si la comparaison s'effectue avec un mode case sensitive |
IdlComment |
_comment
Commentaire associe a cet object |
int |
_current
Position courante dans le parcours de la liste des sous-objets |
boolean |
_diese
Implique la mise entre #ifndef ... du symbole |
boolean |
_has_inheritance
Must be set to true if this object can have inheritance |
java.lang.String |
_id
L'Id de l'objet |
boolean |
_import
Flag qui precise si l'objet est importe |
boolean |
_is_container
Must be set to true if this object is a container |
java.util.Vector |
_list
Liste des sous objets |
boolean |
_map
Indique si l'objet a ete defini dans un fichier inclus |
java.lang.String |
_name
Nom de l'objet |
java.lang.Object |
_opaque
Reference vers une donnee opaque |
java.lang.String |
_prefix
Prefixe de cet objet CORBA |
boolean |
_prefix_explicit
Is TypeId used for this object ? |
int |
_type
Precise le type d'objet IDL |
boolean |
_underscore
Y a t'il un underscore |
IdlObject |
_upper
Precise l'objet pere |
static boolean |
adaptName
This flag is used to set if name must be adapt ( '_' is removed ) |
boolean |
flag
Un flag impose par Nicolas |
static java.lang.String |
idlPrefix
Prefixe des IDs d'objets CORBA |
Constructor Summary | |
IdlObject(int type,
IdlObject father)
Construit un objet de description IDL |
Method Summary | |
java.lang.String |
adaptName(java.lang.String name)
|
void |
addIdlObject(IdlObject obj)
Ajoute un objet supplementaire comme contenu de cet objet |
void |
applyPrefix(java.lang.String prefix)
Apply a prefix |
void |
attach_comment()
Attache un commentaire a cet object |
void |
attach_comment(IdlComment comment)
Attache un commentaire a cet object |
void |
changePrefix(java.lang.String prefix)
Change prefix to my self but also to all contained objects |
boolean |
contains(int type)
Permet de tester la possession d'un type dans un autre |
boolean |
containsObject(int type)
Return TRUE if this object contains a object type |
java.util.Enumeration |
content()
Return this idlObject content |
IdlObject |
current()
Retourne l'objet courant de la liste des sous-objets |
boolean |
end()
Retourve Vrai dans le cas ou l'on a atteint la fin de la liste des sous-objets |
java.util.Enumeration |
filter(int type)
Return this idlObject content with a filter |
int |
final_kind()
Retourne le type final de cet object IDL |
IdlObject |
final_object()
Retourne l'objet final de cet object IDL |
IdlComment |
getComment()
Retourne le commantaire associe a cet object |
java.lang.String |
getId()
Retourne l'ID d'un objet |
java.lang.String[] |
getIdComponents()
Return the components of the ID |
java.lang.String |
getPrefix()
Retourne le prefixe de cet objet |
int |
getPrefixDeepth()
Return the prefix deepth |
boolean |
hasComment()
Retourne vrai si l'objet a un commentaire |
int |
idlConcreteType()
Return the concrete type ( if IDENTIFIER or TYPEDEF then returns the associated idl object ) |
idlObject |
idlDefinedIn()
Return the defined in object |
int |
idlFinalType()
Return the final type ( if IDENTIFIER then returns the associated idl object ) |
java.lang.String |
idlID()
Return the IDL ID |
java.lang.String |
idlName()
Return the object name |
int |
idlType()
Return the object type |
boolean |
included()
Indique si l'objet courant est defini dans un fichier inclus |
void |
insertIdlObject(IdlObject obj,
int idx)
Insert un element |
boolean |
into(int type)
Permet de tester l'inclusion d'un type dans un autre |
boolean |
isDefined(java.lang.String name,
boolean scoped)
Retourne VRAI si l'identificateur passe est deja utilise pour un autre symbole. |
boolean |
isSame(java.lang.String name)
This method returns true if this object is the same as the given name. |
boolean |
isVisible(java.lang.String name_,
boolean scoped)
Retourne VRAI si l'identificateur passe est deja utilise pour un autre symbole. |
int |
kind()
Retourne le type de l'objet IDL |
int |
length()
Retourne le nombre de sous-objets |
IdlObject |
myScope(java.lang.String scope_name,
int level)
Retourne le scope d'un objet |
java.lang.String |
name()
Retourne le nom de l'objet |
void |
name(java.lang.String s)
Fixe le nom de l'objet |
java.util.Vector |
nameToSequence(java.lang.String name)
Permet de passer un identificateur en une sequence d'identificateur simple. |
void |
next()
Passe a la position suivante dans la liste des sous-objets |
java.lang.Object |
opaque()
Retourne la donnee opaque |
void |
opaque(java.lang.Object op)
Fixe la donnee opaque |
int |
pos()
Retourne la position courante dans la liste des sous-objets |
void |
pos(int p)
Fixe la position courante dans la liste des sous-objets |
void |
refreshIncluded()
Recalcul si l'objet courant est defini dans un fichier inclus |
void |
reset()
Initialise la position courante de la liste des sous-objets |
IdlObject |
returnInheritedObject(java.lang.String name)
This method returns an inherited object |
IdlObject |
returnObject(java.lang.String name_,
boolean scoped)
Cette methode retourne l'objet demande en fonction de son nom. |
IdlObject |
returnVisibleObject(java.lang.String name_,
boolean scoped)
Cette methode retourne l'objet demande en fonction de son nom. |
IdlRoot |
root()
Retourne l'objet root |
IdlObject |
sameAs(java.lang.String name)
Return the equivalent object for the given name |
IdlObject |
search(java.util.Vector seq,
boolean scoped)
Recherche un symbole au moyen du chemin defini sous forme d'une sequence |
IdlObject |
searchObject(java.lang.String name)
This method returns an contained object |
void |
sensitive(boolean s)
Permet de fixer le fait d'un case sensitive |
void |
setId(java.lang.String id)
Fixe l'ID d'un objet |
IdlObject |
switchFinalObject(IdlObject obj)
Retourne l'objet correspondant au type du switch dans le cas d'une union. |
IdlObject |
type()
Retourne le type du membre |
void |
type(IdlObject tp)
Fixe le type du membre |
IdlObject |
upper()
Retourne l'objet pere |
boolean |
use_diese()
Retourne si une section #ifndef est a utiliser |
void |
use_diese(boolean s)
Permet de fixer le fait de l'utilisation de #ifndef |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int _type
public boolean flag
public IdlObject _upper
public static boolean adaptName
public static java.lang.String idlPrefix
public java.lang.String _prefix
public java.lang.String _name
public java.lang.String _id
public java.util.Vector _list
public int _current
public boolean _map
public IdlComment _comment
public boolean _diese
public static boolean _case_sensitive
public java.lang.Object _opaque
public boolean _import
public boolean _underscore
public boolean _prefix_explicit
public boolean _has_inheritance
public boolean _is_container
Constructor Detail |
public IdlObject(int type, IdlObject father)
type
- precise le type d'objet IDLfather
- indique l'objet pereMethod Detail |
public IdlObject switchFinalObject(IdlObject obj)
l'objet
- unionpublic void name(java.lang.String s)
public java.lang.String name()
public IdlObject upper()
public int kind()
public int final_kind()
public IdlObject final_object()
public java.lang.String getPrefix()
public void setId(java.lang.String id)
public int getPrefixDeepth()
public java.lang.String[] getIdComponents()
public java.lang.String getId()
public int pos()
public void pos(int p)
p
- la position courantepublic void reset()
public boolean end()
public int length()
public IdlObject current()
public void next()
public boolean included()
included
in interface idlObject
public void refreshIncluded()
public java.util.Vector nameToSequence(java.lang.String name)
public IdlObject search(java.util.Vector seq, boolean scoped)
la
- sequence de nomspublic IdlObject myScope(java.lang.String scope_name, int level)
public boolean isVisible(java.lang.String name_, boolean scoped)
name
- le nom a verifierscoped
- mettre a vrai si l'on restraint la recherche au scope de l'objetpublic IdlObject returnVisibleObject(java.lang.String name_, boolean scoped)
name
- le nom de l'objet a retournerscoped
- mettre a vrai si l'on restraint la recherche au scope de l'objetpublic boolean isDefined(java.lang.String name, boolean scoped)
name
- le nom a verifierscoped
- mettre a vrai si l'on restraint la recherche au scope de l'objetpublic IdlObject returnObject(java.lang.String name_, boolean scoped)
name
- le nom de l'objet a retournerscoped
- mettre a vrai si l'on restraint la recherche au scope de l'objetpublic void addIdlObject(IdlObject obj)
public void insertIdlObject(IdlObject obj, int idx)
public IdlRoot root()
public boolean into(int type)
type
- Le type conteneurpublic boolean contains(int type)
type
- Le type conteneurpublic IdlObject type()
public void type(IdlObject tp)
tp
- le typepublic void attach_comment()
public void attach_comment(IdlComment comment)
public IdlComment getComment()
public boolean hasComment()
public void sensitive(boolean s)
public void use_diese(boolean s)
public boolean use_diese()
public void opaque(java.lang.Object op)
public java.lang.Object opaque()
public void applyPrefix(java.lang.String prefix)
public void changePrefix(java.lang.String prefix)
public IdlObject returnInheritedObject(java.lang.String name)
public boolean isSame(java.lang.String name)
public IdlObject sameAs(java.lang.String name)
public IdlObject searchObject(java.lang.String name)
public java.lang.String adaptName(java.lang.String name)
public java.lang.String idlName()
idlObject
idlName
in interface idlObject
public java.lang.String idlID()
idlObject
idlID
in interface idlObject
public idlObject idlDefinedIn()
idlObject
idlDefinedIn
in interface idlObject
public int idlType()
idlObject
idlType
in interface idlObject
public java.util.Enumeration content()
idlObject
content
in interface idlObject
public java.util.Enumeration filter(int type)
idlObject
filter
in interface idlObject
public boolean containsObject(int type)
idlObject
containsObject
in interface idlObject
public int idlFinalType()
idlObject
idlFinalType
in interface idlObject
public int idlConcreteType()
idlObject
idlConcreteType
in interface idlObject
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |