Package org.quorum.symbols

Examples of org.quorum.symbols.MethodDescriptor


    @Override
    public CompilerLocation GetLocationAtLine(String staticKey, int line) {
        CompilerLocation location = new CompilerLocation();
        ClassDescriptor clazz = this.virtualMachine.getSymbolTable().getClassDescriptor(staticKey);
        if(clazz != null) {
            MethodDescriptor method = clazz.getMethodAtLine(line, 0);
            if(method != null) {
                location.setName(method.getName());
                Parameters parameters = method.getParameters();
                if(parameters != null) {
                    for(int i = 0; i < parameters.size(); i++) {
                        ParameterDescriptor param = parameters.get(i);
                        location.add(param.getName(), param.getType().getStaticKey());
                    }
View Full Code Here


        }
       
        if(clazz != null) {
            Document document = qpr.getSnapshot().getSource().getDocument(true);
            Line line = NbEditorUtilities.getLine(document, startPosition, false);
            MethodDescriptor methodAtLine = clazz.getMethodAtLine(line.getLineNumber() + 1, 0);
            VariableParameterCommonDescriptor variable = methodAtLine.getVariable(subSequence.toString());
            if(variable != null){
                return true;
            }else{
                return false;
            }
View Full Code Here

        methodIterator = cIt;
    }

    @Override
    public CompilerMethodDescriptor next() {
        MethodDescriptor cd = methodIterator.next();
        QuorumMethodDescriptor hcd  = new QuorumMethodDescriptor();
        hcd.setMethodDescriptor(cd);
        return hcd;
    }
View Full Code Here

    }

    @Override
    public CompilerMethodDescriptor getMethod(String name) {
        QuorumMethodDescriptor hmd = new QuorumMethodDescriptor();
        MethodDescriptor md = classDescriptor.getMethod(name);
        hmd.setMethodDescriptor(md);
        return hmd;
    }
View Full Code Here

TOP

Related Classes of org.quorum.symbols.MethodDescriptor

Copyright © 2018 www.massapicom. 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.