|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openorb.compiler.object.IdlObject
This class represents a generic type of IDL objects. IDL objects are e.g. modules, interfaces, etc. The IdlCompiler is creating an in memory tree of an IDL file where each tree element is of type IdlObject.
Field Summary | |
static boolean |
_case_sensitive
Flag whether a case-sensitive mode for comparison is in effect. |
IdlComment |
_comment
Comment associated with the object. |
int |
_current
Current position in the child object list. |
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
ID of the object. |
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
List of child objects. |
boolean |
_map
This flag indicates whether the IDL object is defined in an included IDL file. |
java.lang.String |
_name
Name of the object. |
java.lang.Object |
_opaque
This field is used by the JavaToIdl compiler to attach any additional information to an IDL object. |
java.lang.String |
_prefix
CORBA Object prefix. |
boolean |
_prefix_explicit
Is TypeId used for this object ? |
int |
_type
Type value, accessible via kind methods. |
boolean |
_underscore
Y a t'il un underscore |
IdlObject |
_upper
The parent object. |
static boolean |
adaptName
This flag is used to set whether the name must be adapted ( '_' is removed ). |
static java.lang.String |
idlPrefix
Prefix of the IDL object. |
Constructor Summary | |
IdlObject(int type,
IdlObject father)
Constructor |
Method Summary | |
java.lang.String |
adaptName(java.lang.String name)
If the adaptName flag is set remove a leading underscore. |
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()
Attach a default comment to this object. |
void |
attach_comment(IdlComment comment)
Attach the specified comment to this 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()
Return the type of the final object. |
IdlObject |
final_object()
Return the final object. |
IdlComment |
getComment()
Return the comment attached to this object. |
java.lang.String |
getId()
Return the id of the IDL object. |
java.lang.String[] |
getIdComponents()
Return the components of the ID |
java.lang.String |
getPrefix()
Return the IDL object prefix. |
int |
getPrefixDepth()
Return the prefix depth |
boolean |
hasComment()
Check whether this IDL object has a comment attached. |
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()
Return the type of the IDL object. |
int |
length()
Retourne le nombre de sous-objets |
IdlObject |
myScope(java.lang.String scope_name,
int level)
Return the scope of an object. |
java.lang.String |
name()
Return the name of the IDL object. |
void |
name(java.lang.String s)
Set the name of the IDL object. |
java.util.Vector |
nameToSequence(java.lang.String name)
Returns a sequence of identifiers given a supplied name . |
void |
next()
Passe a la position suivante dans la liste des sous-objets |
java.lang.Object |
opaque()
Return the opaque object for ths IDL object. |
void |
opaque(java.lang.Object op)
Set the opaque object for this IDL object. |
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()
Return the root IDL object. |
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)
Set the case sensitive mode to the passed value. |
void |
setId(java.lang.String id)
Set the id of the IDL object. |
IdlObject |
switchFinalObject(IdlObject obj)
Retourne l'objet correspondant au type du switch dans le cas d'une union. |
IdlObject |
type()
Return the member type. |
void |
type(IdlObject tp)
Set the type of the object. |
IdlObject |
upper()
Return the parent IDL object. |
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 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
- type of the IDL object.father
- parent objectMethod 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 java.lang.String getId()
public int getPrefixDepth()
public java.lang.String[] getIdComponents()
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)
name
- a StringVector
of matching identifiers.public IdlObject search(java.util.Vector seq, boolean scoped)
la
- sequence de nomspublic IdlObject myScope(java.lang.String scope_name, int level)
scope_name
- 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
- The type of the object !? (The first child member).public 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)
name
- which should be adapted.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 |