com.github.sommeri.less4j.core.compiler.stages.BodyCompilationData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of less4j Show documentation
Show all versions of less4j Show documentation
Less language is an extension of css and less4j compiles it into regular css. It adds several dynamic features into css: variables, expressions, nested rules.
Less4j is a port. The original compiler was written in JavaScript and is called less.js. The less language is mostly defined in less.js documentation/issues and by what less.js actually do. Links to less.js:
* home page: http://lesscss.org/
* source code & issues: https://github.com/cloudhead/less.js
package com.github.sommeri.less4j.core.compiler.stages;
import com.github.sommeri.less4j.core.ast.BodyOwner;
import com.github.sommeri.less4j.core.compiler.expressions.GuardValue;
import com.github.sommeri.less4j.core.compiler.scopes.IScope;
import com.github.sommeri.less4j.core.compiler.scopes.view.ScopeView;
public class BodyCompilationData {
private BodyOwner compiledBodyOwner;
private ScopeView mixinWorkingScope;
private GuardValue guardValue;
private IScope arguments;
public BodyCompilationData(BodyOwner compiledBodyOwner) {
this.compiledBodyOwner = compiledBodyOwner;
}
public void setGuardValue(GuardValue guardValue) {
this.guardValue = guardValue;
}
public GuardValue getGuardValue() {
return guardValue;
}
public BodyOwner getCompiledBodyOwner() {
return compiledBodyOwner;
}
public void setCompiledBodyOwner(BodyOwner compiledBodyOwner) {
this.compiledBodyOwner = compiledBodyOwner;
}
public ScopeView getMixinWorkingScope() {
return mixinWorkingScope;
}
public void setMixinWorkingScope(ScopeView mixinWorkingScope) {
this.mixinWorkingScope = mixinWorkingScope;
}
@Override
protected BodyCompilationData clone() {
return new BodyCompilationData(compiledBodyOwner.clone());
}
public void setArguments(IScope arguments) {
this.arguments = arguments;
}
public IScope getArguments() {
return arguments;
}
}