Logo Search packages:      
Sourcecode: jardiff version File versions  Download package

void org::osjava::jardiff::DOMDiffHandler::addAccessFlags ( AbstractInfo  info  )  [inline, protected]

Add attributes describing some access flags. This adds the attributes to the attr field.

See also:
attr
Parameters:
info Info describing the access flags.

Definition at line 592 of file DOMDiffHandler.java.

References currentNode, org::osjava::jardiff::AbstractInfo::getAccessType(), org::osjava::jardiff::AbstractInfo::isAbstract(), org::osjava::jardiff::AbstractInfo::isAnnotation(), org::osjava::jardiff::AbstractInfo::isBridge(), org::osjava::jardiff::AbstractInfo::isDeprecated(), org::osjava::jardiff::AbstractInfo::isEnum(), org::osjava::jardiff::AbstractInfo::isFinal(), org::osjava::jardiff::AbstractInfo::isInterface(), org::osjava::jardiff::AbstractInfo::isNative(), org::osjava::jardiff::AbstractInfo::isStatic(), org::osjava::jardiff::AbstractInfo::isStrict(), org::osjava::jardiff::AbstractInfo::isSuper(), org::osjava::jardiff::AbstractInfo::isSynchronized(), org::osjava::jardiff::AbstractInfo::isSynthetic(), org::osjava::jardiff::AbstractInfo::isTransient(), org::osjava::jardiff::AbstractInfo::isVarargs(), and org::osjava::jardiff::AbstractInfo::isVolatile().

Referenced by writeClassInfo(), writeFieldInfo(), and writeMethodInfo().

                                                     {
        Element currentNode = (Element) this.currentNode;
        currentNode.setAttribute( "access", info.getAccessType());
        if (info.isAbstract())
            currentNode.setAttribute( "abstract", "yes");
        if (info.isAnnotation())
            currentNode.setAttribute( "annotation", "yes");
        if (info.isBridge())
            currentNode.setAttribute( "bridge", "yes");
        if (info.isDeprecated())
            currentNode.setAttribute( "deprecated", "yes");
        if (info.isEnum())
            currentNode.setAttribute( "enum", "yes");
        if (info.isFinal())
            currentNode.setAttribute( "final", "yes");
        if (info.isInterface())
            currentNode.setAttribute( "interface", "yes");
        if (info.isNative())
            currentNode.setAttribute( "native", "yes");
        if (info.isStatic())
            currentNode.setAttribute( "static", "yes");
        if (info.isStrict())
            currentNode.setAttribute( "strict", "yes");
        if (info.isSuper())
            currentNode.setAttribute( "super", "yes");
        if (info.isSynchronized())
            currentNode.setAttribute( "synchronized", "yes");
        if (info.isSynthetic())
            currentNode.setAttribute( "synthetic", "yes");
        if (info.isTransient())
            currentNode.setAttribute( "transient", "yes");
        if (info.isVarargs())
            currentNode.setAttribute( "varargs", "yes");
        if (info.isVolatile())
            currentNode.setAttribute( "volatile", "yes");
    }


Generated by  Doxygen 1.6.0   Back to index