本文整理汇总了Java中com.sun.tools.corba.se.idl.AttributeEntry类的典型用法代码示例。如果您正苦于以下问题:Java AttributeEntry类的具体用法?Java AttributeEntry怎么用?Java AttributeEntry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AttributeEntry类属于com.sun.tools.corba.se.idl包,在下文中一共展示了AttributeEntry类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: interfaceMethod
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
*
**/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
AttributeEntry a = (AttributeEntry)m;
// Generate for the get method
super.interfaceMethod (symbolTable, a, stream);
// Generate for the set method if the attribute is not readonly
if (!a.readOnly ())
{
setupForSetMethod ();
super.interfaceMethod (symbolTable, a, stream);
clear ();
}
}
示例2: stub
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
*
**/
protected void stub (String className, boolean isAbstract, Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
AttributeEntry a = (AttributeEntry)m;
// Generate for the get method
super.stub (className, isAbstract, symbolTable, a, stream, index);
// Generate for the set method if the attribute is not readonly
if (!a.readOnly ())
{
setupForSetMethod ();
super.stub (className, isAbstract, symbolTable, a, stream, index + 1);
clear ();
}
}
示例3: skeleton
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
*
**/
protected void skeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
AttributeEntry a = (AttributeEntry)m;
// Generate for the get method
super.skeleton (symbolTable, a, stream, index);
// Generate for the set method if the attribute is not readonly
if (!a.readOnly ())
{
setupForSetMethod ();
super.skeleton (symbolTable, a, stream, index + 1);
clear ();
}
}
示例4: dispatchSkeleton
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
*
**/
protected void dispatchSkeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
AttributeEntry a = (AttributeEntry)m;
// Generate for the get method
super.dispatchSkeleton (symbolTable, a, stream, index);
// Generate for the set method if the attribute is not readonly
if (!a.readOnly ())
{
setupForSetMethod ();
super.dispatchSkeleton (symbolTable, m, stream, index + 1);
clear ();
}
}
示例5: writeMethodTable
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
*
**/
protected void writeMethodTable ()
{
// Write the methods hashtable
stream.println (" private static java.util.Hashtable _methods = new java.util.Hashtable ();");
stream.println (" static");
stream.println (" {");
int count = -1;
Enumeration e = methodList.elements ();
while (e.hasMoreElements ())
{
MethodEntry method = (MethodEntry)e.nextElement ();
if (method instanceof AttributeEntry)
{
stream.println (" _methods.put (\"_get_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
if (!((AttributeEntry)method).readOnly ())
stream.println (" _methods.put (\"_set_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
}
else
stream.println (" _methods.put (\"" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
}
stream.println (" }");
stream.println ();
}
示例6: writeMethods
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
*
**/
protected void writeMethods ()
{
int realI = 0;
for (int i = 0; i < methodList.size (); ++i)
{
MethodEntry method = (MethodEntry)methodList.elementAt (i);
((MethodGen)method.generator ()).skeleton
(symbolTable, method, stream, realI);
if (method instanceof AttributeEntry &&
!((AttributeEntry)method).readOnly ())
realI += 2;
else
++realI;
stream.println ();
}
}
示例7: abstractMethod
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
* <d62023-klr> Added for 2.4 RTF
**/
protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
AttributeEntry a = (AttributeEntry)m;
// Generate for the get method
super.abstractMethod (symbolTable, a, stream);
// Generate for the set method if the attribute is not readonly
if (!a.readOnly ())
{
setupForSetMethod ();
super.abstractMethod (symbolTable, a, stream);
clear ();
}
}
示例8: interfaceMethod
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
* <d62023-klr> Added for 2.4 RTF
**/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
AttributeEntry a = (AttributeEntry)m;
// Generate for the get method
super.interfaceMethod (symbolTable, a, stream);
// Generate for the set method if the attribute is not readonly
if (!a.readOnly ())
{
setupForSetMethod ();
super.interfaceMethod (symbolTable, a, stream);
clear ();
}
}
示例9: abstractMethod
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
* (d62023-klr) Added for 2.4 RTF
**/
protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
AttributeEntry a = (AttributeEntry)m;
// Generate for the get method
super.abstractMethod (symbolTable, a, stream);
// Generate for the set method if the attribute is not readonly
if (!a.readOnly ())
{
setupForSetMethod ();
super.abstractMethod (symbolTable, a, stream);
clear ();
}
}
示例10: interfaceMethod
import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
* (d62023-klr) Added for 2.4 RTF
**/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
AttributeEntry a = (AttributeEntry)m;
// Generate for the get method
super.interfaceMethod (symbolTable, a, stream);
// Generate for the set method if the attribute is not readonly
if (!a.readOnly ())
{
setupForSetMethod ();
super.interfaceMethod (symbolTable, a, stream);
clear ();
}
}