Package tool.model

Examples of tool.model.ToolMethod


    // $ANTLR start "methodDeclaration"
    // /Users/peter/Documents/workspace/ToolModel/src/tool/model/grammar/ForteAST.g:435:1: methodDeclaration returns [ToolMethod toolMethod] : ^( METHOD_DECLARATION modifier qualifiedName ( formalParameterDecls )? ( methodReturnDeclaration )? ( methodCompletion )? ) ;
    public final ToolMethod methodDeclaration() throws RecognitionException {
        methodDeclaration_stack.push(new methodDeclaration_scope());
        ToolMethod toolMethod = null;

        ForteAST.qualifiedName_return qualifiedName39 = null;

        ForteAST.modifier_return modifier40 = null;


        try {
            // /Users/peter/Documents/workspace/ToolModel/src/tool/model/grammar/ForteAST.g:442:2: ( ^( METHOD_DECLARATION modifier qualifiedName ( formalParameterDecls )? ( methodReturnDeclaration )? ( methodCompletion )? ) )
            // /Users/peter/Documents/workspace/ToolModel/src/tool/model/grammar/ForteAST.g:442:4: ^( METHOD_DECLARATION modifier qualifiedName ( formalParameterDecls )? ( methodReturnDeclaration )? ( methodCompletion )? )
            {
            match(input,METHOD_DECLARATION,FOLLOW_METHOD_DECLARATION_in_methodDeclaration1436); if (state.failed) return toolMethod;

            if ( state.backtracking==0 ) {

                ((methodDeclaration_scope)methodDeclaration_stack.peek()).currentMethod = new ToolMethod(currentType);
               
            }

            match(input, Token.DOWN, null); if (state.failed) return toolMethod;
            pushFollow(FOLLOW_modifier_in_methodDeclaration1443);
View Full Code Here


    // $ANTLR start "methodDeclaration"
    // /Users/peter/Documents/workspace/ToolModel/src/tool/model/grammar/ForteCDFTree.g:139:1: methodDeclaration returns [ToolMethod toolMethod] : ^( METHOD_DECLARATION modifier qualifiedName ( formalParameterDecls )? ( methodReturnDeclaration )? ( methodCompletion )? ) ;
    public final ToolMethod methodDeclaration() throws RecognitionException {
        methodDeclaration_stack.push(new methodDeclaration_scope());
        ToolMethod toolMethod = null;

        ForteCDFTree.qualifiedName_return qualifiedName11 = null;

        ForteCDFTree.modifier_return modifier12 = null;


        try {
            // /Users/peter/Documents/workspace/ToolModel/src/tool/model/grammar/ForteCDFTree.g:146:2: ( ^( METHOD_DECLARATION modifier qualifiedName ( formalParameterDecls )? ( methodReturnDeclaration )? ( methodCompletion )? ) )
            // /Users/peter/Documents/workspace/ToolModel/src/tool/model/grammar/ForteCDFTree.g:146:4: ^( METHOD_DECLARATION modifier qualifiedName ( formalParameterDecls )? ( methodReturnDeclaration )? ( methodCompletion )? )
            {
            match(input,METHOD_DECLARATION,FOLLOW_METHOD_DECLARATION_in_methodDeclaration440); if (state.failed) return toolMethod;

            if ( state.backtracking==0 ) {

                ((methodDeclaration_scope)methodDeclaration_stack.peek()).currentMethod = new ToolMethod(((classDeclaration_scope)classDeclaration_stack.peek()).currentClass);
               
            }

            match(input, Token.DOWN, null); if (state.failed) return toolMethod;
            pushFollow(FOLLOW_modifier_in_methodDeclaration447);
View Full Code Here

public class ToolMethodDocumentProvider extends AbstractDocumentProvider {
  @SuppressWarnings("restriction")
  private WorkspaceOperationRunner fOperationRunner;
 
  protected IDocument createDocument(Object element) throws CoreException {
    ToolMethod method = ((MethodEditorInput)element).getMethod();
    IDocument document = method.getImplementationDocument();

    IDocumentPartitioner partitioner =
      new FastPartitioner(
          new ToolPartitionScanner(),
          new String[] {
View Full Code Here

        String classFileName = memento.getString(TAG_CLASS_FILE);
        IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(
                new Path(classFileName));
        if (file != null) {
          ToolClass cls = ToolClass.fetch(file);
          ToolMethod method = cls.findMethod(methodName);
            return new MethodEditorInput(method);
        }
        return null;
  }
View Full Code Here

            return new MethodEditorInput(method);
        }
        return null;
  }
  public static void saveState(IMemento memento, MethodEditorInput input) {
        ToolMethod method = input.getMethod();
        ToolClass cls = ((ToolClass)method.getParent());
        memento.putString(TAG_METHOD_NAME, method.getLabelText());
        memento.putString(TAG_CLASS_FILE, cls.getFile().getFullPath().toString());
    }
View Full Code Here

TOP

Related Classes of tool.model.ToolMethod

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.