程序员思维学英语语法
句子成分-主语详解
本章主要目的:了解主语定义及分类
1. 主语定义
主语:执行句子的行为或动作的主体
2. 主语分类
2.1 名词充当主语
Water is important for living things.(水对生物很重要),Water充当主语
名词可看名词详解
2.2 代词充当主语
He always keeps his promise.(他总能信守承诺),He充当主语
代词可看代词详解
2.3 数词充当主语
Six are missing(丢了六个),Six充当主语
数词可看数词详解
2.4 名词性短语充当主语
The child is my daughter.(这小孩是我女儿),The child充当主语
名词性短语可看名词性短语详解
2.5 主语从句充当主语
What she said is correct.(她说的是对的),What she said充当主语
主语从句可看主语从句详解
3. 主语代码
/**
* @Author: Wen-Xueliang
* @Date: Created in 2019/5/29 22:25
* @Description: 主语:执行句子的行为或动作的主体
* Subject is the topic or theme of the sentence, which tells of what the sentence about.
*/
public class Subject extends Component {
private Noun noun;
private Pronoun pronoun;
private Numeral numeral;
private InfinitivePhrase infinitivePhrase;
private GerundPhrase gerundPhrase;
private NounPhrase nounPhrase;
private SubjectClause subjectClause;
public Subject(Noun noun) {
this.noun = noun;
text = noun.toString();
}
public Subject(Pronoun pronoun) {
this.pronoun = pronoun;
text = pronoun.toString();
}
public Subject(Numeral numeral) {
this.numeral = numeral;
text = numeral.toString();
}
public Subject(InfinitivePhrase infinitivePhrase) {
this.infinitivePhrase = infinitivePhrase;
text = infinitivePhrase.toString();
}
public Subject(GerundPhrase gerundPhrase) {
this.gerundPhrase = gerundPhrase;
text = gerundPhrase.toString();
}
public Subject(NounPhrase nounPhrase) {
this.nounPhrase = nounPhrase;
text = nounPhrase.toString();
}
public Subject(SubjectClause subjectClause) {
this.subjectClause = subjectClause;
text = subjectClause.toString();
}
}
来源:CSDN
作者:工程师温学良
链接:https://blog.csdn.net/wen5026/article/details/104609087