Examples of StringRef


Examples of com.intellij.util.io.StringRef

  }

  @NotNull
  @Override
  public CfmlFileStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
    StringRef name = dataStream.readName();
    return new CfmlFileStubImpl(name);
  }
View Full Code Here

Examples of com.intellij.util.io.StringRef

    }

    @NotNull
    @Override
    public GoFileStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
        StringRef packageName = dataStream.readName();
        StringRef packageImportPath = null;

        boolean hasPackageImportPath = dataStream.readBoolean();
        if ( hasPackageImportPath ) {
            packageImportPath = dataStream.readName();
        }
View Full Code Here

Examples of com.intellij.util.io.StringRef

        return new GoFileStub(packageImportPath, packageName, isMain);
    }

    public void indexStub(@NotNull GoFileStub stub, @NotNull IndexSink sink) {
        StringRef packageImportPath = stub.getPackageImportPath();
        if ( packageImportPath != null ) {
            // don't index any package information on test files or test data.
            if (isTestDataInStandardLibrary(packageImportPath) || isTestFile(stub.getPsi())) {
                return;
            }

            sink.occurrence(GoPackageImportPath.KEY, packageImportPath.toString());
        }

        sink.occurrence(GoPackageName.KEY, stub.getPackageName().toString());
    }
View Full Code Here

Examples of com.sun.msv.util.StringRef

        context.getNamespaceContext().endElement();
       
        if(!acceptor.isAcceptState(null)) {
            // some elements are missing
            // report error
            StringRef ref = new StringRef();
            acceptor.isAcceptState(ref);
            context.reportEvent(target,ref.str);
        }
    }
View Full Code Here

Examples of com.sun.msv.util.StringRef

        if(!acceptor.onEndAttributes( null, null )) {
            // some required attributes are missing.
            // report a validation error
            // Note that we don't know which property of this object
            // causes this error.
            StringRef ref = new StringRef();
            StartTagInfo sti = new StartTagInfo(
                currentElementUri,currentElementLocalName,currentElementLocalName,
                emptyAttributes,this);
            acceptor.onEndAttributes( sti, ref );
            context.reportEvent(target,ref.str);
View Full Code Here

Examples of com.sun.msv.util.StringRef

            this, null, null )) {
           
            // either the name was incorrect (which is quite unlikely),
            // or the value was wrong.
            // report an error
            StringRef ref = new StringRef();
            acceptor.onAttribute2( attNamespaceUri, attLocalName, attLocalName,
            buf.toString(), this, ref, null );
           
            context.reportEvent(target,ref.str);
        }
View Full Code Here

Examples of com.sun.msv.util.StringRef

    private void writePendingText() throws SAXException {
        // assert(textBuf!=null);
        if(!acceptor.onText2( buf.toString(), this, null, null )) {
            // this text is invalid.
            // report an error
            StringRef ref = new StringRef();
            acceptor.onText2( buf.toString(), this, ref, null );
            context.reportEvent(target,ref.str);
        }
       
        if(buf.length()>1024)
View Full Code Here

Examples of com.sun.msv.util.StringRef

        // ugly. This is one of the problems of the "middle" approach.
        Acceptor child = acceptor.createChildAcceptor( sti, null );
        if( child==null ) {
            // this element is invalid. probably, so this object is invalid
            // report an error
            StringRef ref = new StringRef();
            child = acceptor.createChildAcceptor( sti, ref );
            context.reportEvent(target,ref.str);
        }
       
        this.currentElementUri = uri;
View Full Code Here

Examples of com.sun.msv.util.StringRef

        writePendingText();
       
        if(!acceptor.isAcceptState(null)) {
            // some required elements are missing
            // report error
            StringRef ref = new StringRef();
            acceptor.isAcceptState(ref);
            context.reportEvent(target,ref.str);
        }
       
        // pop the acceptor
        Acceptor child = acceptor;
        acceptor = (Acceptor)stack.pop();
        if(!acceptor.stepForward( child, null )) {
            // some required elements are missing.
            // report an error
            StringRef ref = new StringRef();
            acceptor.stepForward( child, ref )// force recovery and obtain an error message.
           
            context.reportEvent(target,ref.str);
        }
       
View Full Code Here

Examples of com.sun.msv.util.StringRef

       
           
        Acceptor child = acceptor.createChildAcceptor(sti,null);
        if(child==null) {
            // some required elements were missing. report errors
            StringRef ref = new StringRef();
            child = acceptor.createChildAcceptor(sti,ref);
            context.reportEvent(target,ref.str);
        }
       
        if(o instanceof RIElement) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.