PageRenderTime 41ms CodeModel.GetById 38ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/org/ooc/frontend/model/Expression.java

http://github.com/nddrylliog/ooc
Java | 23 lines | 16 code | 7 blank | 0 comment | 0 complexity | f9ff3c40d907a843a5339b298a4e3cd8 MD5 | raw file
 1package org.ooc.frontend.model;
 2
 3import org.ooc.frontend.model.tokens.Token;
 4
 5public abstract class Expression extends Statement implements Typed {
 6
 7	public Expression(Token startToken) {
 8		super(startToken);
 9	}
10
11	public Expression getInner() {
12		return this;
13	}
14	
15	public Expression getGenericOperand() {
16		return getType().isGeneric() ? this : new AddressOf(this, startToken);
17	}
18	
19	public boolean isConstant() {
20		return false;
21	}
22
23}