Sender: |
|
Subject: |
|
From: |
|
Date: |
Sat, 18 Jan 2014 21:59:53 +0545 |
Content-Type: |
multipart/alternative; boundary=001a11c3054270bc2c04f040f512 |
MIME-Version: |
1.0 |
Reply-To: |
|
Parts/Attachments: |
|
|
Hello,
I need some solution for the code given below, In this code, I
want variables. I want to know that which variables returns from
GPInitializer.
GPType typ = (GPType)(e.nextElement());
// make vectors for the type.
Vector nodes_v = new Vector();
Vector terminals_v = new Vector();
Vector nonterminals_v = new Vector();
// add GPFuncInfos as appropriate to each vector
Enumeration v = tmp.elements();
while (v.hasMoreElements())
{
GPFuncInfo i = (GPFuncInfo)(v.nextElement());
*if (typ.compatibleWith(i.node.constraints().returntype,typ))*
{
nodes_v.addElement(i);
if (i.node.children.length == 0)
terminals_v.addElement(i);
else nonterminals_v.addElement(i);
}
}
Best Regards,
Milan
|
|
|