Package org.quorum.symbols

Examples of org.quorum.symbols.ClassDescriptor


    }

    @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++) {
View Full Code Here


        }
        //get the subSequence that is highlighted
        CharSequence subSequence = pr.getSnapshot().getText().subSequence(startPosition+1, endPosition);
        FileDescriptor file = vm.getSymbolTable().getFileDescriptor(FileUtil.toFile(qpr.getSnapshot().getSource().getFileObject()).getAbsolutePath());
        Iterator<ClassDescriptor> classes = file.getClassIterator();
        ClassDescriptor clazz = null;
        while(classes.hasNext()) {
            clazz = classes.next();
        }
       
        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

    @Override
    public CompilerClassDescriptor getClass(String name) {
        QuorumClassDescriptor hcd = new QuorumClassDescriptor();
        if(fileDescriptor != null) {
            ClassDescriptor cd = fileDescriptor.getClassDescriptor(name);
            hcd.setClassDescriptor(cd);
        }
        return hcd;
    }
View Full Code Here

    }

    @Override
    public CompilerClassDescriptor next() {
        if(classIterator != null) {
            ClassDescriptor cd = classIterator.next();
            QuorumClassDescriptor hcd  = new QuorumClassDescriptor();
            hcd.setClassDescriptor(cd);
            return hcd;
        }
        else {
View Full Code Here

TOP

Related Classes of org.quorum.symbols.ClassDescriptor

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.