Package com.yworks.yshrink.ant
Class MethodSection
- java.lang.Object
-
- com.yworks.common.ant.PatternMatchedSection
-
- com.yworks.yshrink.ant.MethodSection
-
public class MethodSection extends PatternMatchedSection
Used by ant to handle themethodelement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yworks.common.ant.PatternMatchedSection
PatternMatchedSection.Access
-
-
Field Summary
-
Fields inherited from class com.yworks.common.ant.PatternMatchedSection
patternSets, types
-
-
Constructor Summary
Constructors Constructor Description MethodSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypePatternSetcreatePatternSet()Create pattern set type pattern set.java.lang.StringgetArgs()Gets args.java.lang.StringgetClassName()Gets class name.java.lang.StringgetName()Gets name.java.lang.StringgetReturnType()Gets return type.java.lang.StringgetSignature()Gets signature.java.lang.StringgetThrows()Gets throws.protected TypePatternSetnewTypePatternSet()Instantiates a type pattern set, subclasses may provide custom implementations.voidsetArgs(java.lang.String args)Sets args.voidsetClass(java.lang.String name)Sets class.voidsetName(java.lang.String name)Sets name.voidsetReturnType(java.lang.String returnType)Sets return type.voidsetSignature(java.lang.String signature)Sets signature.voidsetThrows(java.lang.String throwsClause)Sets throws.-
Methods inherited from class com.yworks.common.ant.PatternMatchedSection
accessValue, addPatternSet, getAccess, getPatternSet, setAccess
-
-
-
-
Method Detail
-
getSignature
public java.lang.String getSignature()
Gets signature.- Returns:
- the signature
-
setSignature
public void setSignature(java.lang.String signature)
Sets signature.- Parameters:
signature- the signature
-
getArgs
public java.lang.String getArgs()
Gets args.- Returns:
- the args
-
setArgs
public void setArgs(java.lang.String args)
Sets args.- Parameters:
args- the args
-
setName
public void setName(java.lang.String name)
Sets name.- Parameters:
name- the name
-
setClass
public void setClass(java.lang.String name)
Sets class.- Parameters:
name- the name
-
getName
public java.lang.String getName()
Gets name.- Returns:
- the name
-
getClassName
public java.lang.String getClassName()
Gets class name.- Returns:
- the class name
-
getReturnType
public java.lang.String getReturnType()
Gets return type.- Returns:
- the return type
-
setReturnType
public void setReturnType(java.lang.String returnType)
Sets return type.- Parameters:
returnType- the return type
-
getThrows
public java.lang.String getThrows()
Gets throws.- Returns:
- the throws
-
setThrows
public void setThrows(java.lang.String throwsClause)
Sets throws.- Parameters:
throwsClause- the throws clause
-
createPatternSet
public TypePatternSet createPatternSet()
Description copied from class:PatternMatchedSectionCreate pattern set type pattern set.- Overrides:
createPatternSetin classPatternMatchedSection- Returns:
- the type pattern set
-
newTypePatternSet
protected TypePatternSet newTypePatternSet()
Instantiates a type pattern set, subclasses may provide custom implementations.- Returns:
- the new type pattern set
-
-