Java 类com.sun.codemodel.internal.JInvocation 实例源码

项目:OpenJSharp    文件:ElementAdapter.java   
/**
 * Wraps a type value into a {@link JAXBElement}.
 */
protected final JInvocation createJAXBElement(JExpression $var) {
    JCodeModel cm = codeModel();

    return JExpr._new(cm.ref(JAXBElement.class))
        .arg(JExpr._new(cm.ref(QName.class))
            .arg(ei.getElementName().getNamespaceURI())
            .arg(ei.getElementName().getLocalPart()))
        .arg(getRawType().boxify().erasure().dotclass())
        .arg($var);
}
项目:openjdk-jdk10    文件:ElementAdapter.java   
/**
 * Wraps a type value into a {@link JAXBElement}.
 */
protected final JInvocation createJAXBElement(JExpression $var) {
    JCodeModel cm = codeModel();

    return JExpr._new(cm.ref(JAXBElement.class))
        .arg(JExpr._new(cm.ref(QName.class))
            .arg(ei.getElementName().getNamespaceURI())
            .arg(ei.getElementName().getLocalPart()))
        .arg(getRawType().boxify().erasure().dotclass())
        .arg($var);
}
项目:openjdk9    文件:ElementAdapter.java   
/**
 * Wraps a type value into a {@link JAXBElement}.
 */
protected final JInvocation createJAXBElement(JExpression $var) {
    JCodeModel cm = codeModel();

    return JExpr._new(cm.ref(JAXBElement.class))
        .arg(JExpr._new(cm.ref(QName.class))
            .arg(ei.getElementName().getNamespaceURI())
            .arg(ei.getElementName().getLocalPart()))
        .arg(getRawType().boxify().erasure().dotclass())
        .arg($var);
}
项目:lookaside_java-1.8.0-openjdk    文件:ElementAdapter.java   
/**
 * Wraps a type value into a {@link JAXBElement}.
 */
protected final JInvocation createJAXBElement(JExpression $var) {
    JCodeModel cm = codeModel();

    return JExpr._new(cm.ref(JAXBElement.class))
        .arg(JExpr._new(cm.ref(QName.class))
            .arg(ei.getElementName().getNamespaceURI())
            .arg(ei.getElementName().getLocalPart()))
        .arg(getRawType().boxify().erasure().dotclass())
        .arg($var);
}
项目:infobip-open-jdk-8    文件:ElementAdapter.java   
/**
 * Wraps a type value into a {@link JAXBElement}.
 */
protected final JInvocation createJAXBElement(JExpression $var) {
    JCodeModel cm = codeModel();

    return JExpr._new(cm.ref(JAXBElement.class))
        .arg(JExpr._new(cm.ref(QName.class))
            .arg(ei.getElementName().getNamespaceURI())
            .arg(ei.getElementName().getLocalPart()))
        .arg(getRawType().boxify().erasure().dotclass())
        .arg($var);
}
项目:OLD-OpenJDK8    文件:ElementAdapter.java   
/**
 * Wraps a type value into a {@link JAXBElement}.
 */
protected final JInvocation createJAXBElement(JExpression $var) {
    JCodeModel cm = codeModel();

    return JExpr._new(cm.ref(JAXBElement.class))
        .arg(JExpr._new(cm.ref(QName.class))
            .arg(ei.getElementName().getNamespaceURI())
            .arg(ei.getElementName().getLocalPart()))
        .arg(getRawType().boxify().erasure().dotclass())
        .arg($var);
}
项目:openjdk-icedtea7    文件:ElementAdapter.java   
/**
 * Wraps a type value into a {@link JAXBElement}.
 */
protected final JInvocation createJAXBElement(JExpression $var) {
    JCodeModel cm = codeModel();

    return JExpr._new(cm.ref(JAXBElement.class))
        .arg(JExpr._new(cm.ref(QName.class))
            .arg(ei.getElementName().getNamespaceURI())
            .arg(ei.getElementName().getLocalPart()))
        .arg(getRawType().boxify().erasure().dotclass())
        .arg($var);
}
项目:OpenJSharp    文件:ElementOutlineImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(JCodeModel codeModel,QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:OpenJSharp    文件:ObjectFactoryGeneratorImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:openjdk-jdk10    文件:ElementOutlineImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(JCodeModel codeModel,QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:openjdk-jdk10    文件:ObjectFactoryGeneratorImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:openjdk9    文件:ElementOutlineImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(JCodeModel codeModel,QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:openjdk9    文件:ObjectFactoryGeneratorImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:lookaside_java-1.8.0-openjdk    文件:ElementOutlineImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(JCodeModel codeModel,QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:lookaside_java-1.8.0-openjdk    文件:ObjectFactoryGeneratorImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:infobip-open-jdk-8    文件:ElementOutlineImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(JCodeModel codeModel,QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:infobip-open-jdk-8    文件:ObjectFactoryGeneratorImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:OLD-OpenJDK8    文件:ElementOutlineImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(JCodeModel codeModel,QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:OLD-OpenJDK8    文件:ObjectFactoryGeneratorImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:openjdk-icedtea7    文件:ElementOutlineImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(JCodeModel codeModel,QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}
项目:openjdk-icedtea7    文件:ObjectFactoryGeneratorImpl.java   
/**
 * Generates an expression that evaluates to "new QName(...)"
 */
private JInvocation createQName(QName name) {
    return JExpr._new(codeModel.ref(QName.class)).arg(name.getNamespaceURI()).arg(name.getLocalPart());
}