-1

有人知道Java语法1.class$noNamespace$PrintAgreementDocument吗?

eclipse显示错误如下:

Multiple markers at this line

- Syntax error on token "1.", . expected after this token
- Syntax error on token "class$noNamespace$PrintAgreementDocument", delete 
 this token
- Syntax error on token "1.", . expected after this token
- Syntax error on token "class$noNamespace$PrintAgreementDocument", delete 
 this token
- Syntax error on token "class$noNamespace$PrintAgreementDocument", delete 
 this token

代码:

package noNamespace;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.net.URL;
import javax.xml.stream.XMLStreamReader;
import org.apache.xmlbeans.SchemaType;
import org.apache.xmlbeans.SchemaTypeLoader;
import org.apache.xmlbeans.SchemaTypeSystem;
import org.apache.xmlbeans.XmlBeans;
import org.apache.xmlbeans.XmlException;
import org.apache.xmlbeans.XmlObject;
import org.apache.xmlbeans.XmlOptions;
import org.apache.xmlbeans.XmlString;
import org.apache.xmlbeans.xml.stream.XMLInputStream;
import org.apache.xmlbeans.xml.stream.XMLStreamException;
import org.w3c.dom.Node;

public abstract interface PrintAgreementDocument extends XmlObject
{
    public static final SchemaType type = (SchemaType)XmlBeans.typeSystemForClassLoader(
        (1.class$noNamespace$PrintAgreementDocument == null ? 
            (1.class$noNamespace$PrintAgreementDocument = 1.class$("noNamespace.PrintAgreementDocument")) 
            : 1.class$noNamespace$PrintAgreementDocument).getClassLoader(), 
                 "schemaorg_apache_xmlbeans.system.s95BAEA12C764073D07067A316EACE")
                     .resolveHandle("printagreement7eb6docty");

下面的代码在同一类

代码:

  public static final class Factory
  {
    public static PrintAgreementDocument newInstance()
    {
      return    (PrintAgreementDocument)XmlBeans.getContextTypeLoader().newInstance(PrintAgreementDocument.type, null);
    }
4

1 回答 1

0

基本 Java 语法 -所有标识符都应以字母(A 到 Z 或 a 到 z)、货币字符 ($) 或下划线 (_) 开头

于 2013-01-04T16:22:22.483 回答