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

Abstract implementation of a resource generator.
Inheritance: BaseGenerator
Afficher le fichier Open project: artzub/LoggenCSG

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

AssignParameterToDictionary() protected méthode

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

CreateExecuteCall() protected méthode

this.service.ExecuteRequest(...);
protected CreateExecuteCall ( IMethod method ) : CodeMethodInvokeExpression
method IMethod
Résultat System.CodeDom.CodeMethodInvokeExpression

CreateExecuteRequest() protected méthode

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

DeclareInputParameter() protected méthode

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

GetBodyAsString() protected méthode

protected GetBodyAsString ( IMethod method ) : System.CodeDom.CodeExpression
method IMethod
Résultat System.CodeDom.CodeExpression

GetClassName() protected abstract méthode

protected abstract GetClassName ( ) : string
Résultat string

ResourceCallAddBodyDeclaration() protected méthode

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