Package org.eclipse.steady
Class Construct
- java.lang.Object
-
- org.eclipse.steady.Construct
-
public class Construct extends Object
A programming construct represents a container for programming statements in a given programming language, e.g., a Java constructor or a C function. Programming constructs are created by instances of FileAnalyzer, e.g., JavaFileAnalyzer or JavaClassAnalyzer.
-
-
Constructor Summary
Constructors Constructor Description Construct(ConstructId _id, String _content)Constructor for Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetContent()Getter for the fieldcontent.StringgetDigest()getDigest.ConstructIdgetId()Getter for the fieldid.inthashCode()voidsetContent(String _content)Setter for the fieldcontent.StringtoJSON()toJSON.StringtoString()toString.
-
-
-
Constructor Detail
-
Construct
public Construct(ConstructId _id, String _content)
Constructor for Construct.
- Parameters:
_id- aConstructIdobject._content- aStringobject.
-
-
Method Detail
-
getId
public ConstructId getId()
Getter for the field
id.- Returns:
- a
ConstructIdobject.
-
setContent
public void setContent(String _content)
Setter for the field
content.- Parameters:
_content- aStringobject.
-
-