Package org.eclipse.steady.java.sign
Class JavaSignatureFactory
- java.lang.Object
-
- org.eclipse.steady.java.sign.JavaSignatureFactory
-
- All Implemented Interfaces:
SignatureFactory
public class JavaSignatureFactory extends Object implements SignatureFactory
Creates construct signatures for Java methods and constructors (other types are not supported). Attention: The signature creation for methods and constructors in nested classes does not work properly. The reason is that the decompiler does not properly created Java class declarations (see https://bitbucket.org/mstrobel/procyon/issues/283).
-
-
Constructor Summary
Constructors Constructor Description JavaSignatureFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignatureChangecomputeChange(Construct _from, Construct _to)Computes a so-called signature change, i.e., changes required to transform the signature of the first givenConstructinto the signature of the second.SignaturecreateSignature(Construct _c)Creates the construct signature on the basis of the source code provided byConstruct.getContent().SignaturecreateSignature(org.eclipse.steady.shared.json.model.ConstructId _cid, File _java_file)Creates the construct signature on the basis of a given Java source file.booleanisSupportedConstructId(org.eclipse.steady.shared.json.model.ConstructId _id)Returns true if the givenConstructIdis of type Java method or Java constructor.
-
-
-
Method Detail
-
isSupportedConstructId
public boolean isSupportedConstructId(org.eclipse.steady.shared.json.model.ConstructId _id)
Returns true if the givenConstructIdis of type Java method or Java constructor.- Specified by:
isSupportedConstructIdin interfaceSignatureFactory
-
createSignature
public Signature createSignature(Construct _c)
Creates the construct signature on the basis of the source code provided byConstruct.getContent().- Specified by:
createSignaturein interfaceSignatureFactory
-
createSignature
public Signature createSignature(org.eclipse.steady.shared.json.model.ConstructId _cid, File _java_file)
Creates the construct signature on the basis of a given Java source file.- Specified by:
createSignaturein interfaceSignatureFactory- See Also:
createFromSourceCache(ConstructId)
-
computeChange
public SignatureChange computeChange(Construct _from, Construct _to)
Computes a so-called signature change, i.e., changes required to transform the signature of the first givenConstructinto the signature of the second.- Specified by:
computeChangein interfaceSignatureFactory
-
-