C# Class Google.Apis.Tools.CodeGen.Generator.ResourceBaseGenerator

Abstract implementation of a resource generator.
Inheritance: BaseGenerator
Mostra file Open project: artzub/LoggenCSG

Protected Methods

Method Description
AddParameterComment ( IMethodCommentCreator commentCreator, CodeMemberMethod member, IParameter param, string parameterName ) : void
AssignParameterToDictionary ( IParameter param, int parameterCount, IMethod method ) : CodeAssignStatement
CreateExecuteCall ( IMethod method ) : CodeMethodInvokeExpression

this.service.ExecuteRequest(...);

CreateExecuteRequest ( IMethod method ) : CodeStatement

ret = this.service.ExecuteRequest(...);

DeclareInputParameter ( CodeTypeDeclaration classDeclaration, IParameter param, IMethod method ) : CodeParameterDeclarationExpression

Creates a declaration for the specified parameter.

GetBodyAsString ( IMethod method ) : System.CodeDom.CodeExpression
GetClassName ( ) : string
ResourceCallAddBodyDeclaration ( IMethod method, CodeMemberMethod member, CodeTypeReference bodyType, bool addBodyIfUnused ) : void

Private Methods

Method Description
GetParameterType ( IParameter param ) : Type
GetParameterTypeReference ( CodeTypeDeclaration classDeclaration, IParameter param ) : CodeTypeReference
GetUnderlyingParameterType ( IParameter param ) : Type

Retrieves the underlying, unmodified type of a parameter.

Method Details

AddParameterComment() protected method

protected AddParameterComment ( IMethodCommentCreator commentCreator, CodeMemberMethod member, IParameter param, string parameterName ) : void
commentCreator IMethodCommentCreator
member System.CodeDom.CodeMemberMethod
param IParameter
parameterName string
return void

AssignParameterToDictionary() protected method

protected AssignParameterToDictionary ( IParameter param, int parameterCount, IMethod method ) : CodeAssignStatement
param IParameter
parameterCount int
method IMethod
return System.CodeDom.CodeAssignStatement

CreateExecuteCall() protected method

this.service.ExecuteRequest(...);
protected CreateExecuteCall ( IMethod method ) : CodeMethodInvokeExpression
method IMethod
return System.CodeDom.CodeMethodInvokeExpression

CreateExecuteRequest() protected method

ret = this.service.ExecuteRequest(...);
protected CreateExecuteRequest ( IMethod method ) : CodeStatement
method IMethod
return System.CodeDom.CodeStatement

DeclareInputParameter() protected method

Creates a declaration for the specified parameter.
protected DeclareInputParameter ( CodeTypeDeclaration classDeclaration, IParameter param, IMethod method ) : CodeParameterDeclarationExpression
classDeclaration System.CodeDom.CodeTypeDeclaration
param IParameter
method IMethod
return System.CodeDom.CodeParameterDeclarationExpression

GetBodyAsString() protected method

protected GetBodyAsString ( IMethod method ) : System.CodeDom.CodeExpression
method IMethod
return System.CodeDom.CodeExpression

GetClassName() protected abstract method

protected abstract GetClassName ( ) : string
return string

ResourceCallAddBodyDeclaration() protected method

protected ResourceCallAddBodyDeclaration ( IMethod method, CodeMemberMethod member, CodeTypeReference bodyType, bool addBodyIfUnused ) : void
method IMethod
member System.CodeDom.CodeMemberMethod
bodyType System.CodeDom.CodeTypeReference
addBodyIfUnused bool
return void